Bug 75659 - kernel .src.rpm fails to build; unpackaged files message
Summary: kernel .src.rpm fails to build; unpackaged files message
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 8.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
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:
Clone Of:
Environment:
Last Closed: 2002-10-10 19:44:17 UTC
Embargoed:


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

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



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