Subject: [PATCH v3] gnu: diffutils: Update to 3.12.

From: Andy Tai <[email-masked]>
Date: Sat, 12 Apr 2025 02:23:53 -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: I246a2024cae0611098a8abb940639dcfda01d914
---
 gnu/packages/base.scm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 4c96ffa1a46..13f74b845d8 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -396,14 +396,14 @@ (define-public patch
 (define-public diffutils
   (package
    (name "diffutils")
-   (version "3.10")
+   (version "3.12")
    (source (origin
             (method url-fetch)
             (uri (string-append "mirror://gnu/diffutils/diffutils-"
                                 version ".tar.xz"))
             (sha256
              (base32
-              "17nhkdn5a2z6pwcmjs4jas2plg066hbdz06y5vhypr14qwyfkrch"))))
+              "1zbxf8vv7z18ypddwqgzj51n426k959fiv4wxbyl34b0r2gpz2vw"))))
    (build-system gnu-build-system)
    (arguments
     (list
@@ -414,6 +414,11 @@ (define-public diffutils
                   (string=? (%current-system) "i586-gnu"))
              #~'("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

base-commit: 63f323fc98fb6e85c48721574aab8e54d95091e5
-- 
2.43.0