Stop bundling curl in the OSX dmg
authorJoey Hess <joeyh@joeyh.name>
Tue, 15 Aug 2023 18:21:53 +0000 (14:21 -0400)
committerJoey Hess <joeyh@joeyh.name>
Tue, 15 Aug 2023 18:21:53 +0000 (14:21 -0400)
New curl binary links to libldap with a @loader_path that prevents using
the binary when the dmg is used elsewhere.
See https://github.com/datalad/git-annex/issues/170

git-annex doesn't use curl by default anyway, so it doesn't really need to
be included in the dmg.

Build/BundledPrograms.hs
Build/OSXMkLibs.hs
CHANGELOG

index 4440cc980e03cef96d1978a4138782de3291c58d..11acddd31377a51e6ee233428bfc2eb89e3355a3 100644 (file)
@@ -63,14 +63,11 @@ preferredBundledPrograms = catMaybes
        , Just "sh"
        -- used by git-annex when available
        , Just "uname"
+       -- Included in git for Windows
+       , Just "cp"
 #endif
        , BuildInfo.lsof
        , BuildInfo.gcrypt
-#ifndef mingw32_HOST_OS
-       -- These utilities are included in git for Windows
-       , ifset BuildInfo.curl "curl"
-       , Just "cp"
-#endif
 #ifdef linux_HOST_OS
        -- used to unpack the tarball when upgrading
        , Just "gunzip"
index f0e8a91d9d05534c6659f3f8b5118176f7b9d044..c680612d8e732c7b92562221b40c52e7fe200c1b 100644 (file)
@@ -96,7 +96,7 @@ otool appbase installedbins replacement_libs libmap = do
                -- to find real path to library, but for now, skip it.
                not ("@executable_path" `isInfixOf` s)
                && not ("@loader_path" `isInfixOf` s)
-               -- OSX framekworks such as Cocoa are too tightly tied to
+               -- OSX frameworks such as Cocoa are too tightly tied to
                -- a specific OSX version, so don't bundle.
                && not (".framework" `isInfixOf` s)
                -- libSystem.B is tightly tied to frameworks.
index 6aaeba9a84de5affffa4bb609f673683d3a60af1..00f32e6e6d8cfbec25784ba52efd53e881017442 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -7,6 +7,7 @@ git-annex (10.20230803) UNRELEASED; urgency=medium
   * Fix behavior when importing a tree from a directory remote when the
     directory does not exist. An empty tree was imported, rather than the
     import failing.
+  * Stop bundling curl in the OSX dmg.
 
  -- Joey Hess <id@joeyh.name>  Mon, 07 Aug 2023 13:04:13 -0400