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

RE: Stopping libraries getting stripped



%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@redhat.com 
> [mailto:rpm-list-bounces@redhat.com] On Behalf Of Huw Lynes
> Sent: Friday, August 06, 2004 2:38 AM
> To: rpm-list@redhat.com
> 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@redhat.com
> https://www.redhat.com/mailman/listinfo/rpm-list
> 



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