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:
parent
28733a3f5a
commit
f037ad92ec
2 changed files with 9 additions and 5 deletions
|
@ -58,8 +58,9 @@ installGitLibs topdir = do
|
||||||
-- many git-core files may symlink to eg
|
-- many git-core files may symlink to eg
|
||||||
-- ../../bin/git, which is located outside
|
-- ../../bin/git, which is located outside
|
||||||
-- the git-core directory. The target of
|
-- the git-core directory. The target of
|
||||||
-- such links is installed into a bin
|
-- such links is installed into the progDir
|
||||||
-- directory, and the links repointed to it.
|
-- (if not already there), and the links
|
||||||
|
-- repointed to it.
|
||||||
--
|
--
|
||||||
-- Other git-core files symlink to a file
|
-- Other git-core files symlink to a file
|
||||||
-- beside them in the directory. Those
|
-- beside them in the directory. Those
|
||||||
|
@ -68,7 +69,8 @@ installGitLibs topdir = do
|
||||||
if takeFileName linktarget == linktarget
|
if takeFileName linktarget == linktarget
|
||||||
then cp f destf
|
then cp f destf
|
||||||
else do
|
else do
|
||||||
let linktarget' = gitcoredestdir </> "bin" </> takeFileName linktarget
|
let linktarget' = progDir topdir
|
||||||
|
unlessM (doesFileExist linktarget') $ do
|
||||||
createDirectoryIfMissing True (takeDirectory linktarget')
|
createDirectoryIfMissing True (takeDirectory linktarget')
|
||||||
L.readFile f >>= L.writeFile linktarget'
|
L.readFile f >>= L.writeFile linktarget'
|
||||||
nukeFile destf
|
nukeFile destf
|
||||||
|
|
|
@ -6,6 +6,8 @@ git-annex (7.20191107) UNRELEASED; urgency=medium
|
||||||
* Fix a crash (STM deadlock) when -J is used with multiple files
|
* Fix a crash (STM deadlock) when -J is used with multiple files
|
||||||
that point to the same key.
|
that point to the same key.
|
||||||
* linuxstandalone: Fix a regression that broke git-remote-https.
|
* 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
|
-- Joey Hess <id@joeyh.name> Mon, 11 Nov 2019 15:59:47 -0400
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue