How to script automate unTAR of packages

Mikie kmb at mikienet.com
Tue Dec 29 07:41:52 PST 2009


Yes I remember sources must be clean.
I am currently on Ch 5 and with the command Andres gave me, it will be easy to wget the sources and untar as many times as I need.

This should be added to the next book release.

Thanks.



-----Original Message-----
From: lfs-support-bounces at linuxfromscratch.org [mailto:lfs-support-bounces at linuxfromscratch.org] On Behalf Of Simon Geard
Sent: Monday, December 28, 2009 10:44 PM
To: lfs-support at linuxfromscratch.org
Subject: RE: How to script automate unTAR of packages

On Mon, 2009-12-28 at 15:54 -0500, Mikie wrote:
> > I have difficulty understanding *why* you want to do this mass extraction.
> 
> It's that much less typing.
> 
> If I can use the wget-list to pull all packages 
> ... and one command to extract them all to their directory this is good.

You *did* read the bit in General Compilation Instructions that says all
source trees should be removed once you're finished with them, and not
re-used between chapter 5 and 6? Extracting every directory in one go
pretty much guarantees you're going to miss that step at least once
during the build.

Besides, it's also just plain wrong in some cases. Several packages
(glibc-libidn and udev-config come to mind) are supposed to be extracted
into the source tree of other packages, not installed top-level...

Simon.


More information about the lfs-support mailing list