unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 6c474d0d11160e93b6d6e1e92f68619909f28287 750 bytes (raw)
name: gnu/packages/patches/screen-hurd-path-max.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
 
Workaround for PATH_MAX usage on the Hurd.

Taken from https://salsa.debian.org/debian/screen/-/blob/master/debian/patches/61-default-PATH_MAX-if-undefined-for-hurd.patch

Description: Set PATH_MAX to 4096 if undefined
 Fixes FTBFS since 4.4.0 on GNU/Hurd. Updated to add one more occurrence for 4.5.0.
Author: Axel Beckert <abe@debian.org>
Bug: https://savannah.gnu.org/bugs/?50089
Updated: 2017-01-18
Updated: 2024-08-30 for GNU Screen 5.0.0

diff --git a/screen.h b/screen.h
index 308c365..bda05b4 100644
--- a/screen.h
+++ b/screen.h
@@ -63,6 +63,13 @@ struct mode {
 #endif
 };

+/*
+ * Define PATH_MAX to 4096 if it's not defined, like on GNU/Hurd
+ */
+
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif

 #include "ansi.h"
 #include "image.h"

debug log:

solving 6c474d0d11 ...
found 6c474d0d11 in https://yhetil.org/guix-patches/e468db3e0fa6f0260bdffb3dfaf45dd21081cf7c.1724999417.git.atai@atai.org/
found e906f154f3 in https://git.savannah.gnu.org/cgit/guix.git
preparing index
index prepared:
100644 e906f154f389bc4388ffa3362e0a2953f2d14ae2	gnu/packages/patches/screen-hurd-path-max.patch

applying [1/1] https://yhetil.org/guix-patches/e468db3e0fa6f0260bdffb3dfaf45dd21081cf7c.1724999417.git.atai@atai.org/
diff --git a/gnu/packages/patches/screen-hurd-path-max.patch b/gnu/packages/patches/screen-hurd-path-max.patch
index e906f154f3..6c474d0d11 100644

Checking patch gnu/packages/patches/screen-hurd-path-max.patch...
Applied patch gnu/packages/patches/screen-hurd-path-max.patch cleanly.

index at:
100644 6c474d0d11160e93b6d6e1e92f68619909f28287	gnu/packages/patches/screen-hurd-path-max.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).