LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 10-28-2013, 10:15 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Updated lfspkg LFS/BLFS package manager with dependency management


Well with a bit of prompting I have updated lfspkg to handle dependencies and created a new website here:

https://sites.google.com/site/lfspkg

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.

Let me know what you think and enjoy!
 
Old 03-04-2014, 12:06 AM   #2
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 194Reputation: 194
I really liked this
 
Old 03-04-2014, 10:25 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Original Poster
Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Thanks! I haven't updated it for a bit as I am working on getting it up to LFS 7.4 I will post when It is ready.
 
Old 03-04-2014, 11:19 AM   #4
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 194Reputation: 194
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.
 
Old 03-05-2014, 08:40 AM   #5
hendrickxm
Member
 
Registered: Feb 2014
Posts: 215

Rep: Reputation: Disabled
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...

What am I doing wrong?
 
Old 03-05-2014, 11:05 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Original Poster
Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
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.
 
Old 03-05-2014, 12:04 PM   #7
hendrickxm
Member
 
Registered: Feb 2014
Posts: 215

Rep: Reputation: Disabled
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.
 
Old 03-05-2014, 12:24 PM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Original Poster
Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
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
Code:
lfspkg ""
to get a list of all installed packages
 
Old 03-05-2014, 03:37 PM   #9
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 194Reputation: 194
Is it posible to use lfspkg after the whole system was build? To track the packages build/installed from there?
 
Old 03-05-2014, 04:09 PM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Original Poster
Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
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.
 
Old 03-13-2014, 06:41 AM   #11
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Original Poster
Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
New versions of the build scripts have been uploaded to the website up to just before LFS/BLFS went to 7.5.

New lfspkg with some enhancements and a load of bug fixes ( no longer exits with obscure error message if it can't find/install a dependency ).

This is what it looks like:
https://www.dropbox.com/s/8q5bqgpd63sna15/lfs7.4.png

Last edited by Keith Hedger; 03-13-2014 at 06:42 AM. Reason: missed a bit
 
Old 03-14-2014, 10:16 AM   #12
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,427
Blog Entries: 15

Rep: Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993Reputation: 1993
Keith, any scripts available to do a full core/world rebuild?
 
Old 03-14-2014, 10:24 AM   #13
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Original Poster
Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Quote:
Originally Posted by ReaperX7 View Post
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.
 
Old 04-21-2014, 06:13 AM   #14
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,571

Original Poster
Rep: Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648Reputation: 648
Build scripts updated ( finally! ) to 7.5
Lots of bug fixes and improvements in lfspkg, enjoy!
 
  


Reply

Tags
blfs, lfs, lfspkg, package manager, website


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Adding a package manager to a blfs system Alpha90 Linux From Scratch 3 02-18-2013 08:08 AM
Automated BLFS using package management Johnburrell Linux From Scratch 0 05-21-2012 10:05 AM
Looking for slackware with dependency resolution in package management rng Slackware 26 03-12-2012 05:48 AM
slackware package management dependency support rng Linux - General 3 01-09-2012 04:56 AM
package management and dependency checking BCarey Slackware 10 01-04-2009 07:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration