LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   error creating RPM [make binrpm-pkg] (https://www.linuxquestions.org/questions/linux-kernel-70/error-creating-rpm-%5Bmake-binrpm-pkg%5D-680556/)

scmbg 11-01-2008 09:33 PM

error creating kernel RPM [make binrpm-pkg]
 
After customize, compile and install my kernel, i want to create a rpm.

But this is the error showed when i execute make binrpm-pkg

error: Installed (but unpackaged) file(s) found:

there is the output:
Code:

# here comes the last modules installed.
  INSTALL /var/tmp/kernel-2.6.27.4-chinazo.15-root/lib/firmware/keyspan_pda/keyspan_pda.fw
  INSTALL /var/tmp/kernel-2.6.27.4-chinazo.15-root/lib/firmware/keyspan_pda/xircom_pgs.fw
  DEPMOD  2.6.27.4-chinazo.15
+ cp arch/x86/boot/bzImage /var/tmp/kernel-2.6.27.4-chinazo.15-root/boot/vmlinuz-2.6.27.4-chinazo.15
+ cp System.map /var/tmp/kernel-2.6.27.4-chinazo.15-root/boot/System.map-2.6.27.4-chinazo.15
+ cp .config /var/tmp/kernel-2.6.27.4-chinazo.15-root/boot/config-2.6.27.4-chinazo.15
+ /usr/lib/rpm/brp-compress
Processing files: kernel-2.6.27.4-chinazo.15
Provides: kernel-2.6.27.4-chinazo.15
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/kernel-2.6.27.4-chinazo.15-root
error: Installed (but unpackaged) file(s) found:
  /lib/firmware/atmsar11.fw
  /lib/firmware/dabusb/bitstream.bin
  /lib/firmware/dabusb/firmware.fw
  /lib/firmware/edgeport/boot.fw
  /lib/firmware/edgeport/boot2.fw
  /lib/firmware/edgeport/down.fw
  /lib/firmware/edgeport/down2.fw
  /lib/firmware/edgeport/down3.bin
  /lib/firmware/emi26/bitstream.fw
  /lib/firmware/emi26/firmware.fw
  /lib/firmware/emi26/loader.fw
  /lib/firmware/emi62/bitstream.fw
  /lib/firmware/emi62/loader.fw
  /lib/firmware/emi62/midi.fw
  /lib/firmware/emi62/spdif.fw
  /lib/firmware/kaweth/new_code.bin
  /lib/firmware/kaweth/new_code_fix.bin
  /lib/firmware/kaweth/trigger_code.bin
  /lib/firmware/kaweth/trigger_code_fix.bin
  /lib/firmware/keyspan_pda/keyspan_pda.fw
  /lib/firmware/keyspan_pda/xircom_pgs.fw
  /lib/firmware/korg/k1212.dsp
  /lib/firmware/ti_3410.fw
  /lib/firmware/ti_5052.fw
  /lib/firmware/whiteheat.fw
  /lib/firmware/whiteheat_loader.fw


RPM build errors:
    Installed (but unpackaged) file(s) found:
  /lib/firmware/atmsar11.fw
  /lib/firmware/dabusb/bitstream.bin
  /lib/firmware/dabusb/firmware.fw
  /lib/firmware/edgeport/boot.fw
  /lib/firmware/edgeport/boot2.fw
  /lib/firmware/edgeport/down.fw
  /lib/firmware/edgeport/down2.fw
  /lib/firmware/edgeport/down3.bin
  /lib/firmware/emi26/bitstream.fw
  /lib/firmware/emi26/firmware.fw
  /lib/firmware/emi26/loader.fw
  /lib/firmware/emi62/bitstream.fw
  /lib/firmware/emi62/loader.fw
  /lib/firmware/emi62/midi.fw
  /lib/firmware/emi62/spdif.fw
  /lib/firmware/kaweth/new_code.bin
  /lib/firmware/kaweth/new_code_fix.bin
  /lib/firmware/kaweth/trigger_code.bin
  /lib/firmware/kaweth/trigger_code_fix.bin
  /lib/firmware/keyspan_pda/keyspan_pda.fw
  /lib/firmware/keyspan_pda/xircom_pgs.fw
  /lib/firmware/korg/k1212.dsp
  /lib/firmware/ti_3410.fw
  /lib/firmware/ti_5052.fw
  /lib/firmware/whiteheat.fw
  /lib/firmware/whiteheat_loader.fw
make[1]: *** [binrpm-pkg] Error 1
make: *** [binrpm-pkg] Error 2


unSpawn 11-02-2008 05:42 AM

Your $BUILDROOT is /var/tmp/kernel-2.6.27.4-chinazo.15-root. That is where the .spec file should look to find files included in the package, however something got installed in /lib/firmware, or the .spec file contains a reference to /lib/firmware instead of %{BUILDROOT}/lib/firmware, or you modified the .spec file to include files in /lib/firmware? If this is all doesn't mean anything to you maybe post the .spec file contents to some pastebin or upload to some free hoster and post the URI here?

scmbg 11-02-2008 08:32 PM

Well the spec file is generated automatically by the makefile.

Now works, i put /lib/firmware just below the %files tag.

I think this problem come from the makefile that take care to create the rpm.

Thanks unSpawn


All times are GMT -5. The time now is 05:30 AM.