mirror of
https://github.com/nmap/nmap.git
synced 2025-12-29 10:59:02 +00:00
Update library relocations for macOS
This commit is contained in:
@@ -48,14 +48,6 @@ echo "Building using distutils"
|
||||
jhbuild run python setup.py build --executable "/usr/bin/env python"
|
||||
jhbuild run python setup.py install vanilla --prefix "$BASE/Resources"
|
||||
|
||||
# This isn't truly necessary, but it allows us to do a simpler check for problems later.
|
||||
echo "Rewriting linker paths to pass checks"
|
||||
ESCAPED_LIBBASE=$(echo "$BASE/Resources/" | sed 's/\([\/\\.]\)/\\\1/g')
|
||||
find $BASE/Resources/lib -type f -name '*.dylib' | while read so; do
|
||||
dep=$(echo "$so" | sed "s/$ESCAPED_LIBBASE//")
|
||||
install_name_tool -id "@executable_path/../Resources/$dep" "$so"
|
||||
done
|
||||
|
||||
echo "Renaming main Zenmap executable."
|
||||
mv $BASE/MacOS/$APP_NAME $BASE/MacOS/zenmap.bin
|
||||
# This is a dummy script, so we'll clean it up:
|
||||
|
||||
@@ -115,9 +115,13 @@
|
||||
<binary>${prefix}/lib/python2.7/site-packages/glib/*.so</binary>
|
||||
<binary>${prefix}/lib/python2.7/site-packages/gobject/*.so</binary>
|
||||
<binary>${prefix}/lib/python2.7/site-packages/gtk-2.0/*.so</binary>
|
||||
<binary>${prefix}/lib/python2.7/site-packages/gtk-2.0/gio/*.so</binary>
|
||||
<binary>${prefix}/lib/python2.7/site-packages/gtk-2.0/gtk/*.so</binary>
|
||||
<binary>${prefix}/lib/python2.7/site-packages/gtkmacintegration/*.so</binary>
|
||||
<binary>${prefix}/lib/python2.7/site-packages/gtkosx_application/*.so</binary>
|
||||
<!-- Pending this pull request: https://github.com/GNOME/gtk-mac-bundler/pull/1
|
||||
Without it, this data block will overwrite the binaries above, undoing
|
||||
the work of the run-install-name-tool option. -->
|
||||
<data>
|
||||
${prefix}/lib/python2.7/
|
||||
</data>
|
||||
|
||||
Reference in New Issue
Block a user