[MacPorts] #17558: connection errors when macports libs are used with Tiger X11 headers

MacPorts noreply at macports.org
Tue Dec 16 23:27:11 PST 2008


#17558: connection errors when macports libs are used with Tiger X11 headers
----------------------------------+-----------------------------------------
  Reporter:  vinc17@…             |       Owner:  jeremyhu@…           
      Type:  defect               |      Status:  reopened             
  Priority:  High                 |   Milestone:  Port Bugs            
 Component:  ports                |     Version:  1.6.0                
Resolution:                       |    Keywords:  crash                
      Port:  xorg                 |  
----------------------------------+-----------------------------------------

Comment(by jeremyhu@…):

 This bash script should hopefully help.  It's very hackish, but it goes
 through all your macports binaries and libs and forces them to use the
 macports provided lib instead of the system lib for all installed X11
 libraries...

 {{{
 #!/bin/bash

 x11prefix=/usr/X11R6
 [[ -d /usr/X11 ]] && x11prefix=/usr/X11

 prefix=/opt/local

 if [[ ! -x ${prefix}/bin/gsed ]] ; then
         echo "This tool needs the gsed port to be installed" >&2
         exit 1
 fi

 cmdline=""

 for f in ${x11prefix}/lib/*.dylib ; do
         [[ -f ${prefix}/lib/$(basename ${f}) ]] && cmdline="${cmdline}
 -change ${f} ${prefix}/lib/$(basename ${f})"
 done

 if [[ -z "${cmdline}" ]] ; then
         echo "Could not find any macports X11 libraries" >&2
         exit 1
 fi

 for f in ${prefix}/bin/* ${prefix}/lib/lib*.dylib ; do
         echo ${f}
         install_name_tool ${cmdline} ${f} >& /dev/null
 done

 ${prefix}/bin/pkg-config --libs xrender | grep -q
 ${x11prefix}/lib/libX11.dylib && echo "You need to uninstall and reinstall
 the xrender port"

 echo  "This tool does not update libtool archives, so your .la files might
 be incorrect."
 }}}

-- 
Ticket URL: <http://trac.macports.org/ticket/17558#comment:39>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list