#16044: Fix install_name for remaining libraries preventing build on OS X 10.4 
PPC
--------------------------------------+------------------------
       Reporter:  kcrisman            |        Owner:
           Type:  defect              |       Status:  new
       Priority:  major               |    Milestone:  sage-6.2
      Component:  packages: standard  |   Resolution:
       Keywords:                      |    Merged in:
        Authors:                      |    Reviewers:
Report Upstream:  N/A                 |  Work issues:
         Branch:                      |       Commit:
   Dependencies:                      |     Stopgaps:
--------------------------------------+------------------------

Comment (by kcrisman):

 Okay, with 6.2.rc0 the only build failure continues to be rpy2.  So... I
 would be happy to just have this ticket fix that.  Can anyone give me a
 quick lead as to some "easy" way to fix it just for rpy2?  A couple pieces
 from [https://groups.google.com/forum/#!msg/sage-release/q1DPhL8WQiM/ the
 appropriate sage-release thread]:
 Leif:
 {{{

 > $ ls local/lib/R/lib/
 > libR.dylib              libRblas.dylib          libRlapack.dylib
 >
 > $ otool -L local/lib/R/lib/libRblas.dylib
 > local/lib/R/lib/libRblas.dylib:
 >          libRblas.dylib (compatibility version 0.0.0, current version
 0.0.0)
             ^^^^^^^^^^^^^^

 You have to change this to an absolute path ($SAGE_LOCAL/lib/R/lib/...),
 with 'install_name_tool -id ...'.

 Presumably the same for libRlapack.dylib, probably libR.dylib as well.
 }}}
 and fbissey
 {{{

 Indeed from the corresponding gentoo ebuild:
         if use prefix; then
                 if [[ ${CHOST} == *-darwin* ]] ; then
                         sed -i \
                                 -e 's:-install_name
 libR.dylib:-install_name
 ${libdir}/R/lib/libR.dylib:' \
                                 -e 's:-install_name
 libRlapack.dylib:-install_name
 ${libdir}/R/lib/libRlapack.dylib:' \
                                 -e 's:-install_name
 libRblas.dylib:-install_name
 ${libdir}/R/lib/libRblas.dylib:' \
                                 -e "/SHLIB_EXT/s/\.so/.dylib/" \
                                 configure.ac || die
                         # sort of "undo" 2.14.1-rmath-shared.patch
                         sed -i \
                                 -e
 "s:-Wl,-soname=libRmath.so:-install_name
 ${EROOT%/}/usr/$(get_libdir)/libRmath.dylib:" \
                                 src/nmath/standalone/Makefile.in || die
                 else
                         append-ldflags
 -Wl,-rpath="${EROOT%/}/usr/$(get_libdir)/R/lib"
                 fi
         fi
 }}}
 Thanks for any assistance.

--
Ticket URL: <http://trac.sagemath.org/ticket/16044#comment:29>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to