Re: Question about /usr/src setup
Hi,
No, I don't think the arrangement is incompatible, I think
some documentation is missing/misleading. The idea is that
/usr/src/linux always either contains include/{linux,asm} or points
to a directory which contains those subdirectories, usually a
directory with the full kernel source or a directory with just the
kernel headers.
I think debian has standardized on /usr/src/linux being a link
(that is the case if you install released debian packages, and has
been for a while now).
If you like living on the edge and compiling your own kernel
packages ;-), you have to follow the convention of letting
/usr/src/linux be a link, and unpack the pristine kernel sources
someplace else.
Yes, you are right in case you install full sources
periodically, but normally only keep kernel-headers around, you have
to unpack the sources in a new directory and not in /usr/src/linux.
(say, in /tmp/linux). As far as I remember, kernel-sources unpack in
./linux/, but it has been a long time since I downloaded a full
package. Then, unpack kernel-package.X.X.tar.gz in the parent
directory, which will unpack into the kernel source tree. Run
cd linux; make config; ./debian.rules kernel_{image,source,headers}
to create the new packages. (the new kernel-headers or kernel-source
packages will manage the /usr/src/linux link automatically on
installation).
If you install kernel-source/headers packages, they will
modify the link /usr/src/linux to point to the latest kernel-source or
kernel-header (in fact, you could have a stack effect, installing a
number of such packages moves /usr/src/linux to each succesive latest
package; you may remove the packages in reverse order and see the
/usr/src/linux link cycle back, always pointing to the latest
version.
I'm modifying the instructions in the kernel-package package
as I speak, and will upload the new version tomorrow.
manoj
-- "Using an IBM PC is like juggling straight razors. Using a Mac is
like shaving with a bowling pin." Ted Nelson, _Computer Lib_
Manoj Srivastava Systems Research Programmer, Project Pilgrim,
Phone: (413) 545-3918 A143B Lederle Graduate Research Center,
Fax: (413) 545-1249 University of Massachusetts, Amherst, MA 01003
<srivasta@pilgrim.umass.edu> <URL:http://www.pilgrim.umass.edu/%7Esrivasta/>
Reply to: