[EMAIL PROTECTED] wrote: > lists writes: > >> I was reading the distro specific support on linuxquestions.org for lfs, >> someone posted the following: >> " >> earlier i could not create binutils-build directory using d command >> given in book as lfs user. i did it by changing to root n made >> $LFS/binutils-build the working directory for binutils n proceeded >> " >> seems that in Chapter 4 the book should have it so users make a separate >> directory to unpack the sources and work from [ better option ] or chown >> $LFS to lfs [ not preferred ] >> >> it is obvious that the person posting their question doesn't really >> understand the ownership and permissions of linux, or he would have >> understood why he ran into the issue and resolved it better than he did. >> [ the list of errors he posted show a complete mixup in following the >> book to get to chapter 5 binutils pass 1, not related to the ownership >> or build folder issue ] >> >> Jaqui > > The book already says on page 3.1 to use a separate dir to keep source > tarballs and patches and work from there, and it specifically recommends > $LFS/sources. I would guess the problem the user on linuxquestions had is > that they likely missed the part on page 5.1 that says to unpack the source > tarball, enter the source dir, *then* follow the instructions on the package > installation page. They were probably trying to run "mkdir > ../binutils-build" from $LFS/sources, rather than > $LFS/sources/binutils-2.16.1 (which is where you would be if you read and > followed the book), hence the error. actually, I got the impression he was only in $LFS since $LFS/sources is chown lfs he would have write permissions there, unless he didn't do the chown.
I personally setup 3 directories under $LFS for working with, $LFS/tools and $LFS/sources, naturally, but I make a $LFS/working folder and chown that to lfs as well. I use the $LFS/working to unpack the tarballs and build from, the only difference is that I have to specify $LFS/sources for tar. what I see as a benefit is that if something goes wrong, it's faster and easier to get rid of $LFS/working and make it again than to wipe out each steps directories in $LFS/sources to avoid removing the tarballs, or else having to get all the packages again. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page