GNU bug report logs - #77643
[PATCH] gnu: nano: Fix cross-compiling.

Previous Next

Package: guix-patches;

Reported by: Andy Tai <atai <at> atai.org>

Date: Tue, 8 Apr 2025 13:41:03 UTC

Severity: normal

Tags: patch

Done: Z572 <z572 <at> z572.online>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andy Tai <atai <at> atai.org>
Subject: bug#77643: closed (Re: [bug#77643] [PATCH] gnu: nano: Fix
 cross-compiling.)
Date: Tue, 08 Apr 2025 14:39:05 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#77643: [PATCH] gnu: nano: Fix cross-compiling.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 77643 <at> debbugs.gnu.org.

-- 
77643: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=77643
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Z572 <z572 <at> z572.online>
To: Andy Tai <atai <at> atai.org>
Cc: 77643-done <at> debbugs.gnu.org, andreas <at> enge.fr
Subject: Re: [bug#77643] [PATCH] gnu: nano: Fix cross-compiling.
Date: Tue, 08 Apr 2025 22:37:54 +0800
[Message part 3 (text/plain, inline)]
Andy Tai <atai <at> atai.org> writes:

> * gnu/packages/text-editors.scm (nano)[arguments]<#:configure-flags>: When
> cross-compiling, add "ac_cv_func_strcasecmp=yes"
> "gl_cv_func_strcasecmp_works=yes".
>
> Change-Id: Ie024ebdba51efe01ab41872f85479525851e3e3a
> ---
>  gnu/packages/text-editors.scm | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
> index 08af5e33a32..99216e61786 100644
> --- a/gnu/packages/text-editors.scm
> +++ b/gnu/packages/text-editors.scm
> @@ -1002,6 +1002,11 @@ (define-public nano
>        (sha256
>         (base32 "13b2iqmbx5vcyd0rnvvc9l8l79q6665r4xx6gvc28mnmpci95ljs"))))
>      (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 use gexp.

>      (inputs
>       (list gettext-minimal ncurses))
>      (home-page "https://www.nano-editor.org/")
>
> base-commit: 1dab24555a494beb3db5a335c675f07043e77f1c
pushed, closing.
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Andy Tai <atai <at> atai.org>
To: guix-patches <at> gnu.org,
	andreas <at> enge.fr,
	z572 <at> z572.online
Cc: Andy Tai <atai <at> atai.org>
Subject: [PATCH] gnu: nano: Fix cross-compiling.
Date: Tue,  8 Apr 2025 06:39:29 -0700
* gnu/packages/text-editors.scm (nano)[arguments]<#:configure-flags>: When
cross-compiling, add "ac_cv_func_strcasecmp=yes"
"gl_cv_func_strcasecmp_works=yes".

Change-Id: Ie024ebdba51efe01ab41872f85479525851e3e3a
---
 gnu/packages/text-editors.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 08af5e33a32..99216e61786 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -1002,6 +1002,11 @@ (define-public nano
       (sha256
        (base32 "13b2iqmbx5vcyd0rnvvc9l8l79q6665r4xx6gvc28mnmpci95ljs"))))
     (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"))
+       '())))
     (inputs
      (list gettext-minimal ncurses))
     (home-page "https://www.nano-editor.org/")

base-commit: 1dab24555a494beb3db5a335c675f07043e77f1c
-- 
2.43.0




This bug report was last modified 94 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.