Bug 161722

Summary: debugedit fails to find any source code if Java package compiled with -O0 -g
Product: [Fedora] Fedora Reporter: Robin Green <greenrd>
Component: rpmAssignee: Paul Nasrat <nobody+pnasrat>
Status: CLOSED UPSTREAM QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: n3npq
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-07-13 09:23:55 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:
Attachments:
Description Flags
Source RPM demonstrating bug
none
Fix none

Description Robin Green 2005-06-26 16:08:08 UTC
Description of problem:
Strange, but true. /usr/lib/rpm/debugedit fails to find any source code if a
Java package is compiled with -O0 -g.

Version-Release number of selected component (if applicable):
rpm-build-4.4.1-21

How reproducible:
Always

Steps to Reproduce:
1. Download attached jhello.src.rpm
2. rpmbuild --rebuild jhello.src.rpm
3. Run rpm -qlp on the generated -debuginfo rpm
  
Actual results:
/usr/lib/debug/usr/lib/jhello/libjhello.jar.so.debug

Expected results:
/usr/lib/debug/usr/lib/jhello/libjhello.jar.so.debug
/usr/src/debug/jhello-1.0.0
/usr/src/debug/jhello-1.0.0/HelloWorld.java

Comment 1 Robin Green 2005-06-26 16:08:08 UTC
Created attachment 115987 [details]
Source RPM demonstrating bug

Comment 2 Robin Green 2005-06-26 23:21:13 UTC
Created attachment 115997 [details]
Fix

Comment 3 Jeff Johnson 2005-07-13 09:23:55 UTC
Patch added to CVS, should be in rpm-4.4.2-0.8 when built. Thanks for the patch.