Bug 519669

Summary: debuginfo package is empty
Product: Red Hat Enterprise Linux 4 Reporter: Tomas Smetana <tsmetana>
Component: kshAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.8CC: mfranc, ovasik, rvokal
Target Milestone: rcKeywords: EasyFix
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: ksh-20100621-1.el4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-16 14:08:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tomas Smetana 2009-08-27 11:03:26 UTC
Description of problem:
The RHEL-4 ksh-debuginfo package is empty (and therefore useless).

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

How reproducible:

Steps to Reproduce:
1. rpm -qlp ksh-debuginfo-20050202-0.5E.4.i386.rpm

Actual results:
(contains no files)

Expected results:
Lots of files from /usr/src/debug/...

Additional info:
This is caused by the error in the spec file. It contains the following line in the %install section:

install -c -s -m 755 arch/*/bin/ksh $RPM_BUILD_ROOT/bin/ksh

Note the "-s" install option -- it strips the symbols from the binary... It must be removed.

Comment 1 Tomas Smetana 2009-08-27 11:51:23 UTC
It's even worse than that:  the CCFLAGS are ignored while building the package, so we need to export the CCFLAGS="-O2 -ggdb" first and then call the "package" utility.  Similarly as in RHEL-5 or Fedora...

Comment 9 errata-xmlrpc 2011-02-16 14:08:18 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.