[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
53/84: gnu: libgpg-error: Skip failing test for the Hurd.
From: |
guix-commits |
Subject: |
53/84: gnu: libgpg-error: Skip failing test for the Hurd. |
Date: |
Wed, 14 Jun 2023 06:23:59 -0400 (EDT) |
janneke pushed a commit to branch wip-hurd
in repository guix.
commit 72f5ca801f8093055663d6eaeb9802686a6f153a
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Jun 6 19:34:49 2023 +0200
gnu: libgpg-error: Skip failing test for the Hurd.
* gnu/packages/gnupg.scm (libgpg-error)[arguments]: When building for the
Hurd, add phase 'skip-tests'.
---
gnu/packages/gnupg.scm | 82 +++++++++++++++++++++++++++++---------------------
1 file changed, 48 insertions(+), 34 deletions(-)
diff --git a/gnu/packages/gnupg.scm b/gnu/packages/gnupg.scm
index 49d29ed9bd..d2695e8626 100644
--- a/gnu/packages/gnupg.scm
+++ b/gnu/packages/gnupg.scm
@@ -22,6 +22,7 @@
;;; Copyright © 2021 Nikita Domnitskii <nikita@domnitskii.me>
;;; Copyright © 2021 Aleksandr Vityazev <avityazev@posteo.org>
;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -94,40 +95,42 @@
(version "1.45")
(source
(origin
- (method url-fetch)
- (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
- version ".tar.bz2"))
- (sha256
- (base32
- "09haz1kk48b8q0hd58g98whylah0fp121yfgjms7pzsbzgj8w3sp"))))
+ (method url-fetch)
+ (uri (string-append "mirror://gnupg/libgpg-error/libgpg-error-"
+ version ".tar.bz2"))
+ (sha256
+ (base32
+ "09haz1kk48b8q0hd58g98whylah0fp121yfgjms7pzsbzgj8w3sp"))))
(build-system gnu-build-system)
(arguments
- (if (%current-target-system)
- `(#:modules ((guix build gnu-build-system)
- (guix build utils))
- #:phases
- (modify-phases %standard-phases
- ;; If this is left out, some generated header
- ;; files will be sprinkled with ‘\c’, which
- ;; the compiler won't like.
- (add-after 'unpack 'fix-gen-lock-obj.sh
- (lambda _
- (substitute* "src/gen-lock-obj.sh"
- (("if test -n `echo -n`") "if ! test -n `echo -n`"))))
- ;; When cross-compiling, some platform specific properties cannot
- ;; be detected. Create a symlink to the appropriate platform
- ;; file if required. Note that these platform files depend on
- ;; both the operating system and architecture!
- ;;
- ;; See Cross-Compiling section at:
- ;; https://github.com/gpg/libgpg-error/blob/master/README
- (add-after 'unpack 'cross-symlinks
- (lambda _
- (define (link triplet source)
- (symlink (string-append "lock-obj-pub." triplet ".h")
- (string-append "src/syscfg/lock-obj-pub."
- source ".h")))
- ,(let* ((target (%current-target-system))
+ (cond
+ ((%current-target-system)
+ (list
+ #:modules ''((guix build gnu-build-system)
+ (guix build utils))
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; If this is left out, some generated header
+ ;; files will be sprinkled with ‘\c’, which
+ ;; the compiler won't like.
+ (add-after 'unpack 'fix-gen-lock-obj.sh
+ (lambda _
+ (substitute* "src/gen-lock-obj.sh"
+ (("if test -n `echo -n`") "if ! test -n `echo -n`"))))
+ ;; When cross-compiling, some platform specific properties cannot
+ ;; be detected. Create a symlink to the appropriate platform
+ ;; file if required. Note that these platform files depend on
+ ;; both the operating system and architecture!
+ ;;
+ ;; See Cross-Compiling section at:
+ ;; https://github.com/gpg/libgpg-error/blob/master/README
+ (add-after 'unpack 'cross-symlinks
+ (lambda _
+ (define (link triplet source)
+ (symlink (string-append "lock-obj-pub." triplet ".h")
+ (string-append "src/syscfg/lock-obj-pub."
+ source ".h")))
+ #$(let* ((target (%current-target-system))
(architecture
(string-take target (string-index target #\-))))
(cond ((target-linux? target)
@@ -140,8 +143,19 @@
;; configuration, as this is not correct for
;; all architectures.
(_ #t)))
- (#t #t)))))))
- '()))
+ (#t #t))))))))
+ ((target-hurd?)
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'skip-tests
+ (lambda _
+ (substitute*
+ "tests/t-syserror.c"
+ (("(^| )main *\\(.*" all)
+ (string-append all "{\n exit (77);//"))))))))
+ (else
+ '())))
(native-inputs (list gettext-minimal))
(home-page "https://gnupg.org")
(synopsis "Library of error values for GnuPG components")
- branch wip-hurd created (now 84b664bb10), guix-commits, 2023/06/14
- 20/84: hurd-boot: Setup pci-arbiter and rumpdisk translators., guix-commits, 2023/06/14
- 11/84: squash! gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/14
- 13/84: Revert "hurd-boot: Add urandom and default-pager translators.", guix-commits, 2023/06/14
- 18/84: gnu: parted: Support building for the Hurd., guix-commits, 2023/06/14
- 07/84: squash! gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/14
- 26/84: hurd-boot: Cater for netdde., guix-commits, 2023/06/14
- 31/84: gnu: commencement: Add automake-boot0., guix-commits, 2023/06/14
- 38/84: gnu: coreutils: Skip hanging and failing test for the Hurd., guix-commits, 2023/06/14
- 53/84: gnu: libgpg-error: Skip failing test for the Hurd.,
guix-commits <=
- 74/84: gnu: glib: Disable tests for the Hurd., guix-commits, 2023/06/14
- 64/84: gnu: openssl-1.1: Fix shared build for the Hurd., guix-commits, 2023/06/14
- 67/84: gnu: swig: Skip tests when building for the Hurd., guix-commits, 2023/06/14
- 75/84: gnu: ghostscript: Fix build for the Hurd., guix-commits, 2023/06/14
- 69/84: gnu: cmake-bootstrap: Fix build for the Hurd., guix-commits, 2023/06/14
- 08/84: gnu: gnumach: Update to 1.8+git20221224., guix-commits, 2023/06/14
- 06/84: squash! gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/14
- 05/84: gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/14
- 10/84: gnu: mig: Update to 04bfe7a91223ba15d868f7165e49328b1c6e86c3., guix-commits, 2023/06/14
- 16/84: gnu: Add rumpkernel., guix-commits, 2023/06/14