LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 02-03-2002, 10:25 AM   #1
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
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,
 
Old 02-03-2002, 10:40 AM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 02-03-2002, 10:47 AM   #3
TacKat
Member
 
Registered: Jan 2002
Distribution: LFS
Posts: 90

Rep: Reputation: 15
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.
 
Old 02-03-2002, 10:51 AM   #4
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Original Poster
Rep: Reputation: 32
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.
 
Old 02-06-2002, 10:33 PM   #5
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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 /
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
casting question in kernel source code linetnew Programming 3 04-18-2005 05:55 AM
A source code housekeeping question Dewar Linux - General 1 12-11-2003 08:02 PM
Question about Source Code Pwcca Linux - General 3 03-12-2003 11:58 PM
Another source code question. JMC Linux - General 3 05-28-2002 02:58 AM
source code and platform question iggymac Linux - Software 3 01-24-2002 06:43 PM


All times are GMT -5. The time now is 11:01 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration