Subject: [bug#77749] [PATCH core-packages-team v4] gnu: diffutils: Update to 3.12.

From: Andy Tai <[email-masked]>
Date: Mon, 21 Apr 2025 01:49:26 -0700

* gnu/packages/base.scm (diffutils): Update to 3.12.
[arguments]<#:configure-flags>: When cross-compiling,
add "ac_cv_func_strcasecmp=yes"
"gl_cv_func_strcasecmp_works=yes".

Change-Id: Icf49303e794479a0561e894ab88427c826d56cf3
---
 gnu/packages/base.scm | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index c39ec9e93d..7187d67343 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -382,14 +382,14 @@ (define-public patch
 (define-public diffutils
   (package
    (name "diffutils")
-   (version "3.11")
+   (version "3.12")
    (source (origin
             (method url-fetch)
             (uri (string-append "mirror://gnu/diffutils/diffutils-"
                                 version ".tar.xz"))
             (sha256
              (base32
-              "07hkwbws3nhxqrsvsf01h6gl2q4pcfhf8s3hv3vqbmbxwdgz0gm7"))))
+              "1zbxf8vv7z18ypddwqgzj51n426k959fiv4wxbyl34b0r2gpz2vw"))))
    (build-system gnu-build-system)
    (arguments
     (list
@@ -401,6 +401,12 @@ (define-public diffutils
              #~'("XFAIL_TESTS=test-year2038")
              #~'())
 
+     #:configure-flags
+     #~#$(if (%current-target-system)
+       ;; Fix for crosscompiling; on GNU system strcasecmp always works
+       #~'("ac_cv_func_strcasecmp=yes" "gl_cv_func_strcasecmp_works=yes")
+       #~'())
+
      #:phases (if (system-hurd?)
                   #~(modify-phases %standard-phases
                       (add-after 'unpack 'skip-tests

base-commit: d478fd3f60647a8d3cb833b1fac0b4936500c029
-- 
2.43.0