Bug 75659 - kernel .src.rpm fails to build; unpackaged files message
kernel .src.rpm fails to build; unpackaged files message
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Elliot Lee
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-10-10 15:28 EDT by Eric Seppanen
Modified: 2007-04-18 12:47 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-10-10 15:44:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Eric Seppanen 2002-10-10 15:28:54 EDT
Description of Problem:

Trying to recompile my own kernel, I found that the build would fail with a message:

error: Installed (but unpackaged) file(s) found:
 (and then a list of hundreds of files, many for other architectures)

I figured I had broken something, but the shipping source rpm also fails in the
same way.  I understand that this (checking for unpackaged files) is a new RPM
feature, and I understand the reason behind it, but it seems incorrect to me
that the package as shipped by Red Hat does not build on the RPM setup as
shipped by Red Hat.

Am I expected to disable RPM's unpackaged-files check?  Why are you bothering to
ship with this check turned on, then, if users will have to turn it off to
actually build anything?

Is there a way to disable this check in the SPEC file?

Version-Release number of selected component (if applicable):


How Reproducible:

rpm -i <kernel...src.rpm>
rpmbuild -ba <spec-file>
Comment 1 Jeff Johnson 2002-10-10 15:36:39 EDT
Either add to kernel.spec
    %_unpackaged_files_terminate_build      0
or (recommended) clean up $RPM_BUILD_ROOT in %install
Comment 2 Elliot Lee 2002-10-10 17:20:52 EDT
You need to install the redhat-rpm-config package to replicate the build environment we 
use (which in this case happens to be different from the generic rpm defaults).
Comment 3 Eric Seppanen 2002-10-10 18:03:22 EDT
I fail to see the point in shipping rpm with less-than-useful settings, since
redhat-rpm-config is not installed by default.  I would bet I'm not the last
person who'll be caught off guard by this.  But OK, my stuff's working now, so
I'm happy.

Note that the correct syntax (thanks jbj) to turn this off in the spec file is:

%define _unpackaged_files_terminate_build 0

Note You need to log in before you can comment on or make changes to this bug.