diff options
| author | Yelninei <yelninei@tutamail.com> | 2026-05-16 14:31:17 +0000 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2026-08-31 11:00:18 +0900 |
| commit | f6d1f42f4bbb236c83927e363a1470572308e726 (patch) | |
| tree | e1cc7efdcc7ce0c946cadcddea2c8b354c44c649 /gnu/packages/patches/protobuf-pathmax.patch | |
| parent | 451c53fbdc08587ed0ad2f67f6fa8dea1230737e (diff) | |
gnu: protobuf: Fix build on the Hurd.
* gnu/packages/patches/protobuf-pathmax.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/protobuf.scm (protobuf)[source]<patches>: Use it.
[arguments]<#:phases>: Skip a test needing unimplemented libc options.
Merges: https://codeberg.org/guix/guix/pulls/8675
Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'gnu/packages/patches/protobuf-pathmax.patch')
| -rw-r--r-- | gnu/packages/patches/protobuf-pathmax.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gnu/packages/patches/protobuf-pathmax.patch b/gnu/packages/patches/protobuf-pathmax.patch new file mode 100644 index 00000000000..bad41105391 --- /dev/null +++ b/gnu/packages/patches/protobuf-pathmax.patch | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835267 | ||
| 2 | Bug-Upstream: https://github.com/google/protobuf/issues/2000 | ||
| 3 | Description: Add support for GNU/Hurd which doesn't define PATH_MAX. | ||
| 4 | Author: Bas Couwenberg <sebastic@debian.org> | ||
| 5 | Last-Update: 2022-03-11 | ||
| 6 | |||
| 7 | --- protobuf-3.9.1.orig/src/google/protobuf/compiler/command_line_interface.cc | ||
| 8 | +++ protobuf-3.9.1/src/google/protobuf/compiler/command_line_interface.cc | ||
| 9 | @@ -58,6 +58,9 @@ | ||
| 10 | #include <iostream> | ||
| 11 | |||
| 12 | #include <limits.h> // For PATH_MAX | ||
| 13 | +#if defined(__GNU__) | ||
| 14 | +#define PATH_MAX 4096 | ||
| 15 | +#endif | ||
| 16 | |||
| 17 | #include <memory> | ||
| 18 | |||
