Bug 75659

Summary: kernel .src.rpm fails to build; unpackaged files message
Product: [Retired] Red Hat Linux Reporter: Eric Seppanen <eds>
Component: rpmAssignee: Elliot Lee <sopwith>
Status: CLOSED WORKSFORME QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-10-10 19:44:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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):

kernel-2.4.18-14
rpm-4.1-1.06

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