On 2012-02-09, File Shepard <
no...@nowhere.org> wrote:
> For some reason I never bothered to figure out if sys.tar.gz is a subset
> of src.tar.gz, but I don't think so, at least not a complete subset.
>
From some notes I took a year or so ago ... The contents of sys.tar.gz
are included in src.tar.gz on official install CDs. However, on the ftp
site they comes as two separate tarballs.
I presume this is to make it easier for people who have done ftp installs
and want to build a custom kernel. They don't have to download all the
source.
> src.tar.gz goes as /usr/src and sys.tar.gz gets put into /usr/src/sys
> (but doesn't create the sys subdirectory).
In both 4.9 and 5.0, sys.tar.gz includes ./sys/ in the path of all the
files and can be untarred directly in /usr/src.
>
> I think there's something in
> /usr/src/sys from unpacking src.tar.gz, but it's not a complete set.
As near as I was able to determine, sys.tar.gz is the complete contents of
/usr/src/sys/.
> You need sys.tar.gz if you want to build a kernel.
>
> ports.tar.gz and src.tar.gz contain the ports and src directories, but
> sys.tar.gz doesn't. It'll splatter files all over the place and make a
> mess if you just untar it. I've gotten so I create directories like
> /usr/ports1 when I can't remember, then put the tarball into it and
> unpack. If it made a subdirectory it's a simple matter to cd into
> ports1 and do something like mv ports .. then delete ports1, easier than
> cleaning up if you erred the other way.
>
You should probably read the release man page. It'll explain where the
tarballs go and what you can move elsewhere.
--
rat...@food.skaterat.net
All foods should be removed to reply