Subject: Re: [bug#77636] [PATCH v2] gnu: datamash: Update to 1.9.

From: Z572 <[email-masked]>
Date: Fri, 11 Apr 2025 15:29:37 +0800

Andy Tai <[email-masked]> writes:

> * gnu/packages/datamash.scm (datamesh): Update to 1.9.
> [arguments]<#:configure-flags>: When cross-compiling,
> add "ac_cv_func_strcasecmp=yes"
> "gl_cv_func_strcasecmp_works=yes".
>
> Change-Id: I9fdfd1c755c74c98a84a943c7fc6a7e56f91c402
> ---
>  gnu/packages/datamash.scm | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/datamash.scm b/gnu/packages/datamash.scm
> index ac5094935ae..346ffb8492d 100644
> --- a/gnu/packages/datamash.scm
> +++ b/gnu/packages/datamash.scm
> @@ -35,7 +35,7 @@ (define-module (gnu packages datamash)
>  (define-public datamash
>    (package
>      (name "datamash")
> -    (version "1.8")
> +    (version "1.9")
>      (source
>       (origin
>        (method url-fetch)
> @@ -43,11 +43,16 @@ (define-public datamash
>                            version ".tar.gz"))
>        (sha256
>         (base32
> -        "1zgn55gvf60w2rs5f7vx7vdp50j89ki7mmjvm81xs5pngs67xnbs"))))
> +        "1ll7rfm2b8zdm1vlm3a32cr2kjbc1af8yx8z2rwxc3b50gdfp0pk"))))
>      (native-inputs
>       (list which ;for tests
>             perl))                 ;for help2man
>      (build-system gnu-build-system)
> +    (arguments
> +     `(,@(if (%current-target-system)
> +        ; fix for crosscompiling; on GNU system strcasecmp always works
> +       `(#:configure-flags (list "ac_cv_func_strcasecmp=yes" "gl_cv_func_strcasecmp_works=yes"))
> +       '())))

adjust to

(if (%current-target-system)
         ;; fix for crosscompiling; on GNU system strcasecmp always works
         (list #:configure-flags
               #~(list "ac_cv_func_strcasecmp=yes"
                       "gl_cv_func_strcasecmp_works=yes"))
         '())

>      (home-page "https://www.gnu.org/software/datamash/")
>      (synopsis "Scriptable statistics and data calculation")
>      (description
>
> base-commit: 1dab24555a494beb3db5a335c675f07043e77f1c
pushed, closing.