palemoon custom build

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
frostknight
Astronaut
Astronaut
Posts: 594
Joined: 2022-08-10, 02:25

palemoon custom build

Post by frostknight » 2024-09-13, 17:59

How does one compile palemoon with a custom mozconfig?

I have been trying to get it working, but there is one small problem,

I keep getting this error. despite palemoon still being in the same place.

ERROR: Cannot find project palemoon
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

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

Re: palemoon custom build

Post by Moonchild » 2024-09-13, 18:47

Start off by following the instructions on https://developer.palemoon.org/build/windows/
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"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
Pentium4User
Board Warrior
Board Warrior
Posts: 1327
Joined: 2019-04-24, 09:38

Re: palemoon custom build

Post by Pentium4User » 2024-09-13, 19:02

frostknight wrote:
2024-09-13, 17:59
ERROR: Cannot find project palemoon
Which command does give you that?
The profile picture shows my Maico EC30 E ceiling fan.

User avatar
frostknight
Astronaut
Astronaut
Posts: 594
Joined: 2022-08-10, 02:25

Re: palemoon custom build

Post by frostknight » 2024-09-13, 22:34

Moonchild wrote:
2024-09-13, 18:47
Start off by following the instructions on https://developer.palemoon.org/build/windows/

I am building for linux though?

Or does that not matter?
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
frostknight
Astronaut
Astronaut
Posts: 594
Joined: 2022-08-10, 02:25

Re: palemoon custom build

Post by frostknight » 2024-09-13, 22:50

Pentium4User wrote:
2024-09-13, 19:02
frostknight wrote:
2024-09-13, 17:59
ERROR: Cannot find project palemoon
Which command does give you that?
./mach build

although, maybe building in platform isn't the right place? Idk...

I keep trying that and I can't build. You see I have a custom build I want to do. With dbus and gconf disabled and pulseaudio + alsa disabled.

But sndio enabled in its place.

And also I patched it so that tauthon instead of python2.7 appears.

I used these two things which I uploaded the below:

https://upload.disroot.org/r/sNZyRtZ2#P ... EBJmXutOE=

and the other below:

https://upload.disroot.org/r/v3hL6894#A ... sZ95i3bq8=
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

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

Re: palemoon custom build

Post by Moonchild » 2024-09-14, 02:58

For linux, use the linux instructions instead of course.

But the problem is you are in platform. You should be in the source root.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"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
andyprough
Board Warrior
Board Warrior
Posts: 1118
Joined: 2020-05-31, 04:33

Re: palemoon custom build

Post by andyprough » 2024-09-14, 03:06

frostknight wrote:
2024-09-13, 22:50
./mach build

although, maybe building in platform isn't the right place? Idk...
Run the ./mach build command in ~/Pale Moon/, not in ~/Pale Moon/platform/

I just emailed you my old Hyperbola .mozconfig file for building Pale Moon. Pay particular attention to this line:
ac_add_options --enable-optimize="-O2 -w -mfpmath=sse -fomit-frame-pointer -pipe -fno-unwind-tables -fno-asynchronous-unwind-tables"

I got those additional options from Hyperbola's iceweasel-uxp, and found that it wouldn't build on Hyperbola for me without them. I can't say that I understand any of the "fomit-frame-pointer" or "fno-unwind-tables" or any of that - just copied it over and it worked.

Off-topic:
That disroot Lufi file uploader is cool as hell!! I didn't even know we had that with our disroot accounts.

User avatar
frostknight
Astronaut
Astronaut
Posts: 594
Joined: 2022-08-10, 02:25

Re: palemoon custom build

Post by frostknight » 2024-09-14, 09:55

i
andyprough wrote:
2024-09-14, 03:06
I got those additional options from Hyperbola's iceweasel-uxp, and found that it wouldn't build on Hyperbola for me without them. I can't say that I understand any of the "fomit-frame-pointer" or "fno-unwind-tables" or any of that - just copied it over and it worked.
I got this error with my build every time I built from Pale-Moon folder regular. it was very bizarre. Yeah... ill check your config

Hmm... yeah, you are correct something was wrong with my config. I made a slight mod to your config but its building now despite me building from the source which platform is inside of.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
frostknight
Astronaut
Astronaut
Posts: 594
Joined: 2022-08-10, 02:25

Re: palemoon custom build

Post by frostknight » 2024-09-14, 10:08

Moonchild wrote:
2024-09-14, 02:58
For linux, use the linux instructions instead of course.

But the problem is you are in platform. You should be in the source root.
To be honest, it wasn't building in the source root either. But Andy's config seems to be making it work again.

Out of curiosity, why was --enable-bypass-protection option removed from palemoon? I recall g4jc talking about that a while back.

Is it because it didn't do anything useful or because it was even a facade of a protection?

Just curious.

Not judging, you may very well have had a good reason.

Only asking.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
frostknight
Astronaut
Astronaut
Posts: 594
Joined: 2022-08-10, 02:25

Re: palemoon custom build

Post by frostknight » 2024-09-15, 09:47

I built it finally. Thanks to your help, Andy and something else. I don't remember what though.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1118
Joined: 2020-05-31, 04:33

Re: palemoon custom build

Post by andyprough » 2024-09-15, 17:51

frostknight wrote:
2024-09-15, 09:47
I built it finally. Thanks to your help, Andy and something else. I don't remember what though.
How did you apply that Tauthon patch as part of the build process? That seems really useful.

User avatar
frostknight
Astronaut
Astronaut
Posts: 594
Joined: 2022-08-10, 02:25

Re: palemoon custom build

Post by frostknight » 2024-09-15, 22:38

andyprough wrote:
2024-09-15, 17:51
frostknight wrote:
2024-09-15, 09:47
I built it finally. Thanks to your help, Andy and something else. I don't remember what though.
How did you apply that Tauthon patch as part of the build process? That seems really useful.

In platform, i did:

git apply yourpatch --reject

I think I might have changed .mozconfig or some other file as well, but I don't remember.

In any case, using palemoon right now. :D
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
andyprough
Board Warrior
Board Warrior
Posts: 1118
Joined: 2020-05-31, 04:33

Re: palemoon custom build

Post by andyprough » 2024-09-15, 22:48

frostknight wrote:
2024-09-15, 22:38
In platform, i did:

git apply yourpatch --reject

I think I might have changed .mozconfig or some other file as well, but I don't remember.

In any case, using palemoon right now. :D
Did you run ./mach build from ~/Pale Moon/ or from ~/Pale Moon/platform/?

Share your final .mozconfig if you can, by disroot share file or by email.

Did you get sound working with sndio?

User avatar
frostknight
Astronaut
Astronaut
Posts: 594
Joined: 2022-08-10, 02:25

Re: palemoon custom build

Post by frostknight » 2024-09-15, 22:50

andyprough wrote:
2024-09-15, 22:48
Did you run ./mach build from ~/Pale Moon/ or from ~/Pale Moon/platform/?

Share your final .mozconfig if you can, by disroot share file or by email.

Did you get sound working with sndio?
I might have already since last night. I did use ./mach build in Pale Moon.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!