guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

08/58: gnu: grep: Fix build for the 64bit Hurd.


From: guix-commits
Subject: 08/58: gnu: grep: Fix build for the 64bit Hurd.
Date: Sun, 24 Nov 2024 02:50:34 -0500 (EST)

janneke pushed a commit to branch hurd-team
in repository guix.

commit 28e3737472cbdbe6cd9d3771706568ee62fc0501
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Nov 4 08:12:45 2024 +0100

    gnu: grep: 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: I795a591ef8282ee5b760fec43bd4ad849007f602
---
 gnu/packages/base.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 02ef71f20d..010be631d7 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -154,6 +154,13 @@ command-line arguments, multiple languages, and so on.")
                                        (string-append bin "/fgrep"))
                       (("^exec grep")
                        (string-append "exec " bin "/grep"))))))
+              #$@(if (target-hurd64?)
+                     #~((add-after 'unpack 'patch-sigsegv
+                          (lambda _
+                            ;; Stack overflow recovery does not compile
+                            (substitute* "lib/sigsegv.in.h"
+                              (("__GNU__") "__XGNU__")))))
+                     #~())
               #$@(if (system-hurd?)
                      #~((add-before 'check 'skip-test
                           (lambda _



reply via email to

[Prev in Thread] Current Thread [Next in Thread]