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

Update rpmbuild macro environment to make debug builds simpler #150

Open
danielhams opened this issue Nov 23, 2020 · 2 comments
Open

Update rpmbuild macro environment to make debug builds simpler #150

danielhams opened this issue Nov 23, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request WIP Committed

Comments

@danielhams
Copy link
Member

It would nice that we can launch rpmbuild so that debug flags and no strip happens.

e.g.

rpmbuild --define 'sgugdebug 1' -ba something.spec --nocheck

This should

  1. Tweak the default rpmbuild CFLAGS,CXXFLAGS to be -g -Og
  2. Tweak the default rpmbuild LDFLAGS to be -Wl,-z,relro -Wl,-z,now (no RPATH)
  3. Override __strip to be /bin/true

Not clear to me yet where these things should be tweaked or set.

@danielhams danielhams added the enhancement New feature or request label Nov 23, 2020
@danielhams
Copy link
Member Author

danielhams commented Nov 23, 2020

Edit: And bonus thought - it would be nice that any RPMs generated this way have some extension in the filename and/or version to indicate they are debug versions.

i.e. I'd like to be able to run and RPM query to see "ah crap, I've still got package X installed in debug"

Not sure that's possible while remaining compatible with correct versioning.

@danielhams
Copy link
Member Author

First attempt with the changes listed above in 75e0eee in WNA.

We see if this needs further tweaking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request WIP Committed
Projects
None yet
Development

No branches or pull requests

1 participant