civodul pushed a commit to branch core-updates
in repository guix.

commit 34bec027a1192218337c5f8d17d459f2f49e19d1
Author: Ludovic Courtès <[email protected]>
AuthorDate: Sun Aug 18 17:25:51 2024 +0200

    gnu: grep: Skip Gnulib’s ‘test-year2038’ on i586-gnu.
    
    * gnu/packages/base.scm (grep)[arguments]: Add #:make-flags.
    
    Change-Id: I262b6e677a40c37c14807a6189bd18c792099cae
---
 gnu/packages/base.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index bc30d73426..d58fe59b0b 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -134,6 +134,14 @@ command-line arguments, multiple languages, and so on.")
    (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

Reply via email to