GNU bug report logs - #58491
[PATCH] gnu: lzip: Fix cross-compilation.

Previous Next

Package: guix-patches;

Reported by: Christopher Baines <mail <at> cbaines.net>

Date: Thu, 13 Oct 2022 12:39:02 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

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: Christopher Baines <mail <at> cbaines.net>
Subject: bug#58491: closed (Re: [bug#58491] [PATCH] gnu: lzip: Fix
 cross-compilation.)
Date: Sun, 16 Oct 2022 18:33:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#58491: [PATCH] gnu: lzip: 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 58491 <at> debbugs.gnu.org.

-- 
58491: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58491
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Christopher Baines <mail <at> cbaines.net>
To: Christopher Baines <mail <at> cbaines.net>
Cc: 58491-done <at> debbugs.gnu.org
Subject: Re: [bug#58491] [PATCH] gnu: lzip: Fix cross-compilation.
Date: Sun, 16 Oct 2022 19:31:45 +0100
[Message part 3 (text/plain, inline)]
Christopher Baines <mail <at> cbaines.net> writes:

> Previously the package would build, but the binaries would be build for the
> host system, rather than the target.
>
> * gnu/packages/compression.scm (lzip)[arguments]: Set CXX when cross
> compiling.
> ---
>  gnu/packages/compression.scm | 6 ++++++
>  1 file changed, 6 insertions(+)

Pushed to master as 69bbb720db7a77b4a8cd2973fb8e9a794b3213d3.
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: Christopher Baines <mail <at> cbaines.net>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: lzip: Fix cross-compilation.
Date: Thu, 13 Oct 2022 13:37:46 +0100
Previously the package would build, but the binaries would be build for the
host system, rather than the target.

* gnu/packages/compression.scm (lzip)[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..dd0caa10ab 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -632,6 +632,12 @@ (define-public lzip
               (base32
                "0j59hx72258334rmkwn57ahr6s69nlrx0a5ip1jw2fbiwr12sd63"))))
     (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/lzip.html")
     (synopsis "Lossless data compressor based on the LZMA algorithm")
     (description
-- 
2.37.3




This bug report was last modified 2 years and 216 days ago.

Previous Next


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