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).
What is the benefit of disabling the debug package?
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?
fixed for next build.
Commited for 2.6.11-1.1210_FC4 and built with 2.6.11-1.1219_FC4 in Rawhide. Thank you, closing.