gnu: grep: Skip Gnulib’s ‘test-year2038’ on i586-gnu.

* gnu/packages/base.scm (grep)[arguments]: Add #:make-flags.

Change-Id: I262b6e677a40c37c14807a6189bd18c792099cae
This commit is contained in:
Ludovic Courtès 2024-08-18 17:25:51 +02:00
parent 461df5574f
commit 391ce2ea75
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -134,6 +134,14 @@ (define-public grep
(arguments
`(#:configure-flags
(list "--enable-perl-regexp")
;; XXX: On 32-bit Hurd platforms, 'time_t' is defined as a 32-bit
;; integer in 'hurd_types.defs', so this Gnulib test always fails.
#:make-flags ,(if (and (not (%current-target-system))
(string=? (%current-system) "i586-gnu"))
''("XFAIL_TESTS=test-year2038")
''())
#:phases
(modify-phases %standard-phases
(add-after 'install 'fix-egrep-and-fgrep