Bug 50689 - missing .config and/or modversions.h in final package
missing .config and/or modversions.h in final package
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
7.1
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Arjan van de Ven
Brock Organ
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-08-02 04:20 EDT by Stig Hackvan
Modified: 2007-04-18 12:35 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-08-02 06:20:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Stig Hackvan 2001-08-02 04:20:22 EDT
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 04:32:38 EDT
(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 05:29:45 EDT
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 06:20:27 EDT
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 06:25:49 EDT
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.