1 |
Raj Swaminathan wrote: |
2 |
> |
3 |
> Hi, |
4 |
> |
5 |
> Can anybody tell me where i can obtain open source code for gentoo. Im |
6 |
> particularly looking for code for programs in /bin and /sbin. |
7 |
> I am on a project to find out how different distros implement a few of |
8 |
> these programs. So far i have only been lucky with OpenSolaris and FreeBSD. |
9 |
> |
10 |
> Thanks, |
11 |
> raj |
12 |
|
13 |
I recommend you check anything I say against other sources; I'm not a |
14 |
Gentoo expert. |
15 |
|
16 |
Gentoo is a source distribution. Nearly all packages installed are |
17 |
compiled from source. Gentoo fetches the source code from URLs supplied |
18 |
in the ebuilds located in /usr/portage and downloads it to |
19 |
/usr/portage/distfiles when you emerge a package. |
20 |
|
21 |
You'll probably want to start in /usr/portage/distfiles. Any source |
22 |
that you've downloaded and compiled through portage resides there until |
23 |
it's removed. |
24 |
|
25 |
However, it's possible (or maybe likely, I'm no expert) that not all of |
26 |
the source code for your system is in there. If you've used GRP |
27 |
packages, there would certainly be source missing from there, and if you |
28 |
installed with a stage 3 and then did not recompile everything, there |
29 |
would likely be at least some packages installed for which you don't |
30 |
have source. If you've installed any binary only programs, the |
31 |
binaries's package would be there but not the source for those packages. |
32 |
|
33 |
If you're looking for the remote source that is downloaded to be |
34 |
compiled on Gentoo, the URLs are given in the ebuilds for each package. |
35 |
|
36 |
I hope my explanation helps. |
37 |
-- |
38 |
gentoo-user@g.o mailing list |