On Thu, 4 Mar 2021 at 03:57, Ken Moffat via lfs-dev
<lfs-dev@lists.linuxfromscratch.org> wrote:
>
> My point is that you should not unpack then until you build them,
> and if you need to build them again you should remove the directory
> and unpack again.

I'm with you on that.

I also have a "clean up" stanza at the bottom of each package that
does, for each Pkguser user, hence the ability to use $HOME,

cd $HOME
rm -fr dejagnu-&dejagnu-version

but similar explicit instructions could be supplied that did the same
for a vanilla book, albeit with one eye on your next point, vis:

> >
> > export SOURCE=`echo &dejagnu-url; | cut -d/ -f 3-`
> > tar xf $LFSSRCS/$SOURCE
> > cd dejagnu-&dejagnu-version
> >
> > is a bit more explict and ties in nicely to the predefined Entities that
> > the Book sources already proivde, so as to give a deterministic set
> > of instructions.
>
> You've benn spoiled!  In some cases (mostly in BLFS, but I expect
> that LFS will also see this) the directory name does not match the
> tarball name - e.g. unversioned directory name.

Indeed.

Don't get me started on zip-ed (and it's mostly zip-ed) sources that don't
even contain an encompassing top-level source directory!

But yes, I chose dejagnu because it fitted the "idea", or maybe, the "ideal".

However, Book contributers will know the name of the directory that the
source tarball/zip unpacks into, and so could make things explict for the
exceptions.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to