Bug 134800 - kernel rpm rebuild fails as user
Summary: kernel rpm rebuild fails as user
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel   
(Show other bugs)
Version: 3
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Dave Jones
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2004-10-06 13:39 UTC by Phil Schaffner
Modified: 2015-01-04 22:10 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-05-22 06:18:39 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 Phil Schaffner 2004-10-06 13:39:39 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)

Description of problem:
Using Mike A. Harris' rpm configuration to build as a user, attempted
rebuild of kernel-2.6.8-1.541 fails on installed but unpackaged debug

[prs@radar0 kernel-2.6.8]$ pwd
[prs@radar0 kernel-2.6.8]$ rpmbuild -ba --target=i686-fc3t2-linux
+ /usr/lib/rpm/brp-strip-comment-note
Processing files: kernel-2.6.8-1.541.prs
Processing files: kernel-smp-2.6.8-1.541.prs
Checking for unpackaged file(s): /usr/lib/rpm/check-files
error: Installed (but unpackaged) file(s) found:

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

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

How reproducible:

Steps to Reproduce:
1. install kernel-2.6.8-1.541.src.rpm
2. attempt to build kernel rpms

Actual Results:  Build failed to complete with errors on debug
components and build-username-specific names.

Expected Results:  Build should complete.  Debug files should either
not be packaged, or should be handled properly.

Additional info:

Commenting out the related lines in the spec file, per recent
discussions on fedora-devel-list, allows the build to complete:

[prs@radar0 kernel-2.6.8]$ diff -u kernel-2.6.spec*
--- kernel-2.6.spec     2004-10-05 15:25:01.000000000 -0400
+++ kernel-2.6.spec~    2004-09-01 15:54:00.000000000 -0400
@@ -670,9 +670,9 @@

     # Start installing the results

-#    mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/boot
+    mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/boot
     mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
-#    install -m 644 System.map
+    install -m 644 System.map
     objdump -t vmlinux | grep ksymtab | cut -f2 | cut -d" " -f2 | cut
-c11- | sort -u  > exported
     echo "_stext" >> exported
     echo "_end" >> exported
@@ -728,7 +728,7 @@
     # save the vmlinux file for kernel debugging into the
kernel-debuginfo rpm
     mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
-#    cp vmlinux $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
+    cp vmlinux $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer

     # gpg sign the modules
 %if %{signmodules}
@@ -1211,4 +1211,4 @@
   which to use is unpleasant
 * Thu Jul 03 2003 Arjan van de Ven <arjanv@redhat.com>
 - 2.6 start
\ No newline at end of file
[prs@radar0 kernel-2.6.8]$

Comment 1 Dave Jones 2005-05-22 06:18:39 UTC
From http://www.tuxfan.homeip.net:8080/hack.html  ...

# To prevent rpm from creating debug rpms, add the following line to ~/.rpmmacros:

%debug_package          %{nil}

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