Building PM on NetBSD

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
User avatar
bmelo
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: 2023-02-13, 02:10

Building PM on NetBSD

Unread post by bmelo » 2023-06-08, 06:03

I'm trying to build PM on NetBSD (my preferred sport) and I'm stuck at a sed error below

Code: Select all

sed: 1: "s/--with-system-nspr\S* ...": RE error: trailing backslash (\)
The issue is probably caused by the \S....BSD sed needs [[:space:]] instead as you can see at https://bugs.freebsd.org/bugzilla/show_ ... ?id=253893

My problem is: I have no idea where is this sed in the project repository :crazy:

It is exactly the same error as old post:
viewtopic.php?f=5&t=29753&p=239697&hili ... 3A#p239697

Any idea?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35576
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Building PM on NetBSD

Unread post by Moonchild » 2023-06-08, 07:52

You can use the code cross reference https://xref.palemoon.org/goanna-central/ to find code lines.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
bmelo
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: 2023-02-13, 02:10

Re: Building PM on NetBSD

Unread post by bmelo » 2023-06-10, 04:41

Now I'm getting the error below. I think this is related to architecture in NetBSD be represented as amd64 instead x86_64, but not sure, and not sure where this error is coming from (I mean, the place where the architecure definition is missing)

Code: Select all

21:26.24 libmozavutil.so.symbols                                                                                
21:26.52 libunicharutil_external_s.a.desc                                                                       
21:26.54 certdata.c                                                                                             
21:26.54 out.nssckbi.def                                                                                        
21:26.56 libmozavutil.so                                                                                        
21:26.76 out.nssutil.def                                                                                        
21:26.84 Error: unhandled OS_ARCH NetBSD                                                                        
21:26.86 gmake[5]: *** [backend.mk:16: out.nssckbi.def] Error 1                                                 
21:26.86 gmake[5]: *** Deleting file 'out.nssckbi.def'                                                          
21:26.86 gmake[5]: *** Waiting for unfinished jobs....                                                          
21:27.10 Error: unhandled OS_ARCH NetBSD                                                                        
21:27.10 gmake[5]: *** [backend.mk:9: out.nssutil.def] Error 1                                                  
21:27.10 gmake[5]: *** Deleting file 'out.nssutil.def'                                                          
21:27.10 gmake[4]: *** [/home/bruno/Pale-Moon/platform/config/recurse.mk:71: sec                                urity/nss/lib/util/util_nssutil3/target] Error 2                                                                
21:27.10 gmake[4]: *** Waiting for unfinished jobs....                                                          
21:27.14 gmake[4]: *** [/home/bruno/Pale-Moon/platform/config/recurse.mk:71: sec                                urity/nss/lib/ckfw/builtins/builtins_nssckbi/target] Error 2                                                    
21:31.30 libsecurity_manager_ssl.a.desc                                         
I accept any suggestion.

Thanks.

User avatar
hexagonwin
Newbie
Newbie
Posts: 5
Joined: 2023-04-30, 16:18

Re: Building PM on NetBSD

Unread post by hexagonwin » 2023-06-10, 05:34

I see Arctic Fox, a Palemoon fork listed on NetBSD pkgsrc at www/arcticfox, maybe you can take a look at it to see how they made it build?

User avatar
bmelo
Hobby Astronomer
Hobby Astronomer
Posts: 18
Joined: 2023-02-13, 02:10

Re: Building PM on NetBSD

Unread post by bmelo » 2023-06-16, 11:30

hexagonwin wrote:
2023-06-10, 05:34
I see Arctic Fox, a Palemoon fork listed on NetBSD pkgsrc at www/arcticfox, maybe you can take a look at it to see how they made it build?
Yes, I included the patches from pkgsrc's Arctic Fox but still same error.

User avatar
Southern_Computer_Geek
Hobby Astronomer
Hobby Astronomer
Posts: 21
Joined: 2022-04-16, 19:53
Location: Mississippi, USA

Re: Building PM on NetBSD

Unread post by Southern_Computer_Geek » 2023-06-29, 18:37

In the past I've tried to build Pale Moon on NetBSD. I got past that error by adding NetBSD to a list in security/generate_mapfile.py (same thing dbsoft did for FreeBSD). I made a commit in my fork for reference: https://repo.palemoon.org/southern_comp ... 48a8e0f293

Unfortunately I ran into another error later in the build; can't remember what it was though.
Image

Locked