Bug 75659 - kernel .src.rpm fails to build; unpackaged files message
Summary: kernel .src.rpm fails to build; unpackaged files message
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
(Show other bugs)
Version: 8.0
Hardware: i386 Linux
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2002-10-10 19:28 UTC by Eric Seppanen
Modified: 2007-04-18 16:47 UTC (History)
0 users

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

Attachments (Terms of Use)

Description Eric Seppanen 2002-10-10 19:28:54 UTC
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 19:36:39 UTC
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 21:20:52 UTC
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 22:03:22 UTC
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.