Re: Announcing the release of BLCR 0.6.0_beta4

From: Neal Becker (ndbecker2_at_gmail.com)
Date: Wed Aug 08 2007 - 06:48:12 PDT

  • Next message: noreply_at_googlegroups_dot_com: "Posting error: CIFTS"
    On Tuesday 07 August 2007, Paul H. Hargrove wrote:
    > 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
    
    Works OK. (Only tested with chrpath installed)
    

  • Next message: noreply_at_googlegroups_dot_com: "Posting error: CIFTS"