[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/31: gnu: screen: Build fix for the Hurd.
From: |
guix-commits |
Subject: |
16/31: gnu: screen: Build fix for the Hurd. |
Date: |
Thu, 12 Mar 2020 02:59:07 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit 61ff47ea3ce9f452df8f4bd7889449c2596092dc
Author: Jan Nieuwenhuizen <address@hidden>
AuthorDate: Sat Mar 7 11:30:44 2020 -0500
gnu: screen: Build fix for the Hurd.
* gnu/packages/patches/screen-hurd-path-max.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/screen.scm (screen): Use it.
---
gnu/local.mk | 1 +
gnu/packages/patches/screen-hurd-path-max.patch | 38 +++++++++++++++++++++++++
gnu/packages/screen.scm | 2 ++
3 files changed, 41 insertions(+)
diff --git a/gnu/local.mk b/gnu/local.mk
index 9a018ec..dc99722 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1408,6 +1408,7 @@ dist_patch_DATA =
\
%D%/packages/patches/scheme48-tests.patch \
%D%/packages/patches/scotch-build-parallelism.patch \
%D%/packages/patches/scotch-integer-declarations.patch \
+ %D%/packages/patches/screen-hurd-path-max.patch \
%D%/packages/patches/sdl-libx11-1.6.patch \
%D%/packages/patches/sdl2-mesa-compat.patch \
%D%/packages/patches/seahorse-gkr-use-0-on-empty-flags.patch \
diff --git a/gnu/packages/patches/screen-hurd-path-max.patch
b/gnu/packages/patches/screen-hurd-path-max.patch
new file mode 100644
index 0000000..4f81703
--- /dev/null
+++ b/gnu/packages/patches/screen-hurd-path-max.patch
@@ -0,0 +1,38 @@
+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 <address@hidden>
+Bug: https://savannah.gnu.org/bugs/?50089
+Last-Updated: 2017-01-18
+
+--- a/tty.sh
++++ b/tty.sh
+@@ -1478,6 +1478,13 @@
+ return 0;
+ }
+
++/*
++ * Define PATH_MAX to 4096 if it's not defined, like on GNU/Hurd
++ */
++
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
+
+ int CheckTtyname (char *tty)
+ {
+--- a/screen.h
++++ b/screen.h
+@@ -109,6 +109,13 @@
+ # define DEFAULT_BUFFERFILE "/tmp/screen-exchange"
+ #endif
+
++/*
++ * Define PATH_MAX to 4096 if it's not defined, like on GNU/Hurd
++ */
++
++#ifndef PATH_MAX
++#define PATH_MAX 4096
++#endif
+
+ #if defined(hpux) && !(defined(VSUSP) && defined(VDSUSP) && defined(VWERASE)
&& defined(VLNEXT))
+ # define HPUX_LTCHARS_HACK
diff --git a/gnu/packages/screen.scm b/gnu/packages/screen.scm
index 5116890..c03e2e5 100644
--- a/gnu/packages/screen.scm
+++ b/gnu/packages/screen.scm
@@ -29,6 +29,7 @@
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
+ #:use-module (gnu packages hurd)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
#:use-module (gnu packages python)
@@ -43,6 +44,7 @@
(method url-fetch)
(uri (string-append "mirror://gnu/screen/screen-"
version ".tar.gz"))
+ (patches (search-patches "screen-hurd-path-max.patch"))
(sha256
(base32
"18ascpjzsy70h6hk7wpg8zmzjwgdyrdr7c6z4pg5z4l9hhyv24bf"))))
(build-system gnu-build-system)
- 03/31: gnu: hurd: Fix hurd-target?, add hurd-system?., (continued)
- 03/31: gnu: hurd: Fix hurd-target?, add hurd-system?., guix-commits, 2020/03/12
- 01/31: gnu: flex-2.6.1: Build fix for the Hurd., guix-commits, 2020/03/12
- 07/31: gnu: fontconfig: Build fix for the Hurd., guix-commits, 2020/03/12
- 06/31: gnu: less: Build fix for the Hurd., guix-commits, 2020/03/12
- 10/31: gnu: cross-libc: Build fix for the Hurd., guix-commits, 2020/03/12
- 12/31: gnu: coreutils: Remove libcap dependency for the Hurd., guix-commits, 2020/03/12
- 08/31: gnu: glibc: Add and update patches for the Hurd., guix-commits, 2020/03/12
- 13/31: gnu: pciutils: Build fixes for the Hurd., guix-commits, 2020/03/12
- 09/31: gnu: glibc: Add signal SA_SIGINFO support for the Hurd., guix-commits, 2020/03/12
- 02/31: gnu: grub: Support for the Hurd., guix-commits, 2020/03/12
- 16/31: gnu: screen: Build fix for the Hurd.,
guix-commits <=
- 11/31: gnu: shadow: Add linux-pam dependency for the Hurd., guix-commits, 2020/03/12
- 20/31: gnu: commencement: gnumach-headers-boot0: Build from tarball., guix-commits, 2020/03/12
- 26/31: gnu: commencement: static-bash-for-glibc: Hurd build fix., guix-commits, 2020/03/12
- 23/31: gnu: commencement: glibc-intermediate: Build fixes for the Hurd., guix-commits, 2020/03/12
- 15/31: gnu: inetutils: Support for the Hurd., guix-commits, 2020/03/12
- 27/31: gnu: commencement: glibc-final: Allow gnumach-headers references., guix-commits, 2020/03/12
- 28/31: gnu: hurd: Update to hurd-headers version: 0.9-91a51672., guix-commits, 2020/03/12
- 17/31: gnu: shadow: Build fix for the Hurd., guix-commits, 2020/03/12
- 19/31: gnu: commencement: gcc-boot0: Build fix for the Hurd., guix-commits, 2020/03/12
- 18/31: gnu: mit-krb5: Supprt for the Hurd., guix-commits, 2020/03/12