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

Re: How to change the strip behaviuor



Stephen Smoogen wrote:

Is there a way to turn off brp-strip altogether? I have to make source only packages and it causes some apps to not work because they do md5 checks of themselves.



Strip behavior (and all build root policy scripts) is configured in


%__os_install_post \
/usr/lib/rpm/brp-compress \
/usr/lib/rpm/brp-strip \
/usr/lib/rpm/brp-strip-static-archive \
/usr/lib/rpm/brp-strip-comment-note \
%{nil}


which is appended to %installl scriptlet. Redefine in /etc/rpm/macros or
~/.rpmmacros if necessary.

Hmmm, but something else is wrong if you have to mess with stripping
on "source only" packages. I'm not sure what "md5 checks" means.

73 de Jeff

On Wed, 3 Sep 2003, Enrico Scholz wrote:



Lapo.Pasqui@marconi.com ("Lapo Pasqui") writes:



I'm trying to build a few RPM of cross-compiled packages, and therefore
I'm using a cross-compiler suite inside the RPM building progress.
What I've noticed is that RPM run strip on the files generated by the
«make install» processs and there is no way to tell it to use my own
version of strip (namely powerpc-linux-strip).
...
What else can I do?


binutils can be built do support multiple targets, so you can use
the normal 'split' for powerpc binaries also. You have just to add
'--enable-targets=powerpc-unknown-linux' to binutils's ./configure.

Alternatively, you can create a 'strip' symlink to 'powerpc-linux-strip' in
a special directory and put this directory on top of $PATH before you call
'rpmbuild'.



Enrico


_______________________________________________ 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] []