Bug 144340

Summary: kernel packages - what should really be under 'build' ?
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3CC: orion, pfrields, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-25 01:13:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Jaegermann 2005-01-06 05:03:57 UTC
Description of problem:

I thought that after 'kernel-sourcecode' package was dropped
a content of /lib/modules/<whatever>/build/ was supposedly sufficient
for building external modules.  I already run into problems described
in bug #140421 but this was a common source code file which was
missing.

This time I tried to recompile zd1201 (ZyDAS) driver,
http://linux-lc100020.sourceforge.net.  This fails as that
source is using ieee802_11.h where a pile of constants is defined.
That header is present in drivers/net/wireless/ of a kernel
source code but not in build/drivers/net/wireless/ for the current
Fedora packages.  It turns out that every header which is not
below of build/include is missing.  I am afraid that kernels
sources are not laid out so neatly.

Yes, I can repackage, but assurances "you really do not need
full kernel sources" are misleading.

Comment 1 Orion Poplawski 2005-05-24 21:11:24 UTC
I'd like to second the inclusion of header files under the drivers/ tree.  I
need to build an external scsi module that uses the drivers/scsi/scsi*.h include
files.  I guess it would grow /lib/modules/<version>/build by 50% or 32MB.  

At the very least, these should be in the kernel-devel packages for FC4.

Comment 2 Dave Jones 2005-05-25 01:13:40 UTC
*nothing* should be using includes from drivers/scsi/scsi*.h any more.
Any driver which does, is broken.

As a rule, any external driver that needs a .h file that lives somewhere other
than include/ is a sign that the file needs to *be* in include/

The ieee80211 code is still evolving, so that too will eventually migrate to
include/


Comment 3 Orion Poplawski 2005-05-25 17:29:20 UTC
Thanks for the kick is the pants.  Managed to change the driver to use the
include/ headers with much difficulty.  This will be a big help in building new
versions in the future.