gnu: libunistring: Fix make check for the Hurd.

* gnu/packages/libunistring.scm (libunistring)[arguments]: Set XFAIL_TESTS
with test-perror2, and test-strerror_r when building to the Hurd.
This commit is contained in:
Janneke Nieuwenhuizen 2023-05-31 07:14:51 +02:00
parent 77f52db416
commit 12e6a59238
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -2,7 +2,7 @@
;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2018, 2022 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2018, 2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2016, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org> ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
@ -28,6 +28,7 @@ (define-module (gnu packages libunistring)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (guix utils)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages base)) #:use-module (gnu packages base))
@ -60,7 +61,10 @@ (define-public libunistring
(with-directory-excursion (string-append #$output "/lib") (with-directory-excursion (string-append #$output "/lib")
(install-file "libunistring.a" (install-file "libunistring.a"
(string-append #$output:static "/lib")) (string-append #$output:static "/lib"))
(delete-file "libunistring.a"))))))) (delete-file "libunistring.a")))))
#:make-flags (if (target-hurd?)
#~(list "XFAIL_TESTS=test-perror2 test-strerror_r")
#~'())))
(synopsis "C library for manipulating Unicode strings") (synopsis "C library for manipulating Unicode strings")
(description (description
"GNU libunistring is a library providing functions to manipulate "GNU libunistring is a library providing functions to manipulate