Updated lfspkg LFS/BLFS package manager with dependency management
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.
Complete build scripts are included to build a complete system from the basic system ( chapter 6 of the LFS book ) up to a working xfce4 desktop.
You need to have built the tools ( up to the end of chapter 5 of the LFS book ), but this takes care of the rest.
Full dependency tracking is now built in and lfspkg will find and install all dependencies and their dependencies in the correct order, as long as there is a build script available of course!
Meta packages are now possible that 'pull in' all the necessary deps and build them.
Submission of new build scripts are welcome, see the web site for details.
A simple 'howto' is included on the site to get you started.
I am currently building the svn version, will run it without a package manager for a while (to learn) and when I decide to use one I will take a look on yours, I really liked it.
After finishing chapter 5 and chrooting I ran the package manager install-script.
Then I went to the system folder where my sources and your scripts are.
I did ./system-meta.LFSBuild install
and got:
/builder/system /builder/system
basename: extra operand 'something'
Try 'basename --help' for more information.
/usr/bin/lfspkg: line 512: ./: Is a directory
Build error with Oh dear, something went wrong with read()! in 'findbuildscript()' No such file or directory...
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Original Poster
Rep:
Have you installed wget and openssl? as it says here: https://sites.google.com/site/lfspkg/build-scripts
As wget is needed to download dependency packages? This should be done after all the tool chain is built, before trying to build the basic system.
I am aware of this rather cryptic error message in lfspkg if it can't find/download or build a dependency, I will be fixing it VERY soon as I stated in an earlier post I am presently upgrading the build scripts to v7.4, the current build scripts on the site are for an earlier version.
Do I have to put the source files for wget and openssl in the system folder. Now I have copied all the tarballs for the system packages in the system folder and the source files for openssl and wget in the net folder.
Or should I install wget and openssl from source as the blfs book says before running the meta script?
I briefly checked but it seems all the system packages are at v7.4 at the moment.
If I make it, I want to spend time on updating the scripts to v7.5.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Original Poster
Rep:
Sorry ignore what I said in my last post, I just got in from work and I think my brain has melted
Yes you need to download the system archives to the 'system' folder and at least opennssl and wget to the net folder, also make sure all the build scripts are in their respective folders.
IMPORTANT!
Check that the archive version numbers match the buildcript versions, you MAY have to comment out the 'gettar ....' lines in the wget and openssl buildscripts.
when everything is ready run the system-meta script and you should be good to go, I will update lfspkg in the next few days to do away with the error when a build dependency can't be met ( for whatever reason ), please bear with me.
Leave the wget and openssl archives in the 'net' folder as that is where the build scripts for them should be.
Wget and openssl willbe installed last after all the rest of the basic system, ( this is the only change to installing a basic system from the lfs book ).
I am working on getting the scripts updated to the latest packages and I will update them when they are all done ( having some problems with xfce at the moment ).
Hope this helps post back if you have anymore problems, if you want to check on the progress of the build use
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Original Poster
Rep:
Yes although it will only know about packages that have been ingstalled by otself packages not installed by lfspkg cant be manipuleted, listed, updated etc.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Original Poster
Rep:
Quote:
Originally Posted by ReaperX7
Keith, any scripts available to do a full core/world rebuild?
Sorry I don't get what you mean by " core/world" if you mean the basic system from the LFS book chap 6 then yes its system/system-meta.LFSBuild The only thing you would need is the toolchain.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.