From 00b07d7155af58d9336aacb1e87907d8defab884 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 27 Mar 2015 16:06:50 -0400 Subject: [PATCH] Better fix for standalone tarball git-annex sync linker shim bug, that works for "git annex sync" as well as "git-annex sync". --- Build/LinuxMkLibs.hs | 2 ++ debian/changelog | 7 +++++++ standalone/linux/skel/git-annex | 3 --- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Build/LinuxMkLibs.hs b/Build/LinuxMkLibs.hs index 9e829178c7..300ace69d2 100644 --- a/Build/LinuxMkLibs.hs +++ b/Build/LinuxMkLibs.hs @@ -69,6 +69,8 @@ installLinkerShim top linker exe = do createSymbolicLink link (top exelink) writeFile exe $ unlines [ "#!/bin/sh" + , "GIT_ANNEX_PROGRAMPATH=\"$0\"" + , "export GIT_ANNEX_PROGRAMPATH" , "exec \"$GIT_ANNEX_DIR/" ++ exelink ++ "\" --library-path \"$GIT_ANNEX_LD_LIBRARY_PATH\" \"$GIT_ANNEX_DIR/shimmed/" ++ base ++ "/" ++ base ++ "\" \"$@\"" ] modifyFileMode exe $ addModes executeModes diff --git a/debian/changelog b/debian/changelog index d71d48425c..4577a67dc9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +git-annex (5.20150328) UNRELEASED; urgency=medium + + * Better fix for standalone tarball git-annex sync linker shim bug, + that works for "git annex sync" as well as "git-annex sync". + + -- Joey Hess Fri, 27 Mar 2015 16:04:43 -0400 + git-annex (5.20150327) unstable; urgency=medium * readpresentkey: New plumbing command for checking location log. diff --git a/standalone/linux/skel/git-annex b/standalone/linux/skel/git-annex index 8b59be23ca..7fc864d87b 100755 --- a/standalone/linux/skel/git-annex +++ b/standalone/linux/skel/git-annex @@ -28,7 +28,4 @@ if [ -e "$base/bin/git-annex" ]; then export GIT_ANNEX_APP_BASE fi -GIT_ANNEX_PROGRAMPATH="$0" -export GIT_ANNEX_PROGRAMPATH - exec "$base/runshell" git-annex "$@"