Bug 144340 - kernel packages - what should really be under 'build' ?
Summary: kernel packages - what should really be under 'build' ?
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-01-06 05:03 UTC by Michal Jaegermann
Modified: 2015-01-04 22:14 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-05-25 01:13:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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