LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Executable modified by rpm?

[ILUG] Executable modified by rpm?

Darragh Bailey felix at compsoc.nuigalway.ie
Fri Feb 11 16:11:24 GMT 2011


On Thu, Feb 10, 2011 at 08:05:49PM +0000, isdtor wrote:
> On 10 February 2011 16:13, Darragh Bailey <felix at compsoc.nuigalway.ie> wrote:
> > rpm build post scripts can end up modifying file contents, I find them
> > probematic when trying to package prebuilt binary files.
> 
> Good call, Darragh. It looks like the executable is getting stripped.
> 
> The spec file I dug up sets export DONT_STRIP=1, but that's nothing
> the rpm scripts on
> CentOS use. I could set STRIP to some dummy program, but don't know
> what to use so
> the code doesn't error out. Maybe "true" will work.
> 
> for f in ... ; do $STRIP -g "$f" || : ; done
> 
> The code isn't executed if RPM_BUILD_ROOT isn't set, but I believe it
> generally is.


Why not try putting the following in your spec file:
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-strip.*$!!g')


-- 
Darragh

"Nothing is foolproof to a sufficiently talented fool."


More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell