Subject: bug#58492: closed (Re: [bug#58492] [PATCH] gnu: lziprecover: Fix cross-compilation.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 16 Oct 2022 18:34:02 +0000

Your bug report

#58492: [PATCH] gnu: lziprecover: 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].

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

Subject: Re: [bug#58492] [PATCH] gnu: lziprecover: Fix cross-compilation.
From: Christopher Baines <[email-masked]>
To: Christopher Baines <[email-masked]>
Cc: [email-masked]
Date: Sun, 16 Oct 2022 19:32:35 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Christopher Baines <[email-masked]> writes:

> * gnu/packages/comression.scm (lziprecover)[arguments]: Set CXX when cross
> compiling.
> ---
>  gnu/packages/compression.scm | 6 ++++++
>  1 file changed, 6 insertions(+)

Pushed to master as c3e103129d1fac8460e4e01e46749a0a72248ead.

Subject: [PATCH] gnu: lziprecover: Fix cross-compilation.
From: Christopher Baines <[email-masked]>
To: [email-masked]
Date: Thu, 13 Oct 2022 13:44:51 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/comression.scm (lziprecover)[arguments]: Set CXX when cross
compiling.
---
 gnu/packages/compression.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 684979018c..ba9f838130 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -653,6 +653,12 @@ (define-public lziprecover
                (base32
                 "0wmmyi03fv2lflsir5ldrsv04q57k3hmlqajzb1m3p86gwbh967j"))))
     (build-system gnu-build-system)
+    (arguments
+     ;; The configure script doesn't recognise the --build or --host
+     ;; arguments, so set CXX here
+     `(,@(if (%current-target-system)
+             `(#:make-flags (list ,(string-append "CXX=" (cxx-for-target))))
+             '())))
     (home-page "https://www.nongnu.org/lzip/lziprecover.html")
     (synopsis "Recover and decompress data from damaged lzip files")
     (description
-- 
2.37.3