Bug 50689 - missing .config and/or modversions.h in final package
Summary: missing .config and/or modversions.h in final package
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 7.1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-08-02 08:20 UTC by Stig Hackvan
Modified: 2007-04-18 16:35 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2001-08-02 10:20:33 UTC
Embargoed:


Attachments (Terms of Use)

Description Stig Hackvan 2001-08-02 08:20:22 UTC
Description of Problem:

it would be really nice to have a copy of /usr/src/linux/.config and
...include/modversions.h in the final kernel package in order to rebuild
kernel modules without having to rebuild the whole kernel.

obviously they should be in /boot alongside the kernels so that multiple
versions of kernel don't clash.

Comment 1 Stig Hackvan 2001-08-02 08:32:38 UTC
(kernel-headers puts  #error directive in modversions.h and i
think that kernel-source should pretty much do the
same...directing hackers to get the right  modversions output
from /boot/vmlinuz-NNN-modversions.h)

Comment 2 Arjan van de Ven 2001-08-02 09:29:45 UTC
Well the "official" solution (the one Linus recommends) and that we implement is
the following:
ALWAYS build external modules with the include path pointing to:

-I/lib/modules/`uname -r`/build/include

and that just works. Our modversions.h in the kernel-source is ready to work
for any kernel you boot, and NO module should ever use .config but config.h,
which is also correct for ANY kernel you boot.

This just works. I've done it for dozens of modules. Even VMWare works this way.
All other distros work this way......

Comment 3 Stig Hackvan 2001-08-02 10:20:27 UTC
ah.  thanks.  that bit of lore escaped me...was not apparent from the instructions at 
http://scyld.com/expert/modules.html and wasn't easy to spot from the contents of 
netdrivers-2.1.7-1.src.rpm ...  also, the makefile at http://aureal.sourceforge.net is 
broken and there's version skew between current sound drivers and what's available 
there.

*sigh*

Comment 4 Arjan van de Ven 2001-08-02 10:25:49 UTC
Can't convince them all at once ;)
Seriously this "official" Linus verdict is over a year old and even Red Hat
Linux 7.0 conformed to it...

Oh well. I'm closing this as "NOTABUG" as it's actually "NOTOURBUG" but that
doesn't exist. If you object to that, or have more problems with this issue,
feel free to reopen the bug.


Note You need to log in before you can comment on or make changes to this bug.