Red Hat Bugzilla – Bug 139892
Building kernel also without "_enable_debug_packages"?
Last modified: 2015-01-04 17:12:31 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041001
Description of problem:
The standard Fedora kernel does not build, when the
"_enable_debug_packages" has been disabled manually in
May I suggest to use the attached patch to kernel-2.6.spec
in future kernel versions?
(The patch works with the current 2.6.9-1.667 - kernel.)
It would allow also those users to build a kernel, which
have disabled the building of the "debuginfo"-subpackages.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Comment "%_enable_debug_packages 1" in "/usr/lib/rpm/redhat/macros"
2.rpmbuild --rebuild kernel-2.6.9-1.667.src.rpm
Actual Results: Error message of unpackaged files (all in /usr/lib/debug)
Created attachment 106969 [details]
Patch to enable kernel-built without "debuginfo" subpackage
This problem (or one very like it) also exists in RHEL. I've not changed the rpm
files, instead I do it "properly" with this:
%_builddir %(mkdir /tmp/BUILD 2>/dev/null;echo /tmp/BUILD)
%global __debug_package 0
It's actually this line that produces the failure:
An update has been released for Fedora Core 3 (kernel-2.6.12-1.1372_FC3) which
may contain a fix for your problem. Please update to this new kernel, and
report whether or not it fixes your problem.
If you have updated to Fedora Core 4 since this bug was opened, and the problem
still occurs with the latest updates for that release, please change the version
field of this bug to 'fc4'.
I do not want to judge what the proper way is, but I personally prefer Dave's
From my point of view the issue is solved.