Re: Getting rpmbuild to strip all files.

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

 



On 03/24/2010 03:36 AM, devzero2000 wrote:
On Tue, Mar 23, 2010 at 9:33 PM, Ben Greear <greearb@xxxxxxxxxxxxxxx
<mailto:greearb@xxxxxxxxxxxxxxx>> wrote:

    Hello!

    I have a package that has lots of .so files in it.  Is there
    a way to compile the source with debugging but have rpmbuild strip every
    file before packaging into the .rpm?

This is the default buildpolicy in general (this is on RHEL 5 for example)

rpm -E '%__os_install_post'

     /usr/lib/rpm/redhat/brp-compress
     /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
     /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
     /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip
/usr/bin/objdump
     /usr/lib/rpm/brp-python-bytecompile
     /usr/lib/rpm/redhat/brp-java-repack-jars

Well, on F11, if I compile with debugging symbols..and don't tell the target package
to strip in it's install step, the resulting rpm is around 40MB, and if I do strip
in the install, it's 6MB.  The only thing that changes is the spec file's arguments
to the install step.

So, I think rpmbuild must NOT be actually stripping all the files...

I'm new to building rpms, so I may be missing something.  Here is how I'm building
the rpms:

rpmbuild -ba $RPMDIR/SPECS/xorp.ct.spec

Thanks,
Ben


Regards



_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc  http://www.candelatech.com

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/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