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): 4.0.4-7x How Reproducible: Every time. 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) Actual Results: unstripped-binary-or-object Expected Results: binaries stripped by default Additional Information: 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".