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

Re: Bug#336732: /lib/modules/*/build symlink should be ignored when checking if kernel is installed



On Sun, 6 Nov 2005 17:03:20 +0100, Sven Luther <sven.luther@wanadoo.fr> said: 

> On Sun, Nov 06, 2005 at 03:38:26PM +0000, Martin Michlmayr wrote:
>> * Manoj Srivastava <srivasta@debian.org> [2005-11-06 09:13]:
>> > > Can you explain why it is a bug?  I think upstream puts header
>> > > files in /lib/modules/<foo>/build/ too, so it's not as if this
>> > > is a Debian specific thing.
>> > 
>> >         No, upstream does not put headers in that location, but a
>> >  symbolic link.
>> 
>> The kernel-headers package only puts a symbolic link there, so this
>> point is moot.
>> 
>> >         Can you explain to me why kernel-headers is not putting a
>> >  script in /etc/kernel/postinst.d and /etc/kernel/prerm.d to
>> >  optionally add and remove the build link?
>> 
>> Right, so what you're saying is that the headers package should
>> create the symlink in postinst and prerm rather than shipping it in
>> the .deb itself?
>> 
>> I don't know anything about kernel packaging, but this sounds like
>> a good question and maybe someone from -kernel can take a look and
>> think about this.

> There is no reason that the linux-headers packages could not be used
> to build out-of-tree modules using the symlink, without having the
> linux-image installed, so this doesn't work, even though it looks
> like a seducing proposal.

        Third party modules which have been integrated into Debian can
 still be built, without the linux-image installed, by 
  a) cd /usr/src/kernel-headers-foo, call make-kpkg
  b) KSRC=/usr/src/kernel-headers-foo, call make-kpkg

        All the other third party modules I have seen look for
 /lib/modules/$(uname -r)/build; which implies that the kernel image
 is installed, since it is running, and thus the postint.d scripts
 would already have been called.

        So, we are talking about modules that do not work with
 kernel-package, which have not been integrated into debian, and yet
 need to build against a version of the image package not installed. I
 know of two such modules, nvidia, and vmware, and at least
 vmware-config.pl asks where to find the headers, and people can
 provide that.

        manoj
-- 
"Jesus died for somebody's sins, but not mine."  Patti Smith
Manoj Srivastava   <srivasta@debian.org>  <http://www.debian.org/%7Esrivasta/>
1024D/BF24424C print 4966 F272 D093 B493 410B  924B 21BA DABB BF24 424C



Reply to: