diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-11-10 22:47:26 +0100 |
---|---|---|
committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-12-03 08:39:00 +0100 |
commit | 493e07bd000dcf56a565088f0f4ab757fa67f328 (patch) | |
tree | 70d28aee79530583e43144fd606fd47d1e3c612f /gnu | |
parent | c86448f38b74b2da8f76ebbf3bdfaa43053bb3a8 (diff) | |
download | guix-493e07bd000dcf56a565088f0f4ab757fa67f328.tar.gz guix-493e07bd000dcf56a565088f0f4ab757fa67f328.zip |
gnu: m4: Fix build for the 64bit Hurd.
* gnu/packages/base.scm (grep)[arguments]: When building for the 64bit Hurd,
add patch-sigsegv.h stage.
Change-Id: I82993ebde268867348893556a9476faa5c4e9453
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/m4.scm | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gnu/packages/m4.scm b/gnu/packages/m4.scm index 39b50b6800..081304db34 100644 --- a/gnu/packages/m4.scm +++ b/gnu/packages/m4.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2012, 2013, 2015 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2022 Marius Bakke <marius@gnu.org> -;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org> +;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -64,6 +64,13 @@ (("(^| )main *\\(.*" all) (string-append all "{\n exit (77);//")))))) '()) + ,@(if (target-hurd64?) + '((add-after 'unpack 'patch-sigsegv + (lambda _ + ;; Stack overflow recovery does not compile + (substitute* "lib/sigsegv.in.h" + (("__GNU__") "__XGNU__"))))) + '()) (add-after 'unpack 'configure-shell (lambda* (#:key native-inputs inputs #:allow-other-keys) (let ((/bin/sh (search-input-file (or native-inputs inputs) |