Raj Swaminathan wrote:
> 
> Hi,
> 
> Can anybody tell me where i can obtain open source code for gentoo. Im
> particularly looking for code for programs in /bin and /sbin.
> I am on a project to find out how different distros implement a few of
> these programs. So far i have only been lucky with OpenSolaris and FreeBSD.
> 
> Thanks,
> raj

I recommend you check anything I say against other sources; I'm not a
Gentoo expert.

Gentoo is a source distribution.  Nearly all packages installed are
compiled from source.  Gentoo fetches the source code from URLs supplied
in the ebuilds located in /usr/portage and downloads it to
/usr/portage/distfiles when you emerge a package.

You'll probably want to start in /usr/portage/distfiles.  Any source
that you've downloaded and compiled through portage resides there until
it's removed.

However, it's possible (or maybe likely, I'm no expert) that not all of
the source code for your system is in there.  If you've used GRP
packages, there would certainly be source missing from there, and if you
installed with a stage 3 and then did not recompile everything, there
would likely be at least some packages installed for which you don't
have source.  If you've installed any binary only programs, the
binaries's package would be there but not the source for those packages.

If you're looking for the remote source that is downloaded to be
compiled on Gentoo, the URLs are given in the ebuilds for each package.

I hope my explanation helps.
-- 
gentoo-user@gentoo.org mailing list

Reply via email to