Re: blcr rpath

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Wed Aug 01 2007 - 13:44:14 PDT

  • Next message: Paul H. Hargrove: "Re: 32bit and 64bit platforms: suggestion"
    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
    
    -- 
    Paul H. Hargrove                          PHHargrove_at_lbl_dot_gov
    Future Technologies Group                 
    HPC Research Department                   Tel: +1-510-495-2352
    Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900
    

  • Next message: Paul H. Hargrove: "Re: 32bit and 64bit platforms: suggestion"