On Wed, Mar 03, 2021 at 11:37:25AM +0800, Kevin Buckley via lfs-dev wrote: > > I am aware that LFS expects the user to have all the sources unpacked, > somewhere, and doesn't provide explict instructions for doing so, nor for > changing into the package's source directory, at the package level, but I > have found that doing something akin to
Pedantically, LFS and BLFS expect the user to have the source packages (tarballs, or in BLFS occasionally zip files) somewhere. Using /sources is conventional. 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. > > 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. ĸen -- RIGHT, he said, PESTILENCE, OPEN ANOTHER PACK OF CARDS. I'M GOING TO GET TO THE BOTTOM OF THIS IF IT KILLS ME, FIGURATIVELY SPEAKING OF COURSE. Rincewind grabbed Twoflower and pulled. -- The Light Fantastic -- http://lists.linuxfromscratch.org/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page