LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-07-2018, 05:23 PM   #1
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Rep: Reputation: 210Reputation: 210Reputation: 210
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.
 
Old 04-08-2018, 12:04 PM   #2
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
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.
 
2 members found this post helpful.
Old 04-13-2018, 10:41 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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.
 
Old 04-14-2018, 05:43 AM   #4
petelq
Member
 
Registered: Aug 2008
Location: Yorkshire
Distribution: openSUSE(Leap and Tumbleweed) and a (not so) regularly changing third and fourth
Posts: 627

Rep: Reputation: Disabled
Quote:
Originally Posted by AwesomeMachine View Post
But the package from mozilla is not a source package. It's precompiled.
I thought that's what I said.
 
Old 04-17-2018, 01:05 PM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
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:

Quote:
ln -s /opt/firefox/firefox /usr/bin/firefox
 
2 members found this post helpful.
Old 08-14-2018, 07:16 PM   #6
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
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:
Code:
root@debian:/usr/local/firefox# ln -s /usr/local/firefox/firefox /usr/bin/firefox
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
 
Old 08-15-2018, 12:13 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
may i ask why you need specifically 59.0.2? iirc, firefox is at 61-something now.
 
Old 08-15-2018, 01:33 PM   #8
mark_alfred
Senior Member
 
Registered: Jul 2003
Location: Toronto, Ontario, Canada
Distribution: Ubuntu Linux 16.04, Debian 10, LineageOS 14.1
Posts: 1,572

Original Poster
Rep: Reputation: 210Reputation: 210Reputation: 210
Note the date of the first post, and then read post #6.
 
Old 08-16-2018, 01:03 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ ah, my bad.
 
  


Reply

Tags
debian, firefox, source



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Firefox for Windows finally has an official, stable 64-bit build LXer Syndicated Linux News 0 12-16-2015 03:11 PM
upgrading debian minor build versions and from stable to testing Cultist Debian 3 03-23-2012 08:45 PM
LXer: OLPC comes up with stable Linux build LXer Syndicated Linux News 0 03-20-2007 03:31 AM
Are there any SlackBuilds for Firefox 1.5 (build from source) spinner_0 Slackware 7 01-18-2006 04:48 AM
how to build a firefox from source? Xuer Linux - Newbie 1 02-10-2004 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration