Re: blcr rpath

From: Neal Becker (ndbecker2_at_gmail.com)
Date: Sun Aug 05 2007 - 11:42:09 PDT

  • Next message: Neal Becker: "checkpoint API"
    On Wednesday 01 August 2007, Paul H. Hargrove wrote:
    > Neal Becker wrote:
    > > I'm beginning to like a simpler alternative to fixing the rpath problem.
    > > Fedora now has a little util called chrpath.  After %install, just add:
    > >
    > > chrpath -d ${RPM_BUILD_ROOT}/%{_bindir}/cr_checkpoint
    > > chrpath -d ${RPM_BUILD_ROOT}/%{_bindir}/cr_restart
    > >
    > > This deletes the rpaths.
    > >
    > > Only issue is, should add buildrequires chrpath.  How to make this rule
    > > apply only to systems that need it?
    >
    > Neal,
    >   I like that this has less impact than autoreconf.  At least 2
    > possibilities come to mind:
    >
    > 1) Implement logic for '--define "with_chrpath 1"' to allow the builder
    > to request this behavior.
    > 2) Always run chrpath and ignore errors
    >     (\
    >          chrpath -d ${RPM_BUILD_ROOT}/%{_bindir}/cr_checkpoint;\
    >          chrpath -d ${RPM_BUILD_ROOT}/%{_bindir}/cr_restart;\
    >     ) 2>/dev/null || true
    >
    > Thoughts?
    >
    > -Paul
    
    Having to request it is annoying, since you don't discover the problem until 
    the build is complete.  The second option is fine.  chrpath is an optional 
    package that most builders might not have installed.  I think testing whether 
    the system actually requires the rpath fix is too complicated.
    

  • Next message: Neal Becker: "checkpoint API"