Default Behavior of rpmbuild for stripping

Eran Ben Natan eranb at celltick.com
Mon Aug 19 07:49:19 UTC 2013


This is from http://fedoraproject.org/wiki/How_to_create_an_RPM_package, hope this helps:

Normally, if there are binary executables, then debugging symbols are stripped from the normal binary packages and placed into a name-debug subpackage. If this shouldn't happen, you can disable the stripping and creation of this subpackage by putting this at the top of your SPEC:
%global _enable_debug_package 0
%global debug_package %{nil}
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}
To prevent stripping you may also need to do this in the %install section:
export DONT_STRIP=1


From: rpm-list-bounces at lists.rpm.org [mailto:rpm-list-bounces at lists.rpm.org] On Behalf Of Jegathesan Durairaj
Sent: Saturday, July 27, 2013 12:10 AM
To: rpm-list at lists.rpm.org
Subject: Default Behavior of rpmbuild for stripping

Hi,

It seems like rpmbuild would strip out some symbols by default. May I know what symbols it would strip? debug symbol or  elf symbols or all symbols?

I have rpm file in my handle. I do not know how it being built. Is there any way to check whether symbols are present in rpm file?

Thanks
Jegan

This mail was received via Mail-SeCure System.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20130819/8116c980/attachment.html>


More information about the Rpm-list mailing list