LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 11-15-2018, 08:33 AM   #1
Doctype_
LQ Newbie
 
Registered: Nov 2018
Posts: 4

Rep: Reputation: Disabled
Lightbulb Does Gentoo really *have* to compile *everything* from source or is that just Gentoo's preferred way of doing things?


I heard somewhere that the Gentoo package manager compiles *everything* from source, but seeing the firefox-bin package it looks like that is not the case. So does Portage really compile everything from source?
 
Old 11-15-2018, 09:16 AM   #2
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
You pretty much answered your own question. While many packages are offered as binaries, yes, Portage primarily compiles from source. If you're interested in trying out a neat little Gentoo installation that can easily be changed from a binary-to-source pure Gentoo system, you might try CloverOS.
 
1 members found this post helpful.
Old 11-15-2018, 10:12 AM   #3
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
Some of the larger pkgs like libreoffice or FF are offered in binary form. everything else is compiled. it's why people choose Gentoo. If you want that much control over the software, you pretty much need to build it yourself. If it doesn't matter to you, use a binary distro.
 
1 members found this post helpful.
Old 11-15-2018, 10:21 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
Compiling libreoffice from source is very difficult because it takes days and some bits have to be downloaded "live". There's instructions for doing it in BLFS but I know people have had trouble with it. I'm not surprised Gentoo provides binaries; Crux does as well.

I seem to remember that when I briefly tried Gentoo several years ago, there was a restrictive license covering firefox-bin. You could only use it on the machine you downloaded it to, because use on other local machines constituted "distribution" and the build wasn't licensed by Mozilla.
 
Old 11-15-2018, 10:32 AM   #5
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
I've never had an issue compiling any package, but then again my build machine is a monster (12 core xeon, 96gb ram). Actually for me, webkitgtk and compilers (llvm60, 70) take a long time (1+ hours). I am not using Linux though, but the build times on Linux were comparable.

For those folks with less horsepower, compiling doesn't make sense - the optimizations aren't THAT noticeable any more.Back in the days of pentium 1, 2, 3, it mattered!
 
Old 11-16-2018, 11:12 AM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Compiling everything from source is kind of the whole point of Gentoo.

There are lots of binary distros out there, some of them are offspring of Gentoo, such as Sabayon.

It's not about performance improvement (at least, for me, it never was) but about being able to swith on/off functionality in every single package, or being able to change every piece of the distro to your liking, without having to keep track of every single dep yourself (just like in Linux From Scratch, for example). This serves a number of purposes. For example, for critical things, having less code paths enabled usually means a lesser attack surface, and probably less bugs (though that's arguable). Size is also a concern in embedded devices, and Gentoo is a brilliant tool for developers of any kind, because you don't have to go around fishing and installing -dev(el) packages to compile whatever thing you need to compile. Maintaining your own set of patches for system packages is quite simple using portage, and the slotting mechanism is also nice.

There are some binary packages, this is for a number of reasons, not only because of package size, but also because of license issues. If you go purist, then there's (almost) no single distro that can be built without binary packages nowadays, because you will almost always depend on binary drivers, firmware blobs, closed source programs, etc.
 
2 members found this post helpful.
Old 11-16-2018, 11:36 AM   #7
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447Reputation: 4447
I don't think Linux From Scratch is comparable. The build instructions in LFS are very rigid; they have to be to make everything work. The configure options that you use in each build are laid down and there is nothing like Gentoo's use flags. BLFS cuts you a bit more slack in that you can choose which packages to install, but you still need to respect the configure options provided and the dependencies that the book treats as required or recommended.

Gentoo gives you unrivalled freedom of choice but not everybody wants that.
 
1 members found this post helpful.
Old 11-16-2018, 01:43 PM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by hazel View Post
I don't think Linux From Scratch is comparable. The build instructions in LFS are very rigid; they have to be to make everything work. The configure options that you use in each build are laid down and there is nothing like Gentoo's use flags. BLFS cuts you a bit more slack in that you can choose which packages to install, but you still need to respect the configure options provided and the dependencies that the book treats as required or recommended.
Absolutely, that's the true power of portage. In LFS, whatever you do, you gotta keep the pieces when it breaks, and you have to keep track of every single thing yourself. Included, but not limited to: deps, abi breakage, library versioning, etc.

Quote:
Gentoo gives you unrivalled freedom of choice but not everybody wants that.
Sure. But, if you want that, then Gentoo is the most safe and easy way to go, definitely.
 
Old 11-19-2018, 07:37 AM   #9
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Quote:
Originally Posted by i92guboj View Post
It's not about performance improvement (at least, for me, it never was) but about being able to swith on/off functionality in every single package, or being able to change every piece of the distro to your liking, without having to keep track of every single dep yourself (just like in Linux From Scratch, for example). This serves a number of purposes. For example, for critical things, having less code paths enabled usually means a lesser attack surface, and probably less bugs (though that's arguable).
Same here. The performance is great, but the fine-grained control afforded by USE flags is the main benefit, for me.
 
  


Reply



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
The Libreboot C201 from Minifree is really really really ridiculously open source jeremy Linux - News 0 12-09-2016 10:51 AM
Perl - Doing things the hard way? fusion1275 Programming 9 07-03-2011 02:49 PM
Do I really have to compile everything to keep ports up-to-date on FreeBSD? genmaicha *BSD 2 12-21-2009 04:24 PM
LXer: Tale of a codec optimisation: doing things the GNU/Linux way LXer Syndicated Linux News 0 06-08-2008 09:20 PM
Correct way of doing things.... 10xOXR Linux - Wireless Networking 1 01-27-2005 04:12 PM

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

All times are GMT -5. The time now is 09:48 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