gnu: gettext: Fix build with gcc-14.

* gnu/packages/gettext.scm (gettext-minimal) [arguments]: In phase
"patch-tests", skip failing "xgettext-javascript-6" test.

Change-Id: Ibac01c139e135c3a9c13f9077b4fbc6a7db93207
This commit is contained in:
Janneke Nieuwenhuizen 2024-12-05 08:14:37 +01:00
parent 3f2bd4eaaf
commit 3373444e99
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -93,6 +93,9 @@ (define-public gettext-minimal
#t))
(add-before 'check 'patch-tests
(lambda* (#:key inputs #:allow-other-keys)
;; This test fails
(substitute* "gettext-tools/tests/xgettext-javascript-6"
(("^#!.*" all) (string-append all "exit 77;\n")))
(let* ((bash (which "sh")))
;; Some of the files we're patching are
;; ISO-8859-1-encoded, so choose it as the default