Bug 273341

Summary: Create a -debuginfo even if %{fancy_debuginfo} is 0
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: medium    
Version: rawhideCC: roland
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-31 22:09:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Scheck 2007-08-31 21:41:57 UTC
Description of problem:
Somebody unfortunately forgot, that a -debuginfo kernel package also should 
created, if %{fancy_debuginfo} is just 0.

Version-Release number of selected component (if applicable):
kernel-2.6.23-0.115.rc3.git1

How reproducible:
Everytime for me, if you unset %{fancy_debuginfo} or just try to define fc7 
which causes the same.

Actual results:
kernel-devel package is blown up to ~ 250 MB, because the content of the
non-existing -debuginfo package is simply added to -devel package.

Expected results:
Please apply the following patch (or better):

--- kernel.spec       2007-08-31 22:02:04.000000000 +0200
+++ kernel.spec.rsc   2007-08-31 22:19:05.000000000 +0200
@@ -1734,6 +1735,7 @@
 %endif\
 %defattr(-,root,root)\
 %if !%{fancy_debuginfo}\
+%{expand:%%files %{?2:%{2}-}debuginfo}\
 %if "%{elf_image_install_path}" != ""\
 %{debuginfodir}/%{elf_image_install_path}/*-%{KVERREL}%{?2}.debug\
 %endif\

Comment 1 Roland McGrath 2007-08-31 22:09:12 UTC
Oops.  Like I said at the time, I never actually tested using the new
kernel.spec on %fedora < 8.  I've committed the fix (not quite the patch above,
but close).