diff options
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | doc/bugs/binary_package_not_working_on_macOS_Sierra/comment_1_d6142fd505af8e0522ef5667761b3f80._comment | 23 |
3 files changed, 30 insertions, 0 deletions
@@ -11,6 +11,8 @@ git-annex (6.20161032) UNRELEASED; urgency=medium * Webapp: Don't list the Frankfurt region, as this (and some other new regions) need V4 authorization which the aws library does not yet use. * reinject --known: Avoid second, unncessary checksum of file. + * OSX: Remove RPATHs from git-annex binary, which are not needed, + slow down startup, and break the OSX Sierra linker. -- Joey Hess <id@joeyh.name> Tue, 01 Nov 2016 14:02:06 -0400 @@ -181,6 +181,11 @@ OSXAPP_BASE=$(OSXAPP_DEST)/Contents/MacOS/bundle osxapp: Build/Standalone Build/OSXMkLibs $(MAKE) git-annex + # Remove all RPATHs, both because this overloads the linker on + # OSX Sierra, and to avoid the binary looking in someone's home + # directory. + eval install_name_tool $$(otool -l git-annex | grep "path " | sed 's/.*path /-delete_rpath /' | sed 's/ (.*//') git-annex + rm -rf "$(OSXAPP_DEST)" "$(OSXAPP_BASE)" install -d tmp/build-dmg cp -R standalone/osx/git-annex.app "$(OSXAPP_DEST)" diff --git a/doc/bugs/binary_package_not_working_on_macOS_Sierra/comment_1_d6142fd505af8e0522ef5667761b3f80._comment b/doc/bugs/binary_package_not_working_on_macOS_Sierra/comment_1_d6142fd505af8e0522ef5667761b3f80._comment new file mode 100644 index 000000000..51a354059 --- /dev/null +++ b/doc/bugs/binary_package_not_working_on_macOS_Sierra/comment_1_d6142fd505af8e0522ef5667761b3f80._comment @@ -0,0 +1,23 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2016-11-07T17:59:14Z" + content=""" +`otool -l git-annex` shows hundreds of unnecessary RPATHs, removing +them should fix this. + +One way would be to use `install_name_tool -delete_rpath` for each +of them. + +It would be better to upgrade to a fixed ghc, +if it has fixed this RPATH mess. ghc 8.0.2 may fix it. +But the OSX autobuilder is using stack, and no stackage LTS or nightly +includes ghc 8.0.2 yet. + +Ok, I've put in the `install_name_tool -delete_rpath` workaround +for the dmg build. + +Bug reporter: Please see if +<https://downloads.kitenet.net/git-annex/autobuild/x86_64-apple-yosemite/git-annex.dmg> +has fixed the problem for you. +"""]] |