OSX git-annex.app: Fix a regression that broke git-remote-https, git-remote-http, and git-shell

Putting the binaries in bundle/git-core/bin didn't work on OSX,
linker can't find the libraries next to those binaries where it expects to.
So instead put the binaries in the progDir.
This commit is contained in:
Joey Hess 2019-11-14 16:15:42 -04:00
parent 28733a3f5a
commit f037ad92ec
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 9 additions and 5 deletions

View file

@ -58,8 +58,9 @@ installGitLibs topdir = do
-- many git-core files may symlink to eg
-- ../../bin/git, which is located outside
-- the git-core directory. The target of
-- such links is installed into a bin
-- directory, and the links repointed to it.
-- such links is installed into the progDir
-- (if not already there), and the links
-- repointed to it.
--
-- Other git-core files symlink to a file
-- beside them in the directory. Those
@ -68,7 +69,8 @@ installGitLibs topdir = do
if takeFileName linktarget == linktarget
then cp f destf
else do
let linktarget' = gitcoredestdir </> "bin" </> takeFileName linktarget
let linktarget' = progDir topdir
unlessM (doesFileExist linktarget') $ do
createDirectoryIfMissing True (takeDirectory linktarget')
L.readFile f >>= L.writeFile linktarget'
nukeFile destf

View file

@ -6,6 +6,8 @@ git-annex (7.20191107) UNRELEASED; urgency=medium
* Fix a crash (STM deadlock) when -J is used with multiple files
that point to the same key.
* linuxstandalone: Fix a regression that broke git-remote-https.
* OSX git-annex.app: Fix a regression that broke git-remote-https,
git-remote-http, and git-shell.
-- Joey Hess <id@joeyh.name> Mon, 11 Nov 2019 15:59:47 -0400