Bug 112735 - debuginfo should be more portable
debuginfo should be more portable
Product: Red Hat Raw Hide
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-12-30 07:10 EST by Frank Cusack
Modified: 2007-04-18 13:00 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-19 14:39:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Add POSIX portability and site customization (6.37 KB, patch)
2003-12-30 07:15 EST, Frank Cusack
no flags Details | Diff
End of my log file when trying to build debugedit on solaris 2.9/sparc64 (2.52 KB, text/plain)
2006-06-16 18:28 EDT, Jonathan Kaczynski
no flags Details

  None (edit)
Description Frank Cusack 2003-12-30 07:10:40 EST
The ability to generate a separate debuginfo package is a strong
feature.  It's currently limited to system with GNU utilities and
the debug shadow dirs are not site-customizable.  It should be more
Comment 1 Frank Cusack 2003-12-30 07:15:10 EST
Created attachment 96730 [details]
Add POSIX portability and site customization

I'm unable to easily test the debugedit.c part of the patch,
and I'm not familiar with popt, but it's simple enough that
you'll be able to massage it into shape if it's bad.

I tested the find-debuginfo.sh change by pre-processing the
debugsources.list file with a s/\000/\n/ edit.

See the patch for some inline comments.
Comment 2 Jeff Johnson 2003-12-30 08:24:33 EST
There's bigger problems than POSIX and customize that
need solve with -debuginfo first.

For example, since elf section headers are being rewritten
on the fly without realloc, -debuginfo generation is possible
pnly because the path /usr/src/debug is 1 character shorter
than /usr/src/redhat. That needs solve before it makes any sense
to make /usr/src/debug configurable for portability imho.

debugedit.c depends not on GNU tools, but specifically on elfutils.
That too needs solve before POSIX makes any sense.

NEEDINFO so I don't have to stare at this bug for months.
Comment 3 Frank Cusack 2003-12-30 09:52:45 EST
Yes, more work is needed, but I started with the easy parts ...

The change is a no-op (except for site cust.), so why not use
it anyway?  It will at least make that part easy.  It's trivial
to add a check on the name length for the debug srcdir since topdir
is available in the environment to find-debuginfo.sh.

Note that the Solaris toolchain writes debug info similarly already
(I'm told), so if you're not using GNU gcc you don't need elfutils
to do the extraction. (but you still need it for debugedit.c)

I will be looking at the elf stuff in short order.  It may be beyond
my capabilities to do quickly but I think it's within reason.
Anyway, I'm happy to leave this bug pending and I'll attach more
patches as I spend more time on it.
Comment 4 Jeff Johnson 2003-12-30 10:19:25 EST
There are bigger problems with elfutils, including licensing.
It's very unclear what is going to happen to -debuginfo.

Comment 5 Jeremy Katz 2005-04-19 14:39:49 EDT
Closing due to inactivity.  If this issue still occurs with current releases,
please reopen and set the release in which you've encountered the problem.
Comment 6 Jonathan Kaczynski 2006-06-16 18:25:05 EDT
Repost due to HW failure:

I'm currently trying to build rpm-4.4.6 on Sun Solaris 2.9 on sparc64. I've
coerced it to (almost) build completely. The exception being: debugedit. When I
put the location of libdwarf.h, /opt/SUNWspro/prod/include/libdwarf/dwarf.h,
into CPPFLAGS and the location of libdwarf.so,
/opt/SUNWspro/prod/lib/libdwarf.so, into LDFLAGS, it tries to build and fails. I
made an attachment that contains the end of my log file from attempting to build
rpm. Is it possible, yet, to have -debuginfo packages on non-Linux systems?
Comment 7 Jonathan Kaczynski 2006-06-16 18:28:25 EDT
Created attachment 131088 [details]
End of my log file when trying to build debugedit on solaris 2.9/sparc64

Note You need to log in before you can comment on or make changes to this bug.