[lfs-support] confusion setting up binutils-build directory
hi, i am at Chapter 5.4 of the lfs manual v7.0 and i'm confused where it says to make the binutils-build directory. i am assuming at this step, i should be user lfs and currently in the $LFS/sources directory. however the command mkdir -v ../binutils-build cannot successfully issued by user lfs, because the $LFS is owned by root (partition that was mounted as root). SO question would be... *A: Should the owner:group of $LFS be root:root or lfs:lfs ?* **or** *B: Should the commands listed in Chapter 5.4 be issued as user rootinstead of user lfs?* (the page i am currently viewing) http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html thank you for your time and i appreciate your generous work on linuxfromscratch. best regards, dave -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] confusion setting up binutils-build directory
On Dec 28, 2011 5:53 AM, Dave H thegenrl...@gmail.com wrote: hi, i am at Chapter 5.4 of the lfs manual v7.0 and i'm confused where it says to make the binutils-build directory. i am assuming at this step, i should be user lfs and currently in the $LFS/sources directory. however the command mkdir -v ../binutils-build cannot successfully issued by user lfs, because the $LFS is owned by root (partition that was mounted as root). SO question would be... A: Should the owner:group of $LFS be root:root or lfs:lfs ? **or** B: Should the commands listed in Chapter 5.4 be issued as user root instead of user lfs? (the page i am currently viewing) http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html thank you for your time and i appreciate your generous work on linuxfromscratch. best regards, dave -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page The build directory is created inside of LFS, but outside of the binutils directory. The command is executed from within the binutils directory -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] confusion setting up binutils-build directory
On Wed, 28 Dec 2011 05:53:04 -0500 Dave H thegenrl...@gmail.com wrote: hi, i am at Chapter 5.4 of the lfs manual v7.0 and i'm confused where it says to make the binutils-build directory. i am assuming at this step, i should be user lfs and currently in the $LFS/sources directory. however the command mkdir -v ../binutils-build cannot successfully issued by user lfs, because the $LFS is owned by root (partition that was mounted as root). Read the book, particularly the box marked important on this page: http://www.linuxfromscratch.org/lfs/view/stable/chapter05/generalinstructions.html So, on each page you should untar the source, cd into the directory created and then start executing the commands on the page. So, for binutils you should start in /mnt/lfs/sources/binutils-2.21.1 and mkdir -v ../binutils-build will make /mnt/lfs/sources/binutils-build. If you're following the book /mnt/lfs/sources is owned and writable for user lfs so there is no problem. Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] confusion setting up binutils-build directory
$LFS shouldn't be owned by root, instead it should be owned by your lfs build user, as root chown lfs:lfs $LFS -R tbh off the top of my head I can't recall if this is detailed in chapter4 Personally I create a build dir on the root of LFS mkdir $LFS/build I then symlink the sources/patch files into it ln -s $LFS/sources/* $LFS/build/ This way if I decide I want to start over I can just delete everthing except sources which is easier than cleaning up dirs in source to make the untar and cd a little quicker ( and much easier for scripts ) I create this 'function' untar () { cd $( tar -vxf $1 | awk -F\/ 'END{print $1}' ) } it is very basic, it could be expanded to do checks ( like file exists etc. ) untar sometarball.tar.bz2 very useful if you are scripting a build, as you don't need to guess where stuff was untared to, you automatically end up in the desired dir. On Dec 28, 2011 10:53 AM, Dave H thegenrl...@gmail.com wrote: hi, i am at Chapter 5.4 of the lfs manual v7.0 and i'm confused where it says to make the binutils-build directory. i am assuming at this step, i should be user lfs and currently in the $LFS/sources directory. however the command mkdir -v ../binutils-build cannot successfully issued by user lfs, because the $LFS is owned by root (partition that was mounted as root). SO question would be... *A: Should the owner:group of $LFS be root:root or lfs:lfs ?* **or** *B: Should the commands listed in Chapter 5.4 be issued as user rootinstead of user lfs?* (the page i am currently viewing) http://www.linuxfromscratch.org/lfs/view/stable/chapter05/binutils-pass1.html thank you for your time and i appreciate your generous work on linuxfromscratch. best regards, dave -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: [lfs-support] confusion setting up binutils-build directory
On Wed, 2011-12-28 at 05:53 -0500, Dave H wrote: hi, i am at Chapter 5.4 of the lfs manual v7.0 and i'm confused where it says to make the binutils-build directory. i am assuming at this step, i should be user lfs and currently in the $LFS/sources directory. No. Remember, *every* package in LFS assumes that you've first extracted the appropriate sources, and gone into the resulting directory. Then, and only then, do you run the instructions on the individual page. If you're not doing this, go back and reread the section titled General Compilation Instructions. Particularly the bit at the bottom marked Important!, with a big heavy pay attention border around it. We're not joking when we say it's important. Simon. signature.asc Description: This is a digitally signed message part -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page