[BUG?] DKMS spec file caching install path's

Kirsher, Jeffrey T jeffrey.t.kirsher at intel.com
Wed May 3 18:13:59 CDT 2006


I have run into an issue where if you try to create a DKMS rpm which
contains pre-built modules for Red Hat and for SLES.  The issue is that
the DKMS spec file cache's the installation path's from the last system
used to create the rpm.

 

Example:

I need to create a DKMS rpm which contains modules for the following
distro's RHEL3, RHEL4, SLES9 and SLES10 for x86 and x86_64 arch's.  If I
create the modules in the following order:

RHEL3

RHEL4

SLES9

SLES10

I have problems installing the DKMS rpm on Red Hat systems, because the
%{_docdir} is cached to /usr/share/doc/packages/...

 

If create the modules in the following order:

SLES9

SLES10

RHEL3

RHEL4

Then I have problems installing on a SLES system, because the ${_docdir}
is cached to /usr/share/doc/...

 

I have thought to try and hard code the path's in the DKMS spec file to
try and resolve this issue, but have not made any attempt as of yet.
This appears to be an issue with RPM builds in general and not
necessarily a DKMS issue, but since DKMS allows for multiple arch's and
distro's in a single RPM are there any suggestions on how to go about
fixing this issue?

 

cheers,

Jeff Kirsher

Network Software Developer

Intel Corporation

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.us.dell.com/pipermail/dkms-devel/attachments/20060503/3626a25f/attachment.htm 


More information about the DKMS-devel mailing list