Description of problem:
You can wind up with debuginfo rpms where the .debug data uses file names that
don't work to find the source files in the rpm. For example, the directory
table in the DWARF info might say /usr/src/debug/foo-1.2.3/build/../src
when in fact /usr/src/debug/foo-1.2.3/build does not exist at all though
/usr/src/debug/foo-1.2.3/src does exist.
elfutils-0.112-1 (in dist-fc5) is an example of a package built with this
problem (elfutils-debuginfo-0.112-1), though later elfutils builds already in
dist-fc5 don't demonstrate this issue.
The cpio that find-debuginfo.sh does to copy files into /usr/src/debug
effectively canonicalizes the directory names, since a directory foo
is not created if it only appears in foo/../bar file names. So, debugedit needs
to canonicalize the directory names in the DWARF information as well, to make
sure that they can be found in /usr/src/debug.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Created attachment 117568 [details]
patch fixing debugedit to canonicalize directory names in directory tables
Added to rpm-4_4 cvs, should be in rpm-4.4.3-0.4 when built.