diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2023-06-06 16:53:09 +0200 |
---|---|---|
committer | Janneke Nieuwenhuizen <janneke@gnu.org> | 2023-07-20 10:11:33 +0200 |
commit | ee870c6abc18a5d71e8581c5e4c4e877ab214fdd (patch) | |
tree | e912d0bd81541010edfe816221cdde6f361f7459 | |
parent | 8b74e7d52107d6ec9813b446b041838bd111c648 (diff) | |
download | guix-ee870c6abc18a5d71e8581c5e4c4e877ab214fdd.tar.gz guix-ee870c6abc18a5d71e8581c5e4c4e877ab214fdd.zip |
gnu: libbsd: Skip failing test on the Hurd.
* gnu/packages/libbsd.scm (libbsd)[arguments]: When building natively on the
Hurd, add stage 'skip-tests'.
-rw-r--r-- | gnu/packages/libbsd.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/libbsd.scm b/gnu/packages/libbsd.scm index 5abbb2feff..558093564d 100644 --- a/gnu/packages/libbsd.scm +++ b/gnu/packages/libbsd.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 Leo Famulari <leo@famulari.name> ;;; Copyright © 2022 Marius Bakke <marius@gnu.org> +;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -23,6 +24,7 @@ #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix gexp) + #:use-module (guix utils) #:use-module (gnu packages crypto)) (define-public libbsd @@ -64,7 +66,15 @@ ;; build container. (substitute* "test/Makefile" (("pwcache\\$\\(EXEEXT\\) ") - ""))))))) + "")))) + #$@(if (system-hurd?) + #~((add-after 'unpack 'skip-tests + (lambda _ + (substitute* "test/explicit_bzero.c" + (("(^| )main *\\(.*" all) + (string-append all + "{\n exit (77);//")))))) + #~())))) (inputs (list libmd)) (synopsis "Utility functions from BSD systems") |