diff options
| author | Yelninei <yelninei@tutamail.com> | 2025-10-24 14:55:52 +0000 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-11-03 17:18:38 +0100 |
| commit | e639447fc156b65a84a92d476b4d78d24cdd7788 (patch) | |
| tree | 533b50010d6a65c0d15acc52cb1b46d11ca8391f /gnu | |
| parent | 2b2a87f38b58aa1c5f7b5dd398f9241dcec18ff1 (diff) | |
gnu: Use target-hurd32? to check for 32bit hurd targets.
* gnu/packages/base.scm (grep, tar, patch, diffutils, findutils): Use target-hurd32?.
* gnu/packages/linux.scm (util-linux): Same.
Change-Id: I65c4df3483530ee395a39dd3b7462980321383dd
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/base.scm | 12 | ||||
| -rw-r--r-- | gnu/packages/linux.scm | 3 |
2 files changed, 6 insertions, 9 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 70ca4f8b233..26096743192 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -138,7 +138,7 @@ command-line arguments, multiple languages, and so on.") ;; integer in 'hurd_types.defs', so this Gnulib test always fails. #:make-flags #~#$(if (and (not (%current-target-system)) - (string=? (%current-system) "i586-gnu")) + (target-hurd32?)) #~'("XFAIL_TESTS=test-year2038") #~'()) @@ -269,8 +269,7 @@ implementation offers several extensions over the standard utility.") '(#: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?))) + ,@(if (target-hurd32?) (list #:configure-flags ''("--disable-year2038")) '()) #:phases (modify-phases %standard-phases @@ -346,7 +345,7 @@ differences.") (arguments (substitute-keyword-arguments (package-arguments patch/pinned) ((#:configure-flags flags #~'()) - (if (and (target-hurd?) (not (target-64bit?))) + (if (target-hurd32?) #~(cons* "--disable-year2038" #$flags) flags)))) @@ -370,7 +369,7 @@ differences.") ;; integer in 'hurd_types.defs', so this Gnulib test always fails. #:make-flags #~#$(cond ((and (not (%current-target-system)) - (string=? (%current-system) "i586-gnu")) + (target-hurd32?)) #~'("XFAIL_TESTS=test-year2038")) ;; TODO: Figure out why these gnulib tests are failing. ((and (not (%current-target-system)) @@ -428,8 +427,7 @@ interactive means to merge two files.") (arguments `(#:configure-flags (list ;; XXX: 32-bit Hurd platforms don't support 64bit time_t - ,@(if (and (target-hurd?) - (not (target-64bit?))) + ,@(if (target-hurd32?) '("--disable-year2038") '()) ;; Tell 'updatedb' to write to /var. diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index edfd9308b33..c84a61adaca 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -3261,8 +3261,7 @@ deviation, and minimum and maximum values. It can show a nice histogram too.") (string-append "--with-bashcompletiondir=" #$output "/etc/bash_completion.d") ;; XXX: 32-bit Hurd platforms don't support 64bit time_t - #$@(if (and (target-hurd?) - (not (target-64bit?))) + #$@(if (target-hurd32?) '("--disable-year2038") '())) |
