summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author宋文武 <iyzsong@member.fsf.org>2025-02-04 20:39:59 +0800
committer宋文武 <iyzsong@member.fsf.org>2025-02-04 21:41:37 +0800
commit214b9d500f1434f745c26c5d9f826615d754a3ce (patch)
treebab13767e310c863034d04d179eb67c49c8df658
parentbeb9ad2cf7e83b747781b47cdde2f75a19cd3a1b (diff)
gnu: libxcb: Fix build for GNU/Hurd.
* gnu/packages/xorg.scm (libxcb) [propagated-inputs]: Add libpthread-stubs when targeting the Hurd. [arguments]: Add fix-PATH_MAX phase when targeting the Hurd. Authored-by: yelninei on IRC. Change-Id: Id673045c0c1a94a2d63bac7ea10a49174131d0ed
-rw-r--r--gnu/packages/xorg.scm16
1 files changed, 14 insertions, 2 deletions
diff --git a/gnu/packages/xorg.scm b/gnu/packages/xorg.scm
index 22e576395a..dc11932b4a 100644
--- a/gnu/packages/xorg.scm
+++ b/gnu/packages/xorg.scm
@@ -41,6 +41,7 @@
;;; Copyright © 2023, 2024 Kaelyn Takata <kaelyn.alexi@protonmail.com>
;;; Copyright © 2024 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com>
+;;; Copyright © 2025 宋文武 <iyzsong@envs.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -5045,7 +5046,10 @@ protocol.")
(build-system gnu-build-system)
(outputs '("out" "doc")) ;5.5 MiB of man pages
(propagated-inputs
- (list libxau libxdmcp))
+ (append (list libxau libxdmcp)
+ (if (target-hurd?)
+ (list libpthread-stubs) ;still checked on Hurd
+ '())))
(inputs
(list xcb-proto
check)) ;for tests
@@ -5056,7 +5060,15 @@ protocol.")
"--disable-static"
(string-append "--mandir="
(assoc-ref %outputs "doc")
- "/share/man"))))
+ "/share/man"))
+ #:phases ,(if (target-hurd?)
+ '(modify-phases %standard-phases
+ (add-after 'unpack 'fix-PATH_MAX
+ (lambda _
+ ;; Hurd doesn't define PATH_MAX.
+ (substitute* "src/xcb_util.c"
+ (("PATH_MAX") "4096")))))
+ '%standard-phases)))
(home-page "https://xcb.freedesktop.org/")
(synopsis "The X C Binding (XCB) library")
(description