Trying to build Firefox 59.0.2, from source, for stable
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Rep:
Trying to build Firefox 59.0.2, from source, for stable
Hello. I have Debian Stable. Currently I have Firefox-ESR 52.7.3. I'm looking to install Firefox 59.0.2. I'm trying to build a package from Sid's sources, but have not had any luck yet.
I obtained the source. However, when I run the command "apt build-dep firefox", I receive the following feedback:
Code:
The following packages have unmet dependencies:
builddeps:firefox : Depends: rustc (>= 1.22.1)
Depends: cargo (>= 0.23) but it is not installable
E: Unable to correct problems, you have held broken packages.
It took a while to get it down to just these two. There were various other dependencies that I did manage to build and install. But I can't seem to get these two packages built.
"rustc" seems to depend on itself, which is quite the Catch-22.
Code:
root@debian:/home/mark/Downloads/rustc/rustc-1.24.1+dfsg1# apt build-dep rustc
<snipped>
The following packages have unmet dependencies:
builddeps:rustc : Depends: cargo (>= 0.19.0) but it is not installable
Depends: rustc (>= 1.23.0+dfsg)
E: Unable to correct problems, you have held broken packages.
And "cargo" also depends on itself (and rustc). So how do I build the packages for these two?
Last edited by mark_alfred; 04-07-2018 at 05:24 PM.
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627
Rep:
I know it's very satisfying to build something but firefox provide a tarball on their web site. You just download and extract to the folder of your choice (I use /usr/share/) and then create a symlink to the executable in /usr/bin/.
Everything's there and it works.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
But the package from mozilla is not a source package. It's precompiled.
OK, first off all, if your going to do build-deps for a Sid package, you have to have Sid sources in /etc/apt/sources.list. Build-deps doesn't actually build deps. It installs all the packages that a source package depends on to build properly.
The only time you want to build from source is if you want a certain configuration option that isn't in the precompiled binary package, or if the package is not available in a distro-specific package. Otherwise, there's no point whatsoever.
The errors that you see are part of the reason why the latest version of Firefox are not available in Debian stable or the stable-backports. The rust language compiler in Debian stable is too old.
The simplest thing to do is to just follow petelq's advice. Download the latest Firefox, extract it somewhere (I use /opt), and link the executable to /usr/bin:
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572
Original Poster
Rep:
I finally did just install the precompiled package from Mozilla, rather than build my own from Sid's source --> seems that's not possible. I installed it to /usr/local, since I have both that file and my own user as belonging to the group "staff", allowing my regular user to install stuff there.
So I now have Firefox Quantum 61.0.2 installed. I like the ability to have containers (particularly for Facebook, and I've also installed an add-on for containing Google). Makes me feel like I'm protecting my privacy better (though if in fact I am I really don't know).
I still have Firefox-ESR installed. Not sure if I should get rid of it or not.
[later edit] I did remove Firefox-ESR, and ran the following command:
Works well. When newer programs are required, I still prefer porting to stable from Sid's source, but not possible in this case. Firefox-ESR worked fine, but I wanted to have the Facebook Container addon, to give myself at least an illusion of privacy.
Last edited by mark_alfred; 08-15-2018 at 05:50 PM.
Reason: update
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.