Subject: bug#67067: closed (Re: [bug#67067] [PATCH] gnu: nkf: fix cross-compilation.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 25 Nov 2023 13:36:02 +0000

Your bug report

#67067: [PATCH] gnu: nkf: fix cross-compilation.

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 [email-masked].

-- 
67067: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67067
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#67067] [PATCH] gnu: nkf: fix cross-compilation.
From: Mathieu Othacehe <[email-masked]>
To: Zheng Junjie <[email-masked]>
Cc: [email-masked]
Date: Sat, 25 Nov 2023 14:34:55 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

> * gnu/packages/textutils.scm (nkf): fix cross-compilation.

Applied, thanks,

Mathieu

Subject: [PATCH] gnu: nkf: fix cross-compilation.
From: Zheng Junjie <[email-masked]>
To: [email-masked]
Date: Sat, 11 Nov 2023 17:49:04 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/textutils.scm (nkf): fix cross-compilation.
[arguments]: use Gexp and CC-FOR-TARGET.

Change-Id: Idd2cbdd89d4ce2feb484a6005e06f1eba491feea
---
 gnu/packages/textutils.scm | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 41a34b6c4e..801d8fd8ad 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -27,6 +27,7 @@
 ;;; Copyright © 2022 Gabriel Wicki <[email-masked]>
 ;;; Copyright © 2023 Reza Housseini <[email-masked]>
 ;;; Copyright © 2023 Hilton Chain <[email-masked]>
+;;; Copyright © 2023 Zheng Junjie <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1289,13 +1290,14 @@ (define-public nkf
                   "0anw0knr1iy4p9w3d3b3pbwzh1c43p1i2q4c28kw9zviw8kx2rly"))))
       (build-system gnu-build-system)
       (arguments
-       `(#:tests? #f ; test for perl module
-         #:make-flags (list "CC=gcc" "CFLAGS=-O2 -Wall -pedantic"
-                            (string-append "prefix=" %output)
-                            "MKDIR=mkdir -p")
-         #:phases
-         (modify-phases %standard-phases
-           (delete 'configure)))) ; No ./configure script
+       (list #:tests? #f ; test for perl module
+             #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                                  "CFLAGS=-O2 -Wall -pedantic"
+                                  (string-append "prefix=" #$output)
+                                  "MKDIR=mkdir -p")
+             #:phases
+             #~(modify-phases %standard-phases
+                 (delete 'configure)))) ; No ./configure script
       (home-page "https://ja.osdn.net/projects/nkf/")
       (synopsis "Network Kanji Filter")
       (description "Nkf is yet another kanji code converter among networks,

base-commit: 61c527227ceebdad8da2d52214b253a48323cbb9
-- 
2.41.0