The officially official Devuan Forum!

You are not logged in.

#1 2021-11-12 22:54:33

zapper
Member
Registered: 2017-05-29
Posts: 835  

Anyone know how to compile firefox from source from Devuan?

Before you reply though, a few things:

I want to add arkenfox's preferences as default
I also want to add --disable-dbus as an option
Also I should add, mozilla's bloody source code only allows so called "supported distros" to compile it from source, which is really annoying, aka it blocks devuan for some reason... its extremely irritating.

Can someone who knows something about how to do this give me some clear instructions?  The --disable-dbus thing, I have some idea how to do, but the rest is a complete mystery.

EDIT: I should have said from devuan.

Last edited by zapper (2021-11-13 21:24:15)


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
Peace Be With us All!

Offline

#2 2021-11-12 23:50:03

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Anyone know how to compile firefox from source from Devuan?

Never tried this myself but Arch PKGBUILDs are good for checking this sort of thing, the prepare() function lists the steps and it looks like the option can be added to mozconfig file like this:

ac_add_options --disable-dbus

But it's probably best to build a modified package from the Debian source:

apt source firefox-esr

Then edit debian/browser.mozconfig.in and build the package (debuild -us -uc).

Good luck though. Are you sure you have enough RAM & disk space to build it? If not you could upload the source tarball, debian directory tarball and .dsc file to the openSUSE Build Service and let that build it for you. They only offer Debian repositories but it should be compatible.

EDIT: BLFS says it needs 5.2GiB of disk space and will take 28 SBU (on a four core machine).

https://www.linuxfromscratch.org/blfs/v … egacy.html

Last edited by Head_on_a_Stick (2021-11-12 23:52:35)


Brianna Ghey — Rest In Power

Offline

#3 2021-11-13 01:26:37

zapper
Member
Registered: 2017-05-29
Posts: 835  

Re: Anyone know how to compile firefox from source from Devuan?

Head_on_a_Stick wrote:

Never tried this myself but Arch PKGBUILDs are good for checking this sort of thing, the prepare() function lists the steps and it looks like the option can be added to mozconfig file like this:

ac_add_options --disable-dbus

But it's probably best to build a modified package from the Debian source:

apt source firefox-esr

Then edit debian/browser.mozconfig.in and build the package (debuild -us -uc).

Good luck though. Are you sure you have enough RAM & disk space to build it? If not you could upload the source tarball, debian directory tarball and .dsc file to the openSUSE Build Service and let that build it for you. They only offer Debian repositories but it should be compatible.

EDIT: BLFS says it needs 5.2GiB of disk space and will take 28 SBU (on a four core machine).

https://www.linuxfromscratch.org/blfs/v … egacy.html

I think you probably have some idea of this already, but yeah I was in fact doing this to make it usable with Hyperbola, but I am curious which glibc would be required to make it work wherever...

Quick note though what about the other part I mentioned, the arkenfox part? its basically a way of disabling a lot of firefox bs that is enabled by default.

Also, I wondered if glibc required is too new, is there a way to fix that as well?

Last edited by zapper (2021-11-13 01:39:24)


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
Peace Be With us All!

Offline

#4 2021-11-13 01:41:30

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Anyone know how to compile firefox from source from Devuan?

Add the preferences to a file at /usr/lib/firefox/browser/defaults/user.js

Here's OpenBSD's version for inspiration: https://github.com/openbsd/ports/blob/m … openbsd.js


Brianna Ghey — Rest In Power

Offline

#5 2021-11-13 10:44:16

hevidevi
Member
Registered: 2021-09-17
Posts: 230  

Re: Anyone know how to compile firefox from source from Devuan?

I dont know anything on compiling FF but i use arkenfox user.js with a custom user-overrides.js

arkenfox github page has all the instructions you need.

https://github.com/arkenfox/user.js

and this for the user-overrides.js that i have edited for my own personal use.

https://codeberg.org/12bytes.org/Firefo … supplement

Offline

#6 2021-11-13 12:51:53

zapper
Member
Registered: 2017-05-29
Posts: 835  

Re: Anyone know how to compile firefox from source from Devuan?

hevidevi wrote:

I dont know anything on compiling FF but i use arkenfox user.js with a custom user-overrides.js

arkenfox github page has all the instructions you need.

https://github.com/arkenfox/user.js

