[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Incorrect /usr/include/linux and /usr/src/linux sym-links



Hello.  A few problems I've encountered on installing the kernel source and headers.

1)  If the source is installed first, then the headers, the /usr/src/linux symlink
pointer to the headers directory instead of the source directory.  Perhaps a modification
to the install scripts for these packages could be done:

a)  If the headers for a particular kernel are installed, then the installation script
could see if the source for this kernel is installed.  If so, leave the /usr/src/linux
symlink pointing at the source directory.  Otherwise, make it point at the headers\
directory.


2)  Also, if the kernel headers or source is installed, then the /usr/include/linux
directory should be a symlink to /usr/src/linux/include/linux.  This is most
pertinent for compilation and insertion of experimental modules, for if /usr/include/linux
is not a symlink as stated, then after the module is compiled, insmod on the module
can result in "module compiled under wrong kernel version".

To remedy this, it might be a good idea to move the original /usr/include/linux directory
to /usr/include/linux.noKernelSource (or something like that) and then make /usr/include/linux
a symlink to /usr/src/linux/include/linux whenever the kernel headers or source are installed.
The opposite action could take place if all kernel header and source packages are purged.

Hope my run-on sentences are understandable.  :-)

-- Harmon


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: