Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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.
View Poll Results: What package management do you use with LFS?
I managed to get dpkg installed fine enough, but it's not all that useful tbh.
With pacman, you might get an error about PATH_MAX not being defined, that's because a file is missing a limits.h include but I got another make error shortly after that which I am still looking into.
If I don't stay with pacman, I might look into what slackware has got going on as apt-get looks like a long list of dependencies to run through to get up and running.
I'm also using pacman. When I build 7.4-rc1, I needed to add a header file to curl. Take a look at how
Arch solved it. It worked for me.
I have installed abs from Arch. When I want to install something, I always start with copying their PKGBUILD and then I change it to my needs. Usually I follow the instructions from blfs. So even though I'm rolling my own, it feels like I have a big repo, thanks to the help I get from Arch/abs.
Well I think you should all use the package user system from Mathias Benkmann, mentioned in the book. Then you can install from source and keep control of what is being loaded onto your machine. It shows you when anything is trying to be written into a protected directory or if a file is trying to overwrite an existing file. For example, it'll prevent a package from writing to /usr/libexec, which LFS and BLFS (and Arch) don't use. (e.g. subversion and gjs).
It takes a bit more effort because you have to set some directories to the install group and change the permissions, bit IMO it's well worth it.
I mean to have a look at it one day, but feeling too noobooish for it at the moment!
Quote:
Originally Posted by Keith Hedger
Haha, I am also looking at pacman
I managed to get dpkg installed fine enough, but it's not all that useful tbh.
With pacman, you might get an error about PATH_MAX not being defined, that's because a file is missing a limits.h include but I got another make error shortly after that which I am still looking into.
If I don't stay with pacman, I might look into what slackware has got going on as apt-get looks like a long list of dependencies to run through to get up and running.
Try looking through Lennie's code. I am halfway through !
Well I think you should all use the package user system from Mathias Benkmann, mentioned in the book.
That's what I use too.
I'm just about to start an LFS 7.4 build. I think I'm going to compile su.c into su to use in chapter 5. In previous versions of LFS, su was installed in chapter 5 (su-tools) as part of a coreutils build, but sometime relatively recently, su was moved out of coreutils and into shadow, which doesn't get built until chapter 6.
Older versions of the package user hint had a copy of su.c in them that can be quickly compiled with gcc. Su is necessary for the package user management system to work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.