Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

rpm generation failed - misplaced depmod

Help
gibus_92
2006-08-12
2012-10-06
  • gibus_92
    gibus_92
    2006-08-12

    I use to build ndiswrapper rpm on SUSE 10.0 distribution with 2.6.13-15.11 kernel version

    After I have patched ndiswrapper.spec to go further, I invoke again the command " make rpm " and I get another error message, at the end of rpm generation :

    ...
    Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/ndiswrapper-1.23-1-root-root
    error: Installed (but unpackaged) file(s) found:
    /lib/modules/2.6.13-15.11-default/modules.alias
    /lib/modules/2.6.13-15.11-default/modules.ccwmap
    /lib/modules/2.6.13-15.11-default/modules.dep
    /lib/modules/2.6.13-15.11-default/modules.ieee1394map
    /lib/modules/2.6.13-15.11-default/modules.inputmap
    /lib/modules/2.6.13-15.11-default/modules.isapnpmap
    /lib/modules/2.6.13-15.11-default/modules.ofmap
    /lib/modules/2.6.13-15.11-default/modules.pcimap
    /lib/modules/2.6.13-15.11-default/modules.seriomap
    /lib/modules/2.6.13-15.11-default/modules.symbols
    /lib/modules/2.6.13-15.11-default/modules.usbmap

    RPM build errors:
    Installed (but unpackaged) file(s) found:
    /lib/modules/2.6.13-15.11-default/modules.alias
    /lib/modules/2.6.13-15.11-default/modules.ccwmap
    /lib/modules/2.6.13-15.11-default/modules.dep
    /lib/modules/2.6.13-15.11-default/modules.ieee1394map
    /lib/modules/2.6.13-15.11-default/modules.inputmap
    /lib/modules/2.6.13-15.11-default/modules.isapnpmap
    /lib/modules/2.6.13-15.11-default/modules.ofmap
    /lib/modules/2.6.13-15.11-default/modules.pcimap
    /lib/modules/2.6.13-15.11-default/modules.seriomap
    /lib/modules/2.6.13-15.11-default/modules.symbols
    /lib/modules/2.6.13-15.11-default/modules.usbmap
    make: *** [rpm] Error 1

    These files have nothing to do in a rpm package. This is the result of a misplaced /sbin/depmod command in driver/Makefile around line number #277 :

    ifndef DIST_DESTDIR
    -/sbin/depmod -a $(KVERS) -b $(DESTDIR)
    endif

    the variable DIST_DESTDIR is not defined either elsewhere. Maybe for a futur use ?

    I have chosen to put directly in comment the 3 lines in driver/Makefile... this is the shortest way for me, since I do not understand well the logic that relies upon DIST_DESTDIR and DESDIR
    ...

     
    • gibus_92
      gibus_92
      2006-08-14

      The command '/sbin/depmod -a -b /' should only been run at install time, not during package generation, otherwise you get kernel map files in the list. As there is always a check for generated files against listed files in spec, this check fails.

      If I remember, ndiswrapper-22 had no problem from this point.

      In addition, I could see in your makefile that you override DESTDIR with DIST_DESTDIR in case of DIST_DESTDIR is already defined (line #21).
      Then, you should have DIST_DESTDIR replaced by DESTDIR (line #277)

       
    • DIST_DESTDIR is meant for packagers to temporarily install files elsewhere, e.g., under /tmp, which are later installed wherever they need to be. This shouldn't change how 'make rpm' was working before. One should be able to run '/sbin/depmod -a -b /' without any issues.