gnu: tar: Disable 64bit time_t on the 32bit Hurd.

* gnu/packages/base.scm (tar): Add --disable-year2038 configure-flag for
32bit hurd.
Change-Id: I8573dca7fa848afb968365977c49edbd01e97756

Change-Id: Ie3ab2f7275c9d7163557a8874f7b004dae3c6a17
This commit is contained in:
Yelninei 2025-05-11 12:25:16 +00:00 committed by Andreas Enge
parent 310b02de41
commit be5070df29
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -268,6 +268,11 @@ implementation offers several extensions over the standard utility.")
((not (target-64bit?))
'(#:make-flags (list "TESTSUITEFLAGS= -k '!tricky time stamps'")))
(else '()))
;; XXX: 32-bit Hurd platforms don't support 64bit time_t
,@(if (and (target-hurd?)
(not (target-64bit?)))
(list #:configure-flags ''("--disable-year2038"))
'())
#:phases (modify-phases %standard-phases
(add-before 'build 'set-shell-file-name
(lambda* (#:key inputs #:allow-other-keys)