LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Question about source code locations (http://www.linuxquestions.org/questions/linux-from-scratch-13/question-about-source-code-locations-13423/)

hanzerik 02-03-2002 10:25 AM

Question about source code locations
 
Well I've got up to the task of installing Glibc and things are going ok.

All my soure code is located in $LFS/usr/src/lfs-packages-3.1/<source code directories> . The only one I moved to $LFS/usr/src was the kernel source and I put that as $LFS/usr/src/linux.

Now my question is: should I have put everything under $LFS/usr/src/<source code directories> instead of $LFS/usr/src/lfs-packages/<source code directories> ? Am I going to run into problems later?

And also, I'm used to installing things as rpm's; are the directories of the software that I have allready installed safe to remove.

Thanks for any replies,

lfslinux 02-03-2002 10:40 AM

Re: Question about source code locations
 
Quote:

Originally posted by hanzerik
Well I've got up to the task of installing Glibc and things are going ok.

All my soure code is located in $LFS/usr/src/lfs-packages-3.1/<source code directories> . The only one I moved to $LFS/usr/src was the kernel source and I put that as $LFS/usr/src/linux.

Now my question is: should I have put everything under $LFS/usr/src/<source code directories> instead of $LFS/usr/src/lfs-packages/<source code directories> ? Am I going to run into problems later?

And also, I'm used to installing things as rpm's; are the directories of the software that I have allready installed safe to remove.

Thanks for any replies,

It does not matter one single iota where you keep your source directories. Just the kernel is often expected to be in /usr/src/linux but other than that store things wherever you want them.

When you installed something, you might as well remove the unpacked source directory because it's only going to take up a lot of diskspace andi it's quite useless to keep them around. If you need to recompile something it's suggested to unpack it fresh from the tarball and not re-use a previously used source tree.

This, by the way, is all explained in "Chapter 2 - Important Information" of the lfs-book.

TacKat 02-03-2002 10:47 AM

If you have the sources in a different place, you'll have to watch for some of the commands that use relative directory levels (cd ../something) and make sure they end up pointing to the right place.

hanzerik 02-03-2002 10:51 AM

Thanks, Thats what i figured, I wasnt sure. I'm doing this on a laptop, and I'm at about 65% usage on my $LFS partition so I'll remove the dir's for the stuff allready installed.
Thanks again.

DavidPhillips 02-06-2002 10:33 PM

Does not seem to be a problem, there are some ../*build or ../*patch commands but it still matters not where the sources are. as long as the unpacked patch and and untar folder are in the same /


All times are GMT -5. The time now is 04:11 AM.