Bug 177196 - __os_install_post doesn't strip binaries when debug package is generated
Summary: __os_install_post doesn't strip binaries when debug package is generated
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: redhat-rpm-config
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jon Masters
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-07 06:26 UTC by Stefan Becker
Modified: 2007-11-30 22:11 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-01-24 07:59:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stefan Becker 2006-01-07 06:26:24 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Description of problem:
In /usr/lib/rpm/redhat/macros:

%__os_install_post    \
...
    %{!?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \
...

__debug_package is defined when debug package is generated. In that case the binaries are *NOT* stripped.

Version-Release number of selected component (if applicable):
redhat-rpm-config-8.0.34-1.1

How reproducible:
Always

Steps to Reproduce:
1. Run rpm-build on a package with debuginfo generation selected (FC4 default)
2.
3.
  

Actual Results:  debuginfo package is generated. Binaries are not stripped

Expected Results:  debuginfo package is generated and binaries should be stripped.

Additional info:

The logic is reversed. Remove the "!", i.e.

%__os_install_post    \
...
    %{?__debug_package:/usr/lib/rpm/redhat/brp-strip %{__strip}} \
...

Comment 1 Christian Iseli 2007-01-20 00:35:53 UTC
This report targets the FC3 or FC4 products, which have now been EOL'd.

Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?

Thanks.

Comment 2 Stefan Becker 2007-01-24 07:59:44 UTC
Can't reproduce the problem with FC6 anymore:

$ rpm -qa "*rpm*"
rpm-build-4.4.2-32
rpm-libs-4.4.2-32
rpm-4.4.2-32
rpm-python-4.4.2-32
redhat-rpm-config-8.0.45-6



Note You need to log in before you can comment on or make changes to this bug.