Re: Announcing the release of BLCR 0.6.0_beta4

From: Paul H. Hargrove (PHHargrove_at_lbl_dot_gov)
Date: Tue Aug 07 2007 - 12:59:39 PDT

  • Next message: Neal Becker: "Re: Announcing the release of BLCR 0.6.0_beta4"
    Neal,
      How does the following work for you?
    -Paul
    
    --- a/blcr-0.6.0_b4.spec     7 Aug 2007 00:44:12 -0000       1.69
    +++ b/blcr-0.6.0_b4.spec     7 Aug 2007 19:57:33 -0000
    @@ -184,10 +184,15 @@
     
     # On some systems rpmbuild dislikes having an RPATH that points
     # to a system directory.  So, we try to remove it here.
    -# We ignore errors, the most likely of which is that
    -# chrpath simply missing on systems that don't care.
    -chrpath -d ${RPM_BUILD_ROOT}/%{_bindir}/cr_checkpoint || true
    -chrpath -d ${RPM_BUILD_ROOT}/%{_bindir}/cr_restart || true
    +if chrpath --version >& /dev/null; then
    +  chrpath -d ${RPM_BUILD_ROOT}/%{_bindir}/cr_checkpoint
    +  chrpath -d ${RPM_BUILD_ROOT}/%{_bindir}/cr_restart
    +%if %{build_testsuite}
    +  for f in ${RPM_BUILD_ROOT}/%{_libexecdir}/blcr-testsuite/*; do
    +    ( file $f | grep ELF >& /dev/null ) && chrpath -d $f
    +  done
    +%endif
    +fi
     
     %post
     if [ $1 = 1 ]; then
    
    
    -- 
    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: Neal Becker: "Re: Announcing the release of BLCR 0.6.0_beta4"