Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768444 - dev-util/debugedit-4.16.1.2 does not support DWARF 5
Summary: dev-util/debugedit-4.16.1.2 does not support DWARF 5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
: 792441 (view as bug list)
Depends on:
Blocks: gcc-11
  Show dependency tree
 
Reported: 2021-02-03 08:53 UTC by Kobboi
Modified: 2022-05-12 20:46 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
debugedit-0.2.ebuild (debugedit-0.2.ebuild,544 bytes, text/plain)
2021-06-06 21:29 UTC, Greg Turner
Details
debugedit-5.0.ebuild (debugedit-5.0.ebuild,727 bytes, text/plain)
2021-08-27 08:25 UTC, Greg Turner
Details
files/debugedit-5.0-readelf-autoconf.patch (debugedit-5.0-readelf-autoconf.patch,12.99 KB, patch)
2021-08-27 08:26 UTC, Greg Turner
Details | Diff
files/debugedit-5.0-include_dir_entry_zero.patch (debugedit-5.0-include_dir_entry_zero.patch,4.07 KB, patch)
2021-08-27 08:27 UTC, Greg Turner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2021-02-03 08:53:16 UTC
Example:

/usr/bin/debugedit: /var/tmp/portage/dev-lang/python-2.7.18-r6/image/usr/lib64/python2.7/lib-dynload/_struct.so: Unknown debugging section .debug_loclists
/usr/bin/debugedit: /var/tmp/portage/dev-lang/python-2.7.18-r6/image/usr/lib64/python2.7/lib-dynload/_struct.so: Unknown debugging section .debug_rnglists
/usr/bin/debugedit: /var/tmp/portage/dev-lang/python-2.7.18-r6/image/usr/lib64/python2.7/lib-dynload/_struct.so: DWARF version 5 unhandled
/usr/bin/debugedit: /var/tmp/portage/dev-lang/python-2.7.18-r6/image/usr/bin/python2.7: Unknown debugging section .debug_loclists
/usr/bin/debugedit: /var/tmp/portage/dev-lang/python-2.7.18-r6/image/usr/bin/python2.7: Unknown debugging section .debug_rnglists
/usr/bin/debugedit: /var/tmp/portage/dev-lang/python-2.7.18-r6/image/usr/bin/python2.7: DWARF version 5 unhandled


Reproducible: Always
Comment 1 Kobboi 2021-02-03 08:53:49 UTC
There is this:

https://github.com/rpm-software-management/rpm/pull/1332
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-02-05 19:55:23 UTC
I guess we'll have to wait for upstream to merge this.  I can do a backport then if necessary, though I suppose it'd be better to wait for a release.
Comment 3 Matthew Smith gentoo-dev 2021-05-27 09:26:56 UTC
*** Bug 792441 has been marked as a duplicate of this bug. ***
Comment 4 Greg Turner 2021-06-06 21:29:22 UTC
Created attachment 714051 [details]
debugedit-0.2.ebuild

Trivial ebuild for nascent split debugedit project

background:

Getting recent rpm to build (with or without debugedit) seemed infuriatingly difficult and confusing.  I'm sure I was just doing something dumb and it's not so bad, but I tried to figure it out for hours without success.  Scouring the 'net for hints I stumbled across these:

http://lists.rpm.org/pipermail/rpm-ecosystem/2021-February/thread.html#734
https://sourceware.org/bugzilla/show_bug.cgi?id=27351

So the whole stupid problem is actually in the process of being properly solved and we can trivially leverage this.  Attached is a no-phase-function ebuild for this project.

Not sure about the popt dep, is that about appeasing rpm or a real thing?

Anyhow, bazinga!  Enjoy your debug symbols again ... or, quite plausibly, enjoy debugging why they don't actually work despite this ebuild :)
Comment 5 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2021-07-30 12:50:50 UTC
Looks like standalone debugedit 5.0 has been tagged as of a few days ago: https://sourceware.org/git/?p=debugedit.git;a=commit;h=1745c1e80772a6c2cb53db2507ce1f07d49691e3
Comment 6 Greg Turner 2021-08-27 08:25:08 UTC
Created attachment 736210 [details]
debugedit-5.0.ebuild

Update to 5.0 release
Comment 7 Greg Turner 2021-08-27 08:26:26 UTC
Created attachment 736213 [details, diff]
files/debugedit-5.0-readelf-autoconf.patch

patch in bugfix from upstream
Comment 8 Greg Turner 2021-08-27 08:27:50 UTC
Created attachment 736216 [details, diff]
files/debugedit-5.0-include_dir_entry_zero.patch

pull in upstream gcc 11.2.1 compatibility patch
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-02 23:04:48 UTC
ping, did they ever reply to you upstream mgorny?
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-09-03 05:40:46 UTC
(In reply to Sam James from comment #9)
> ping, did they ever reply to you upstream mgorny?

Reply about what?
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-09-03 05:42:46 UTC
Comment on attachment 736210 [details]
debugedit-5.0.ebuild

Please don't attach files unless you're going to attach signed-off git patches.  There's a big warning above the attachment form about that.
Comment 12 Larry the Git Cow gentoo-dev 2021-09-03 06:53:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51b2dbe87f72d578e34b628da47826a6a727127b

commit 51b2dbe87f72d578e34b628da47826a6a727127b
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-09-03 06:43:48 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-09-03 06:53:39 +0000

    dev-util/debugedit: Bump to 5.0
    
    Closes: https://bugs.gentoo.org/768444
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-util/debugedit/Manifest                        |   2 +
 dev-util/debugedit/debugedit-5.0.ebuild            |  42 +++
 .../debugedit/files/debugedit-5.0-readelf.patch    | 330 +++++++++++++++++++++
 .../files/debugedit-5.0-zero-dir-entry.patch       | 130 ++++++++
 4 files changed, 504 insertions(+)
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-09-04 05:14:50 UTC
(In reply to Michał Górny from comment #10)
> (In reply to Sam James from comment #9)
> > ping, did they ever reply to you upstream mgorny?
> 
> Reply about what?

Ah, I meant the versioning problem, but it's resolved ;)