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

no debug symbols in RPM binaries? #92

Closed
ongardie opened this Issue Feb 11, 2015 · 4 comments

Comments

Projects
None yet
1 participant
@ongardie
Copy link
Member

ongardie commented Feb 11, 2015

@nhardt says:

i think you can tell rpm not to strip, which might be useful in the short term
@ongardie

This comment has been minimized.

Copy link
Member

ongardie commented Feb 11, 2015

@nhardt says:

looks like maybe these to things need to be in the spec file
%define debug_package %{nil}
%define __strip /bin/true

@ongardie ongardie added the easy label Feb 11, 2015

@ongardie ongardie self-assigned this Feb 11, 2015

@ongardie

This comment has been minimized.

Copy link
Member

ongardie commented Feb 11, 2015

good resources:
http://livecipher.blogspot.com/2012/06/disable-binary-stripping-in-rpmbuild.html
http://www.redhat.com/archives/rpm-list/2001-November/msg00257.html

Setting __strip to /bin/true makes brp-strip-* noops on my system, but judging by the livecipher post, that wouldn't be the case for every system.

@ongardie ongardie closed this in 5e67268 Feb 11, 2015

@ongardie ongardie reopened this Feb 27, 2015

@ongardie

This comment has been minimized.

Copy link
Member

ongardie commented Feb 27, 2015

Those symbols don't seem to be in there still...

@ongardie

This comment has been minimized.

Copy link
Member

ongardie commented Feb 27, 2015

On my laptop the symbols are there. The binary in the source RPM on RHEL6 has debug symbols, and the binary in the binary RPM does not.

On my laptop (01aef5f):

$ sha1sum srcrpm/logcabin-0.0.1/build/LogCabin binrpm/usr/bin/logcabind 
6a9394f9c1204dcaf4e6378dd686a6c2050f146f  srcrpm/logcabin-0.0.1/build/LogCabin
6a9394f9c1204dcaf4e6378dd686a6c2050f146f  binrpm/usr/bin/logcabind
$ ls -sh1 srcrpm/logcabin-0.0.1/build/LogCabin binrpm/usr/bin/logcabind 
13M binrpm/usr/bin/logcabind
13M srcrpm/logcabin-0.0.1/build/LogCabin

On RHEL6 (5e67268):

$ sha1sum srcrpm/logcabin-0.0.1/build/LogCabin binrpm/usr/bin/logcabind 
267cfc559f80a31340a6b90b02aaf166b46af03c  srcrpm/logcabin-0.0.1/build/LogCabin
2481dfb60b6509201f40bbef96ae14e8d3702c5c  binrpm/usr/bin/logcabind
$ ls -sh1 srcrpm/logcabin-0.0.1/build/LogCabin binrpm/usr/bin/logcabind 
1.5M binrpm/usr/bin/logcabind
 11M srcrpm/logcabin-0.0.1/build/LogCabin

@ongardie ongardie closed this in b93267d Feb 27, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment