[Fedora-packaging] How to patch against strip?

Gianluca Sforna giallu at gmail.com
Fri Nov 20 15:00:15 UTC 2009

On Thu, Nov 19, 2009 at 8:40 PM, Richard W.M. Jones <rjones at redhat.com> wrote:
> On Thu, Nov 19, 2009 at 10:13:19AM +0300, Tareq Al Jurf wrote:
>> I'm building a package
>> Probably the package’s ‘make install’ function invokes ‘strip’ on the
>> binaries it produces. How do i patch the Makefile to not do that.
> You can redefine __strip in your RPM to another strip program or to
> /bin/true.  However you should be cautious about doing this.
> We do it for legitimate reasons in Fedora MinGW packages, but are
> careful to invoke an alternate strip program that correctly strips
> Windows and Linux binaries (the default program strips Linux binaries
> and corrupts Windows binaries, hence the need for a replacement).
> Shipping a Fedora package that isn't stripped at all may contravene
> the guidelines, so it shouldn't be done lightly.
> You should also note that if you're having problems with strip
> corrupting your programs, then it's likely that you'll need to take
> steps to prevent prelink doing the same thing.  (This is a problem
> with some older OCaml programs that I maintain).

Richard, I think he's just asking for help about where to look for
avoid stripping his binaries _before_ RPM strips them and creates the
debuginfo stuff.

He's probably getting empty debuginfo packages at the moment and wants
to fix the build.

Tareq, is this the situation you're in?

Gianluca Sforna


More information about the Fedora-packaging mailing list