and this for the user-overrides.js that i have edited for my own personal use.

https://codeberg.org/12bytes.org/Firefo … supplement

Does it work before or after its compiled?


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
Peace Be With us All!

Offline

#7 2021-11-13 13:08:42

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Anyone know how to compile firefox from source from Devuan?

The .js preferences files work with any version of FF. You don't have to compile a custom version to use them.


Brianna Ghey — Rest In Power

Offline

#8 2021-11-13 20:33:50

zapper
Member
Registered: 2017-05-29
Posts: 835  

Re: Anyone know how to compile firefox from source from Devuan?

Head_on_a_Stick wrote:

The .js preferences files work with any version of FF. You don't have to compile a custom version to use them.

That is good, but tell me something, how the hell do I get the ./mach build to use the mozconfig changes I made?

It keeps doing the same old crap, no matter what I do.

It effectively acts like I changed nothing! Its kind of infuriating...

Very much so...

I mean, all I want is to do things a specific way, and to compile with less than 4 cores, and the damn thing refuses to accept my config for building.

This is my mozconfig in, browser/config/mozconfig

It feels almost like the devuan/debian build is meant to sabotage modifications... unless I am mistaken...

but yeah, its annoying.

Last edited by zapper (2021-11-13 20:34:40)


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
Peace Be With us All!

Offline

#9 2021-11-13 20:40:12

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Anyone know how to compile firefox from source from Devuan?

zapper wrote:

