Source: mesa Version: mesa: [hurd] fix FTBFS due to PATH_MAX Severity: normal
Currently mesa is FTBFS on hurd due to a PATH_MAX issue. The attached patch fixes that by conditionally defining PATH_MAX on hurd. I will also create a MR on salsa. -- tobi
diff --git a/debian/patches/path_max.diff b/debian/patches/path_max.diff index f58b0ac0783..52e8ed3d1e0 100644 --- a/debian/patches/path_max.diff +++ b/debian/patches/path_max.diff @@ -1,5 +1,5 @@ ---- a/src/compiler/glsl/tests/cache_test.c 2020-03-18 22:24:18.000000000 +0100 -+++ b/src/compiler/glsl/tests/cache_test.c 2020-03-30 12:09:05.000000000 +0200 +--- a/src/compiler/glsl/tests/cache_test.c ++++ b/src/compiler/glsl/tests/cache_test.c @@ -132,8 +132,8 @@ { bool sub_dirs_created = false; @@ -19,3 +19,16 @@ } expect_true(sub_dirs_created, "create sub dirs"); +--- a/src/util/process_test.c ++++ b/src/util/process_test.c +@@ -36,6 +36,10 @@ + #define PATH_MAX MAX_PATH + #endif + ++#if !defined(PATH_MAX) && defined(__GNU__) ++#define PATH_MAX (4096) ++#endif ++ + bool error = false; + + static void