rpm: remove unnecessary brp-strip scripts#5693
Merged
Merged
Conversation
anphel31
commented
Jun 15, 2023
anphel31
commented
Jun 15, 2023
reubeno
approved these changes
Jun 19, 2023
reubeno
left a comment
Member
There was a problem hiding this comment.
Great to see us making these changes! I'm assuming we'll want to spot-check a few packages to make sure that the resulting RPMs's binaries still match what we'd expect to see (i.e., appropriately stripped of debug info, etc.)?
oliviacrain
reviewed
Jun 19, 2023
Member
Author
Yes, I've spot checked some of the built packages. Will update the test section of the description with details. |
oliviacrain
approved these changes
Jun 23, 2023
PawelWMS
approved these changes
Jun 26, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./SPECS/LICENSES-AND-NOTICES/data/licenses.json,./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md,./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
What does the PR accomplish, why was it needed?
Remove redundant brp-strip operations from our default
__os_install_postdefinition.Get rid of custom scripts bundled in our rpm-build package:
brp-strip-debug-symbols&brp-strip-unneededCall the upstream rpm versions of each brp-strip* script, while still keeping some Mariner customizations related to ccache and embedded ELF metadata.
Change Log
brp-strip-debug-symbols. This does the exact same thing asbrp-strip, but in a less efficient way - it searches for all ELF binaries and sequentially removes debug symbols.brp-stripremoves the debug symbols from multiple files in parallel.brp-strip-unneeded. This calls "strip --strip-unneeded -g" on every ELF binary. The upstream rpm macro does not call --strip-unneeded, and thebrp-strip-comment-notescript appears to strip the same content as this script.brp-strip-debug-symbols,brp-strip-unneededin__os_install_postDoes this affect the toolchain?
YES
Test Methodology
objdump -x binary). I did not detect any differences in these packages. The overall size of the debuginfo packages with and without the changes is also consistent.