Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find-debuginfo.sh: decompress DWARF compressed ELF sections #473

Merged

Conversation

ignatenkobrain
Copy link
Contributor

debugedit and dwz do not support DWARF compressed ELF sections, let's
just decompress those before extracting debuginfo.

Tested-by: Igor Gnatenko i.gnatenko.brain@gmail.com

debugedit and dwz do not support DWARF compressed ELF sections, let's
just decompress those before extracting debuginfo.

Tested-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
@ffesti ffesti merged commit 1c3bf3d into rpm-software-management:master Jul 27, 2018
@pmatilai
Copy link
Member

This is causing test-suite failures on the following tests:
142: rpmbuild implicit suid binary FAILED (rpmbuild.at:700)
163: rpmbuild buildid hardlink alldebug FAILED (rpmbuildid.at:699)
165: rpmbuild buildid hardlink separate FAILED (rpmbuildid.at:829)
167: rpmbuild buildid hardlink compat FAILED (rpmbuildid.at:968)

@ignatenkobrain
Copy link
Contributor Author

@pmatilai update elfutils.

@ignatenkobrain
Copy link
Contributor Author

@pmatilai
Copy link
Member

Okay that helps, but requiring a bleeding-edge elfutils for normal operation is not that great...

@ignatenkobrain
Copy link
Contributor Author

@pmatilai that's kinda 2-sided problem. On one side if you have your binary with compressed ELF sections, then find-debuginfo would not find anything and just fail your build... On the other side, just tests fail if you have old elfutils.

@ignatenkobrain ignatenkobrain deleted the compressed-debuginfo branch July 31, 2018 09:48
@rpm-maint
Copy link

rpm-maint commented Jul 31, 2018 via email

@pmatilai
Copy link
Member

pmatilai commented Aug 1, 2018

Yeah, breaking common and previously cases to fix an esoteric one is not a good deal.

We'll need something else here that doesn't wreak havoc with older, widely used elfutils versions.

@pmatilai
Copy link
Member

pmatilai commented Aug 7, 2018

This is also breaking our CI at the moment, which is no good either. Can we easily detect compressed sections and only call eu-elfcompress in that case? Otherwise we'll probably need to revert this for the time being at least.

Requiring an explicit %attr for suid/sgid might be a perfectly reasonable thing to do overall but a random elfutils bug can't really be the driver for such a change.

@pmatilai
Copy link
Member

pmatilai commented Sep 6, 2018

Apparently nothing is going to happen if I just let it be (not that it's unexpected in a case like this). Reverted as of commit fb8eb1c:

This is breaking suid bit handling in packaging unless an unreleased
bleeding edge version of elfutils is used. In other words it's not
an acceptable requirement and wont be for a long time. This needs
to be fixed in some other way.

@eclipseo
Copy link

@pmatilai With latest elfutils, is this commit still posing a problem?
It lives as a patch in Fedora's RPM SPEC, but is not present in EPEL8 which will cause issues with Golang packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants