Revision: 110390 https://trac.macports.org/changeset/110390 Author: blair@macports.org Date: 2013-08-30 13:23:39 -0700 (Fri, 30 Aug 2013) Log Message: ----------- py-zeroc-ice35: fix issue mixing libstdc++.6.dylib from OS X and Macports. Prevent core dumps from mixing Mac OS X's libstdc++.6.dylib on older operating systems, e.g. 10.5.8, with MacPorts' libstdc++.6.dylib from newer libgcc's, e.g. 4.8.1. rm -f ../../python/IcePy.3.5.0.dylib /usr/bin/g++-4.2 -dynamiclib -O2 -DNDEBUG -Wall -Werror -D_REENTRANT -L../../python -Wl,-rpath,/opt/local/lib -o ../../python/IcePy.3.5.0.dylib -install_name @rpath/IcePy.35.so Communicator.o Connection.o Conn ectionInfo.o Current.o Endpoint.o EndpointInfo.o ImplicitContext.o Init.o Logger.o ObjectAdapter.o ObjectFactory.o Operation.o Properties.o PropertiesAdmin.o Proxy.o Slice.o Thread.o Types.o Util.o -L/opt/local/li b -lZerocIce -lSlice -lZerocIceUtil /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Python rm -f ../../python/IcePy.35.so ln -s IcePy.3.5.0.dylib ../../python/IcePy.35.so rm -f ../../python/IcePy.so ln -s IcePy.35.so ../../python/IcePy.so make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-zeroc-ice35/py27-zeroc-ice35/work/Ice-3.5.0/py/modules/IcePy' make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macport s_sources_rsync.macports.org_release_ports_python_py-zeroc-ice35/py27-zeroc-ice35/work/Ice-3.5.0/py/modules' making all in python make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-zeroc-ice35/py27-zeroc-ice35/work/Ice-3.5.0/py/python' /opt/local/bin/slice2py --prefix Ice_ --no-package -I../../slice --ice ../../slice/Ice/LocalException.ice make[1]: *** [Ice_LocalException_ice.py] Bus error make[1]: *** Deleting file `Ice_LocalException_ice.py' Modified Paths: -------------- trunk/dports/python/py-zeroc-ice35/Portfile Modified: trunk/dports/python/py-zeroc-ice35/Portfile =================================================================== --- trunk/dports/python/py-zeroc-ice35/Portfile 2013-08-30 20:21:19 UTC (rev 110389) +++ trunk/dports/python/py-zeroc-ice35/Portfile 2013-08-30 20:23:39 UTC (rev 110390) @@ -59,6 +59,13 @@ reinplace -E {s/-lIce([ A-Z]|$)/-lZerocIce\1/g} \ ${build.dir}/config/Make.rules \ ${build.dir}/config/Make.rules.Darwin + + # Prevent core dumps from mixing Mac OS X's libstdc++.6.dylib + # on older operating systems, e.g. 10.5.8, with MacPorts' + # libstdc++.6.dylib from newer libgcc's, e.g. 4.8.1, through + # the use of DYLD_LIBRARY_PATH being set to $prefix, use + # DYLD_FALLBACK_LIBRARY_PATH instead. + system "find ${worksrcpath} -type f -print0 | xargs -0 grep -Z -l DYLD_LIBRARY_PATH | xargs -0 perl -w -p -i -e 's/DYLD_LIBRARY_PATH/DYLD_FALLBACK_LIBRARY_PATH/g'" } use_configure no
participants (1)
-
blair@macports.org