Red Hat Bugzilla – Bug 65325
Rpm-build doesn't strip binaries any more
Last modified: 2008-05-01 11:38:02 EDT
Description of Problem:
Starting from rpm-build 4.0.4-7x update for RH 7.2 and verified on default RH 7.3 package too, the rpm-build process doesn't strip binaries when recompiling src.rpm packages with --rebuild nor with -ba (verified running as user only, with proper topdir etc. working)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Pick any src.rpm package
2. Issue a simple rpm --rebuild
3. Try to run rpmlint (or check binaries with file command after installing)
binaries stripped by default
rpm-build from 4.0.3 (as standard on unpatched RH 7.2) works fine
This is a change between Red Hat 7.3 and Red Hat 7.3.
Symbols are no longer stripped by rpm as shipped by Red Hat.
To fix this situation go and change file /usr/lib/rpm/brp-strip.
In the line "strip -g $f || :" cut option "-g".