RE: Stopping libraries getting stripped

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



%define __os_install_post %{nil}

This will disable all stripping for recent redhat rpm. Here's the macro
section it disables:

%__os_install_post    \
    /usr/lib/rpm/redhat/brp-compress \
    /usr/lib/rpm/redhat/brp-strip %{__strip} \
    /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} \
    /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} \
%{nil}

I would suggest putting this definition in your ~/.rpmmacros instead of
changing the redhat files...

-Aaron

> -----Original Message-----
> From: rpm-list-bounces@xxxxxxxxxx 
> [mailto:rpm-list-bounces@xxxxxxxxxx] On Behalf Of Huw Lynes
> Sent: Friday, August 06, 2004 2:38 AM
> To: rpm-list@xxxxxxxxxx
> Subject: Stopping libraries getting stripped
> 
> using rpm 4.2.1 on fedora core 1
> 
> how can I stop rpmbuild from building debug packages and 
> stripping all my binaries?
> 
> changing /usr/lib/rpm/redhat/macros
> %_enable_debug_packages 1 
> 
> to
> 
> %_enable_debug_packages 0
> 
> doesn't seem to do the job. Most os the time this isn't a 
> problem but I've got a couple of packages where I really need 
> to leave the symbols in place.
> 
> Thanks,
> Huw
> 
> 
> -- 
> | Huw Lynes               | The Moving Picture Company  |
> | System Administrator    | 127 Wardour Street          |
> |.........................| London, W1F 0NL             | 
> 
> 
> 
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/rpm-list
> 


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux