Getting rpmbuild to strip all files.
Ben Greear
greearb at candelatech.com
Wed Mar 24 17:22:34 UTC 2010
On 03/24/2010 03:36 AM, devzero2000 wrote:
> On Tue, Mar 23, 2010 at 9:33 PM, Ben Greear <greearb at candelatech.com
> <mailto:greearb at candelatech.com>> 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 at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Rpm-list
mailing list