diff mbox series

[bug#73927,v4,01/18] gnu: guile-fibers: Fix cross-build for the Hurd.

Message ID 839cf9a07b8a3b4b085058cc669040e4dbc6b42f.1730296564.git.janneke@gnu.org
State New
Headers show
Series Installer support for (cross) installing the Hurd. | expand

Commit Message

Janneke Nieuwenhuizen Oct. 30, 2024, 2:30 p.m. UTC
* gnu/packages/guile-xyz.scm (guile-fibers): When cross-building for the Hurd,
add "fix-env" phase.

Change-Id: Iebe12941bbfb2f5a6208f9364115e95f10e82ed6
---
 gnu/packages/guile-xyz.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 5f34ea98a6..06d3b59dc3 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -9,7 +9,7 @@ 
 ;;; Copyright © 2016, 2017, 2021 Alex Kost <alezost@gmail.com>
 ;;; Copyright © 2016, 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@openmailbox.org>
 ;;; Copyright © 2016, 2021 Amirouche <amirouche@hypermove.net>
-;;; Copyright © 2016, 2019, 2021, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2016, 2019, 2021, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
 ;;; Copyright © 2017 Andy Wingo <wingo@igalia.com>
 ;;; Copyright © 2017 David Thompson <davet@gnu.org>
 ;;; Copyright © 2017, 2018, 2019, 2020 Mathieu Othacehe <m.othacehe@gmail.com>
@@ -875,7 +875,14 @@  (define-public guile-fibers
                          (substitute* "tests/basic.scm"
                            ((".*spawn-fiber-chain 5000000.*") ""))
                          (substitute* "tests/channels.scm"
-                           ((".*assert-run-fibers-terminates .*pingpong.*") "")))))))))
+                           ((".*assert-run-fibers-terminates .*pingpong.*") "")))))
+                   #$@(if (and (target-hurd?) (%current-target-system))
+                          #~((add-before 'build 'fixup-env
+                               (lambda _
+                                 (substitute* "env"
+                                   ((".*override.*" all)
+                                    (string-append "true #" all))))))
+                          '())))))
     (native-inputs
      (list texinfo pkg-config autoconf-2.71 automake libtool
            guile-3.0            ;for 'guild compile