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

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

Your bug report

#67068: [PATCH] gnu: odt2txt: 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].

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

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

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

Applied, thanks,

Mathieu

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

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

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

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 801d8fd8ad..ea182b1925 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -1130,13 +1130,13 @@ (define-public odt2txt
           "0im3kzvhxkjlx57w6h13mc9584c74ma1dyymgvpq2y61av3gc35v"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:tests? #f ; no make check
-       #:make-flags (list "CC=gcc"
-                          (string-append "DESTDIR=" (assoc-ref %outputs "out")))
-       #:phases
-       (modify-phases %standard-phases
-         ;; no configure script
-         (delete 'configure))))
+     (list #:tests? #f ; no make check
+           #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
+                                (string-append "DESTDIR=" #$output))
+           #:phases
+           #~(modify-phases %standard-phases
+               ;; no configure script
+               (delete 'configure))))
     (inputs
      (list zlib))
     (home-page "https://github.com/dstosberg/odt2txt/")

base-commit: 61c527227ceebdad8da2d52214b253a48323cbb9
prerequisite-patch-id: 9528fcde2e87f38657ffead2353e813067c3f0f1
-- 
2.41.0