News for hackers. Stuff that matters.
Re:Linux from Scratch by degaart on Tuesday September 15, 2026 @03:33AM (#49709039)
I'd like to counter your comment.

LFS helped me a lot. It taught me how to compile packages manually, and how GNU/Linux components fit together.

Armed with that knowledge, I could do things others could not do:

- Make applications that bundle/automatically download their dependencies, compile them with custom flags (static linking)

- Diagnose build errors buried in deep dependencies when using vcpkg

- Compile programs for esotheric systems: e.g: Intel MacOS X 10.5, an obsolete system noone else on earth is using except the company I worked at

- Create application targetting obsolete systems but using the latest version of its dependencies

- Compile recent programs on esotheric systems, by bootstraping a newer gcc on the newer system, patching as necessary

- Create my own stripped down distro, tuned to my specifications

- Use that stripped distro as a docker container

- Run recent linux on obsolete hardware no longer supported by mainstream distros

- Reformat a cloud dedicated server without physical access by first bootstraping a minimal distro on a ramdisk, unmounting the main drive, partitioning that drive, and installing the new distro on that drive. Reboot and pray.

- Build a cross-compiler for targetting a freestanding environment

- Build latest KDE/XFCE for debian stable. No more "but debian ships with outdated software!!11"

- Build applications on a distro they were not designed for (Zimbra OSE on debian)

Re:Linux from Scratch by shevy-java on Tuesday September 15, 2026 @04:37AM (#49709523)
None of that requires LFS; I compiled KDE via scripts many years ago. Why would LFS be needed for that? That makes no sense. Debian being slow is their problem, other distributions aren't snail-like like that. The default compiler used in LFS is also hardly a real cross-compiler, it is more a bare-minimum compiler for C/C++. This annoys me because e. g. I need fortran for R, so a bare-minimum compiler isn't as useful as a more feature-complete GCC. And GCC also causes some issues, e. g. like my problem with options.cc.

I think you missed the main argument though - LFS isn't quite as good as it could be. That is a correct statement that was made.

Re:Linux from Scratch by smitty1e on Tuesday September 15, 2026 @04:52AM (#49709644)
"Requires"/"needed".

LFS is about the muscle memory; the documentation; the cohesiveness.

I always recommend it to people and consider it foundational to my understanding of How Stuff Works.

Whether that amounts to a hill of beans in the AI world remains to be seen.

Re:Linux from Scratch by charcircuit on Tuesday September 15, 2026 @05:15AM (#49709803)
It is more how stuff is compiled than how stuff works.

Fundamental things like how processes are scheduled are not explained by LFS.

Re:Linux from Scratch by gchamonlive on Tuesday September 15, 2026 @06:53AM (#49710505)
"works" is a loaded term. LFS is how the rubber meets the road, you want how the rubber is made, for that you need something like https://www.baeldung.com/linux/processes-guide or https://linux-kernel-labs.github.io/refs/heads/master/lectur...
Re:Linux from Scratch by newswasboring on Tuesday September 15, 2026 @10:25AM (#49713051)
And if you want to get to at least the bottom most visible turtle you go with something like NAND to Tetris https://www.nand2tetris.org/
Re:Linux from Scratch by charcircuit on Tuesday September 15, 2026 @12:12PM (#49714746)
>LFS is how the rubber meets the road

Again I disagree. Way too much time is spent building software than actual practical OS development.

Re:Linux from Scratch by mid-kid on Tuesday September 15, 2026 @12:34PM (#49715060)
LFS is not OS development. You build a distribution by assembling all the components. If you want to develop an OS from scratch, perhaps you're looking for osdev.org.
Re:Linux from Scratch by charcircuit on Tuesday September 15, 2026 @12:45PM (#49715214)
What is the point of making a distro, if not to make an OS? It's the same thing.
Re:Linux from Scratch by gchamonlive on Tuesday September 15, 2026 @12:49PM (#49715285)
One supports the other, they aren't laid in opposition, but they are different, well-defined disciplines
Re:Linux from Scratch by smitty1e on Tuesday September 15, 2026 @04:24PM (#49718406)
OK: "How *nix tools functioned together in command-line days".
Re:Linux from Scratch by pjmlp on Tuesday September 15, 2026 @05:05AM (#49709731)
Learning how to compile packages manually it was a common skill long before Linux came to be, and how GNU/Linux fits together could also easily be learnt with Slackware or Yggdrasil.
Re:Linux from Scratch by Intermernet on Tuesday September 15, 2026 @08:05AM (#49711285)
As someone who started using Linux in 1996 (Slackware, of course), I learnt the hard way about compiling packages. I remember trying to compile the kernel, and doing "make config" and following hundreds of options, and not knowing that I then needed to do "make" or "make zimage" or "make install" after any of the config stuff. Obvious, dumb, rookie errors, but still understandable for a teenager coming from Windows. Doing LFS really taught me a lot about dependencies and complexity, as well as understanding of the actual boot process. All of this helped me greatly in later years.
Re:Linux from Scratch by abhiyerra on Tuesday September 15, 2026 @12:37PM (#49715100)
Your experience sounds exactly like mine. I downloaded Linux 2.6 which took 2 days to compile. Then when I installed it on my Slackware system completely hosed it. But learned so much…
Re:Linux from Scratch by immmmmm on Tuesday September 15, 2026 @07:20AM (#49710805)
I started with Slackware 1.0 on i386.

I certainly do not miss compiling X11!

Re:Linux from Scratch by fuzztester on Tuesday September 15, 2026 @06:07AM (#49710158)
>Learning how to compile packages manually it was a common skill long before Linux came to be

Right. I used to compile many open source packages from source on many flavors of Unix back in the day, for years. Perl, Python, MySQL, many others. Miscellaneous utilities. Esoteric languages. Even Oracle, once, on a Unix server, right at a large manufacturing company site. Even building Unix kernels from source was common on some Unix versions. And not just for a regular install. Many times, (re)building Unix kernels from source, was the only way to get some software packages or hardware devices or peripherals, like printers or terminal controllers or even hard disk controllers, to work on the system. Typically you would edit some config files or settings files manually, change values of params, or in some cases use a TUI to do that, and then rebuild via a makefile. You had to save the old kernel in case the new one didn't work, and if so, lather, rinse, repeat, till everything did work.

And that practice was nothing special. A lot if people did it routinely. Most, in fact, I'd say. Talking about devs and sysadmins here, not end users, although some of the latter probably did it too.

Many apps, tools and utilities came as source code, often in a .tar or .tar.gz file. You would untar or gunzip it into a new directory, and do your stuff, running makefiles, other shell commands, setting env. vars., etc.

Re:Linux from Scratch by motbus3 on Tuesday September 15, 2026 @10:03AM (#49712685)
I agree with you. Maybe the person from the first comment read first few pages only which basically give some context.
Re:Linux from Scratch by mobilio on Tuesday September 15, 2026 @10:51AM (#49713454)
For me also helps me to cross compile Nvidia kernel drivers for other version of kernel than running one. Plus compile stripped-down version of X.

All this for running on embedded Linux with 32MB flash drive running from read-only volume powering two kiosk displays.