From 329b2dca076c7df4f3e53bfd29e5d486c8f12bd9 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Mon, 1 Dec 2025 09:50:49 +0100 Subject: gnu: git: Define ‘PATH_MAX’ on GNU/Hurd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes a regression introduced in 04e9e4a4623391bb225dcc0dd3003a0d3300f16d. * gnu/packages/patches/git-clar-path-max.patch: New file. * gnu/packages/version-control.scm (git-minimal): Use it. * gnu/local.mk (dist_patch_DATA): Add it. Change-Id: I7b1eb519952674cf66b745bd0a71bbe3395d3bdc --- gnu/packages/patches/git-clar-path-max.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gnu/packages/patches/git-clar-path-max.patch (limited to 'gnu/packages/patches/git-clar-path-max.patch') 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 . + +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 -- cgit v1.3