4

Trying to install CUPS 1.7.1 on Centos 6.5 via RPM, I use:

# rpmbuild -ta cups-1.7.1-source.tar.bz2 --without dbus --without libusb1

but stops with below error:

Checking for unpackaged file(s): 

/usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/cups-1.7.1-1.x86_64 
error: Installed (but unpackaged) file(s) found: /usr/share/cups/usb/org.cups.usb-quirks

RPM build errors: 
Installed (but unpackaged) file(s) found: 

/usr/share/cups/usb/org.cups.usb-quirks
14

This file was installed into the %{buildroot} directory in the %install phase, but was not referenced in the %files. rpmbuild does not allow files in %{buildroot} that are not packed in the %files. So either add it in the %files if the file is needed, or do not install it the %{buildroot}

0

I had the same problem but it turns out that the postinstall file that i was creating needed an extra newline at the end because when the spec was being created, the %file was butt ended into my %post entry.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.