~ruther/guix-local

e639447fc156b65a84a92d476b4d78d24cdd7788 — Yelninei 5 months ago 2b2a87f
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>
2 files changed, 6 insertions(+), 9 deletions(-)

M gnu/packages/base.scm
M gnu/packages/linux.scm
M gnu/packages/base.scm => gnu/packages/base.scm +5 -7
@@ 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.

M gnu/packages/linux.scm => gnu/packages/linux.scm +1 -2
@@ 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")
                          '()))