From 58e5885f1785ef40763fc26f217fd1e413d7c061 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 12 Nov 2013 04:04:45 +0000 Subject: [PATCH] Remove libxml2.2.dylib from the OS X application bundle. This file is automatically copied into the bundle by py2app. It is already present as a system library on OS X 10.6 and later. Shipping our own caused a compatibility problem on OS X 10.9: Could not import the zenmapGUI.App module: 'dlopen(/Applications/Zenmap.app/Contents/Resources/lib/python2.6/lib-dynload/glib/_glib.so, 2): Symbol not found: _xmlBufContent\n Referenced from: /usr/lib/libxslt.1.dylib\n Expected in: /Applications/Zenmap.app/Contents/Frameworks/libxml2.2.dylib\n in /usr/lib/libxslt.1.dylib'. http://seclists.org/nmap-dev/2013/q4/85 --- zenmap/install_scripts/macosx/make-bundle.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zenmap/install_scripts/macosx/make-bundle.sh b/zenmap/install_scripts/macosx/make-bundle.sh index bb876e7cb..0cc17eb94 100755 --- a/zenmap/install_scripts/macosx/make-bundle.sh +++ b/zenmap/install_scripts/macosx/make-bundle.sh @@ -43,6 +43,10 @@ rm -rf build dist echo "Compiling using py2app." $PYTHON setup.py py2app --no-strip +# Delete a library that causes compatibility problems with OS X 10.9. +# http://seclists.org/nmap-dev/2013/q4/85 +rm -f $BASE/Frameworks/libxml2.2.dylib + mkdir -p $BASE/Resources/etc mkdir -p $BASE/Resources/lib