Skip to contentSkip to conversation

RPM Build problem

DISCUSSION alfp 2 participants 2 messages Sep 30, 2003

lore
Share & tools
lore

alfp

author
#0 lore raw

Hi
I'm trying to build RPMs from alsa-driver-0.9.7 (on Mandrake 9), and at the end of the process, rpm reports 'installed but unpackaged' files:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/alsa-driver-0.9.7-root
error: Installed (but unpackaged) file(s) found:
/lib/modules/2.4.21-0.13mdkenterprise/modules.dep /lib/modules/2.4.21-0.13mdkenterprise/modules.generic_string /lib/modules/2.4.21-0.13mdkenterprise/modules.ieee1394map /lib/modules/2.4.21-0.13mdkenterprise/modules.isapnpmap /lib/modules/2.4.21-0.13mdkenterprise/modules.parportmap /lib/modules/2.4.21-0.13mdkenterprise/modules.pcimap /lib/modules/2.4.21-0.13mdkenterprise/modules.pnpbiosmap /lib/modules/2.4.21-0.13mdkenterprise/modules.usbmap

I see that the Makefile runs depmod -a, which creates these files, and the alsa-driver.spec lists
/lib/modules/*/kernel/*
which does not include these files.

The question is, should they be in the RPM or not? My gutfeel is that they are installation-specific and should not be in the RPM. In that case, do I modify the Makefile or somehow tell the specfile to delete the files before packaging?

Thanks
Alf Potgieter

Signature · 9 lines
alfp <[email protected]>




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
#1 lore raw
Quoted 14 lines

I'm trying to build RPMs from alsa-driver-0.9.7 (on Mandrake 9), and at the end of the process, rpm reports 'installed but unpackaged' files:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/alsa-driver-0.9.7-root
error: Installed (but unpackaged) file(s) found:

   /lib/modules/2.4.21-0.13mdkenterprise/modules.dep
   /lib/modules/2.4.21-0.13mdkenterprise/modules.generic_string
   /lib/modules/2.4.21-0.13mdkenterprise/modules.ieee1394map
   /lib/modules/2.4.21-0.13mdkenterprise/modules.isapnpmap
   /lib/modules/2.4.21-0.13mdkenterprise/modules.parportmap
   /lib/modules/2.4.21-0.13mdkenterprise/modules.pcimap
   /lib/modules/2.4.21-0.13mdkenterprise/modules.pnpbiosmap
   /lib/modules/2.4.21-0.13mdkenterprise/modules.usbmap
Quoted 6 lines

I see that the Makefile runs depmod -a, which creates these files, and the alsa-driver.spec lists
/lib/modules/*/kernel/*
which does not include these files.

The question is, should they be in the RPM or not?

They should not be in the rpm. They will be created at boot time when the boot process runs depmod (I think).

Quoted 4 lines

My gutfeel is that
they are installation-specific and should not be in the RPM. In that case, do I modify the Makefile or somehow tell the specfile to delete the files before packaging?

You can just delete them to make rpm happy.
-- Fernando

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf