summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/patches/git-clar-path-max.patch16
-rw-r--r--gnu/packages/version-control.scm3
2 files changed, 18 insertions, 1 deletions
diff --git a/gnu/packages/patches/git-clar-path-max.patch b/gnu/packages/patches/git-clar-path-max.patch
new file mode 100644
index 00000000000..e1b64622a84
--- /dev/null
+++ b/gnu/packages/patches/git-clar-path-max.patch
@@ -0,0 +1,16 @@
+On GNU/Hurd, 'PATH_MAX' is undefined. Provide a reasonable default value.
+Adapted from <https://github.com/libgit2/libgit2/pull/7100>.
+
+diff --git a/tests/clar/clar.h b/tests/clar/clar.h
+index ca72292ae91..98e2b14e880 100644
+--- a/t/unit-tests/clar/clar.h
++++ b/t/unit-tests/clar/clar.h
+@@ -14,6 +14,8 @@
+ # define CLAR_MAX_PATH 4096
+ #elif defined(_WIN32)
+ # define CLAR_MAX_PATH MAX_PATH
++#elif !defined(PATH_MAX) /* GNU/Hurd */
++# define CLAR_MAX_PATH 4096
+ #else
+ # define CLAR_MAX_PATH PATH_MAX
+ #endif
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 29ea1e681cb..122d3baee1a 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -320,7 +320,8 @@ Python 3.3 and later, rather than on Python 2.")
version ".tar.xz"))
(sha256
(base32
- "1ifpkrr64g8b0vv13155gz876s2f4vcqrvhgc75lkab9dzlgxn1w"))))
+ "1ifpkrr64g8b0vv13155gz876s2f4vcqrvhgc75lkab9dzlgxn1w"))
+ (patches (search-patches "git-clar-path-max.patch"))))
(build-system gnu-build-system)
(arguments
(list