Bug 152268 - Rebuilding of kernel fails, if %_enable_debug_packages isn't set
Summary: Rebuilding of kernel fails, if %_enable_debug_packages isn't set
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-03-27 01:04 UTC by Robert Scheck
Modified: 2015-01-04 22:18 UTC (History)
2 users (show)

Fixed In Version: 2.6.11-1.1219_FC4
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-03-31 15:35:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Robert Scheck 2005-03-27 01:04:51 UTC
Description of problem:
Rebuilding of kernel fails, if %_enable_debug_packages of rpm isn't set, 
because vmlinux isn't packaged to a -debuginfo rpm package.

Version-Release number of selected component (if applicable):
kernel-2.6.11-1.1202_FC4

How reproducible:
Everytime: Comment out %_enable_debug_packages in /usr/lib/rpm/redhat/macros 
and try rebuilding of the kernel package.

Actual results:
--- kernel-2.6.spec       2005-03-27 03:00:08.000000000 +0200
+++ kernel-2.6.spec.rsc   2005-03-27 01:59:50.000000000 +0100
@@ -791,7 +791,9 @@

     # Start installing the results

+    %if "%{_enable_debug_packages}" == "1"
     mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/boot
+    %endif
     mkdir -p $RPM_BUILD_ROOT/%{image_install_path}
     install -m 644 .config $RPM_BUILD_ROOT/boot/config-$KernelVer
     install -m 644 System.map $RPM_BUILD_ROOT/boot/System.map-$KernelVer
@@ -842,8 +844,10 @@
     #
     # save the vmlinux file for kernel debugging into the kernel-debuginfo rpm
     #
+    %if "%{_enable_debug_packages}" == "1"
     mkdir -p $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
     cp vmlinux $RPM_BUILD_ROOT/usr/lib/debug/lib/modules/$KernelVer
+    %endif

     # gpg sign the modules
 %if %{signmodules}

Expected results:
Apply of the suggested patch or better (the idea is taken from glibc.spec).

Comment 1 Warren Togami 2005-03-27 21:29:31 UTC
What is the benefit of disabling the debug package?

Comment 2 Robert Scheck 2005-03-28 21:15:42 UTC
In the case of Red Hat or the Fedora Team: None.
In the case of other people, which don't want to have or don't need the debuginfo
package, the suggested change makes sense. Let me say, it's only a small 
advantage for rebuilding the kernel package in another (possible and not so far 
away) way. On the other hand you could ask the same to glibc ;-)

Last but not least, I think, the 4 additional lines should hurt nobody in any
case, don't it?

Comment 3 Dave Jones 2005-03-28 21:27:29 UTC
fixed for next build.


Comment 4 Robert Scheck 2005-03-31 15:35:59 UTC
Commited for 2.6.11-1.1210_FC4 and built with 2.6.11-1.1219_FC4 in Rawhide. 
Thank you, closing.


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