From patchwork Thu Oct 13 12:37:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 43376 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EA39327BBEA; Thu, 13 Oct 2022 14:22:37 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A653E27BBE9 for ; Thu, 13 Oct 2022 14:22:37 +0100 (BST) Received: from localhost ([::1]:51888 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oiyAW-0004QD-Mt for patchwork@mira.cbaines.net; Thu, 13 Oct 2022 09:22:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oixUO-0001vG-9v for guix-patches@gnu.org; Thu, 13 Oct 2022 08:39:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60794) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oixUM-0004PK-Sk for guix-patches@gnu.org; Thu, 13 Oct 2022 08:39:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oixUM-0003NY-EN for guix-patches@gnu.org; Thu, 13 Oct 2022 08:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58491] [PATCH] gnu: lzip: Fix cross-compilation. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Oct 2022 12:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58491 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58491@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166566473312971 (code B ref -1); Thu, 13 Oct 2022 12:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Oct 2022 12:38:53 +0000 Received: from localhost ([127.0.0.1]:59872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oixUC-0003N8-TM for submit@debbugs.gnu.org; Thu, 13 Oct 2022 08:38:53 -0400 Received: from lists.gnu.org ([209.51.188.17]:49590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oixUB-0003N1-2I for submit@debbugs.gnu.org; Thu, 13 Oct 2022 08:38:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oixTH-0001df-02 for guix-patches@gnu.org; Thu, 13 Oct 2022 08:38:22 -0400 Received: from mira.cbaines.net ([212.71.252.8]:36758) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oixTC-000484-2O for guix-patches@gnu.org; Thu, 13 Oct 2022 08:37:54 -0400 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:fc93:27fb:8412:c8b7]) by mira.cbaines.net (Postfix) with ESMTPSA id 9411327BBE9 for ; Thu, 13 Oct 2022 13:37:47 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id ae808a2e for ; Thu, 13 Oct 2022 12:37:46 +0000 (UTC) From: Christopher Baines Date: Thu, 13 Oct 2022 13:37:46 +0100 Message-Id: <20221013123746.23004-1-mail@cbaines.net> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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