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

Re: How to change the strip behaviuor



Stephen Smoogen wrote:

On Wed, 3 Sep 2003, Jeff Johnson wrote:



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.




Well the first thing wrong is I am messing with source-only packages (well I am trying to get away from cfengine copying various virus wathchers and oracle thingamabobees and to where cfengine just installs the correct rpm).



Nothing wrong with this.


The second is probably ignorance on my part of doing a source only package. I cant figure out how to get .nosrc.rpm to happen so I am basically putting the binary in a tar ball and telling the spec file to untar, copy the file over, and then make an rpm.



Hmmm, not used in years, but try Source5: http://yadda/foo.tar.gz NoSource: 5

The third problem is that one of the programs seems to have some sort of
hash checker on itself. If that doesnt pass it will not run (error of
binary possibly corrupted). Since the sizes of the files are different
after brb-strip runs on it.. I am guessing it either checks the size of
its own binary or something similar (md5sum).



Ah, that explains the problem. Cheap trick is to nuke the execute bit in %install,
replace in %post, as brp-strip helpers will look only at executable files.


I am waiting for the new RPM book to arrive here... it takes forever for government orders at the end of the fiscal year.


<grin> Yah, September, and then continuing resolutions in October. Hey, its a job. ;-)


hth

73 de Jeff





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