[how the hell do I get the ./mach build to use the mozconfig changes I made?

Follow the instructions on the BLFS page to which I linked.

Or just add a line to the PKGBUILD prepare() function and run makepkg -sri to build and install the custom package if you're doing this from Hyperbola.


Brianna Ghey — Rest In Power

Offline

#10 2021-11-13 20:43:06

zapper
Member
Registered: 2017-05-29
Posts: 835  

Re: Anyone know how to compile firefox from source from Devuan?

Head_on_a_Stick wrote:
zapper wrote:

[how the hell do I get the ./mach build to use the mozconfig changes I made?

Follow the instructions on the BLFS page to which I linked.

Or just add a line to the PKGBUILD prepare() function and run makepkg -sri to build and install the custom package if you're doing this from Hyperbola.

I was using the apt source version from devuan, I am a bit confused and kind of annoyed... also, I am using devuan currently to build.

Also, I should add for more info, all I really need is to know which mozconfig, etc.. to modify to add my changes.

Last edited by zapper (2021-11-13 20:47:15)


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
Peace Be With us All!

Offline

#11 2021-11-13 20:50:26

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Anyone know how to compile firefox from source from Devuan?

Is there any chance we could avoid full-quoting unnecessarily? It's making the thread harder to follow (IMO).

zapper wrote:

which mozconfig, etc.. to modify to add my changes

Look in the debian directory inside the firefox-esr source, the browser.mozconfig.in file is the one you want.


Brianna Ghey — Rest In Power

Offline

#12 2021-11-13 21:04:01

zapper
Member
Registered: 2017-05-29
Posts: 835  

Re: Anyone know how to compile firefox from source from Devuan?

"Look in the debian directory inside the firefox-esr source, the browser.mozconfig.in file is the one you want."

I had thought that as well, but it still seems to not pass on my changes, which is very weird imo.


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
Peace Be With us All!

Offline

#13 2021-11-13 21:09:44

GlennW
Member
From: Brisbane, Australia
Registered: 2019-07-18
Posts: 582  

Re: Anyone know how to compile firefox from source from Devuan?

here's what I did. from git,

installing firefox from git

archived :  /home/glenn/local/archive/src/apt/SOURCES/firefox-93.0.tar.bz2

cd /opt
wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/93.0/linux-x86_64/en-US/firefox-93.0.tar.bz2
tar xfj firefox-93.0.tar.bz2
/opt/firefox/firefox
remove the old firefox links
mv /usr/bin/firefox /usr/bin/firefoxold
or after backup of bookmarks and passwordz
apt remove firefox-esr
create new link
ln -s /opt/firefox/firefox /usr/bin/firefox

Works for me, I hope it works for you.

ps. no compiling ;-)

Last edited by GlennW (2021-11-13 21:13:14)


pic from 1993, new guitar day.

Offline

#14 2021-11-13 21:14:17

zapper
Member
Registered: 2017-05-29
Posts: 835  

Re: Anyone know how to compile firefox from source from Devuan?

GlennW wrote:

here's what I did. from git,

installing firefox from git

archived :  /home/glenn/local/archive/src/apt/SOURCES/firefox-93.0.tar.bz2

cd /opt
wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/93.0/linux-x86_64/en-US/firefox-93.0.tar.bz2
tar xfj firefox-93.0.tar.bz2
/opt/firefox/firefox
remove the old firefox links
mv /usr/bin/firefox /usr/bin/firefoxold
or after backup of bookmarks and passwordz
apt remove firefox-esr
create new link
ln -s /opt/firefox/firefox /usr/bin/firefox

Works for me, I hope it works for you.

I have no idea what this is...

I am trying to compile firefox with a modified config to be more secure and not require dbus, so I can use it on Hyperbola.

Also, with alsa support and no libpulse dependency, etc...

This doesn't make sense to me

Can you explain?


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
Peace Be With us All!

Offline

#15 2021-11-13 21:17:57

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Anyone know how to compile firefox from source from Devuan?

You won't be able to run a Devuan binary in Hyperbola. The ABI will be different and the sonames won't match.


Brianna Ghey — Rest In Power

Offline

#16 2021-11-13 21:20:04

zapper
Member
Registered: 2017-05-29
Posts: 835  

Re: Anyone know how to compile firefox from source from Devuan?

Head_on_a_Stick wrote:

You won't be able to run a Devuan binary in Hyperbola. The ABI will be different and the sonames won't match.

hmm...

huh...

I may just need to talk to one of my hyperbola buddies, he seems to know how to do stuff like this, I reckon I will have to wait for him.

Perhaps this is too complicated for me on my own... oh well...

I was going to build with ./mach package after build succeeded, but oh well.

Edit: I guess I should have had the title say from Devuan. That was more what I meant... hmm

Last edited by zapper (2021-11-13 21:23:37)


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
Peace Be With us All!

Offline

#17 2021-11-13 21:28:56

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Anyone know how to compile firefox from source from Devuan?

I am familiar with Arch packaging. My instructions in post #9 should work.

See https://wiki.archlinux.org/title/Arch_B … _using_Git for a quick way to checkout the Firefox PKGBUILD from the Arch repositories.


Brianna Ghey — Rest In Power

Offline

#18 2021-11-13 21:43:42

zapper
Member
Registered: 2017-05-29
Posts: 835  

Re: Anyone know how to compile firefox from source from Devuan?

Head_on_a_Stick wrote:

I am familiar with Arch packaging. My instructions in post #9 should work.

See https://wiki.archlinux.org/title/Arch_B … _using_Git for a quick way to checkout the Firefox PKGBUILD from the Arch repositories.

Only problem is Hyperbola has no rust,  with which to build it from... sad

Also, glibc version from Hyperbola is too old to work with  any builds from Arch.

Last edited by zapper (2021-11-13 21:44:30)


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
Peace Be With us All!

Offline

#19 2022-04-14 10:01:54

charliebrownau
Member
From: Australia
Registered: 2022-04-14
Posts: 62  
Website

Re: Anyone know how to compile firefox from source from Devuan?

Gday

I recommend looking into LibreWolf instead of {{{Firefox}}}

LibreWolf appimage works on Dev1 5.16.0-6 and the previous stable v4 iso also

LibreWolf works with ALSA out of the box also

Offline

#20 2022-04-14 16:58:40

andyprough
Member
Registered: 2019-10-19
Posts: 327  

Re: Anyone know how to compile firefox from source from Devuan?

I used to build customized versions of the Firefox nightly version quite often a couple of years ago. I would recommend working with nightly in your initial test builds, it tends to build a bit more easily for some reason. Probably Firefox's regular releases have all kinds of extra useless crap added on.

Also, I'd build it on a minimal Void installation with no dbus, just to have a very clean build environment that's already got some similarities to Hyperbola. You can have a graphical environment with void without any dbus if you stick to DWM (or probably JWM as well). I can walk you through the Void setup steps. I'll try building it soon. I may not have time to dig into it right away this week, but maybe the week after.

If I do get it built, I will need some help from you, zapper, on my Hyperbola 0.4 installation so I can test out the Firefox binary. I've had a bit of trouble with my graphics setup, and have set it aside and didn't bother to figure it out yet.

Offline

Board footer