gnu: GHC: Disable test that fails with glibc 2.30 and later.

Fixes <https://bugs.gnu.org/39358>.

* gnu/packages/haskell.scm (ghc-8.6)[arguments]: Add substitution to disable
broken test.
This commit is contained in:
Marius Bakke 2020-03-23 19:42:56 +01:00
parent c711b6abdb
commit 2e9c43aa9a
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -19,6 +19,7 @@
;;; Copyright © 2018, 2019 Gabriel Hondet <gabrielhondet@gmail.com>
;;; Copyright © 2019 Robert Vollmert <rob@vllmrt.net>
;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
;;; Copyright © Marius Bakke <mbakke@fastmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@ -582,14 +583,20 @@ (define-public ghc-8.6
,make-flags))
((#:phases phases '%standard-phases)
`(modify-phases ,phases
;; These two tests refer to the root user, which doesn't exist
;; (see <https://bugs.gnu.org/36692>).
(add-after 'unpack-testsuite 'skip-tests
(lambda _
;; These two tests refer to the root user, which doesn't exist
;; (see <https://bugs.gnu.org/36692>).
(substitute* "libraries/unix/tests/all.T"
(("^test\\('T8108'") "# guix skipped: test('T8108'"))
(substitute* "libraries/unix/tests/libposix/all.T"
(("^test\\('posix010'") "# guix skipped: test('posix010'"))
;; This test attempts to dlopen() a position-independent
;; executable(!), which is disallowed since glibc 2.30. See
;; https://sourceware.org/bugzilla/show_bug.cgi?id=24323
(substitute* "testsuite/tests/dynlibs/Makefile"
(("\\./T13702a")
"# ./T13702a"))
#t))))))
(native-search-paths (list (search-path-specification
(variable "GHC_PACKAGE_PATH")