From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kPmfEg/MQmJJgwEAgWs5BA (envelope-from ) for ; Tue, 29 Mar 2022 11:06:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GPGMDw/MQmKYYQAAauVa8A (envelope-from ) for ; Tue, 29 Mar 2022 11:06:23 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 03257F1CF for ; Tue, 29 Mar 2022 11:06:23 +0200 (CEST) Received: from localhost ([::1]:41638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nZ7ny-0003ls-5t for larch@yhetil.org; Tue, 29 Mar 2022 05:06:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nZ7ne-0003gu-P7 for guix-patches@gnu.org; Tue, 29 Mar 2022 05:06:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nZ7ne-0003oL-8r for guix-patches@gnu.org; Tue, 29 Mar 2022 05:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nZ7ne-0006gf-3g for guix-patches@gnu.org; Tue, 29 Mar 2022 05:06:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54618] [PATCH] gnu: lbzip2: Fix cross-compilation. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Mar 2022 09:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54618 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler , Brian Kubisiak , 54618@debbugs.gnu.org Received: via spool by 54618-submit@debbugs.gnu.org id=B54618.164854474425670 (code B ref 54618); Tue, 29 Mar 2022 09:06:02 +0000 Received: (at 54618) by debbugs.gnu.org; 29 Mar 2022 09:05:44 +0000 Received: from localhost ([127.0.0.1]:59796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ7nM-0006fx-6u for submit@debbugs.gnu.org; Tue, 29 Mar 2022 05:05:44 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:57684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nZ7nK-0006fm-AD for 54618@debbugs.gnu.org; Tue, 29 Mar 2022 05:05:42 -0400 Received: from ptr-bvsjgyhxw7psv60dyze.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:3c5f:2eff:feb0:ba5a]) by andre.telenet-ops.be with bizsmtp id C95g2700P4UW6Th0195gMb; Tue, 29 Mar 2022 11:05:40 +0200 Message-ID: <38042d6a6141d9ba6b0394ef457a086c15015986.camel@telenet.be> From: Maxime Devos Date: Tue, 29 Mar 2022 11:05:40 +0200 In-Reply-To: References: <20220329013641.gfixewbrmu2qkz34@peregrine> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-71nTnnCOuxLi2n0Cnrcy" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1648544740; bh=3wSHhVoZOqZN+n4+FHIqrR24+2uw5Z0u9jSPEWVSFSs=; h=Subject:From:To:Date:In-Reply-To:References; b=AuJUf7bzkPxtsUUr3LtqkKxeX405iNvEfOEH652ujwYOIBgfYdO6YgqAj8npuTsCj 6eFCL2latRCpTwktCwDlAanI4tYXKyUr8njnUCh7AsAdeeKztzfUW+DlQ/Da+bxUXD bIMjwXuVOpWAMyTuncRb3cUFBQ4QBtMN+WAboUv/BYRLbmAfs/H7MoEwcW1i2vCLSl ncPbSPWs2XacvkPxqBb9pgd1Wmznj9jfC5oThUBborpUwCu7HeYgZFY3b7+KdHDE/v R5KU5H9OHl/HP6feE9TnDqxUtveZkqIgOTA7pwmIAPKeSOosMsmUyCWOXOvygt04CL gRDSRJig3is3Q== 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1648544783; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=3wSHhVoZOqZN+n4+FHIqrR24+2uw5Z0u9jSPEWVSFSs=; b=dmoel6Bjr94qmH6VfC/Y72TFrn5a3s18nylHeZu+bJsdwIxqIx190rNSezAvjgdZ20qNGI 3bAv/GKvYUlsdrQL12s1y7udj209edsQFPvPIto1Eo25pxdsCNzlleTucD+UiwfCx6s29l Uk+BFwAkSOnm/cMXWB8EwOv2eEkSRtRvsKDkdEsstFm8Z/dn+1zkvS/ixZTEs7X6SGu/cl csiAM98ob7/Hsy5POoiya5b8ciI0pozPh33ifuyN1VmiK4L/CFDg4/g4Ui0kXJVLT2jsU7 0ZyYbO5QTz2eCgThIXY1l6l2ENa8ugDW3NRmTsNEWJqequWqgeu6ISAoatcTtw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648544783; a=rsa-sha256; cv=none; b=CCJKIiI33lxsRwDGEwO+q29AiZT8IeHzJ7fP7xX/KxYX00YFUP9VHhHLdFbCDwC2mHxwof ozhlfSQ3PabunC5u0pV34VJITSM1AK54TwAM9A8xZN86cx2H934TcZDUbpCzxkLf+f/r9a foVaCkEHRHkHlpe8CPy8Tq0m5ylf8Y4086T1zUbL0CXo4stupUVPGzkJhhQoJqlEtty6wx f98FZhsfUiNjn2jDYZk736gWUrPXHxafeYajJVfjoyeLA0A7WHfD94LcCKPI5Jd+C0DlEi ImJ9iYgXi+9/EqA84cqylvwmonrqyWnMcGVyaZn8lMzxBLyLyLcCKscqy5KSKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=AuJUf7bz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.03 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=AuJUf7bz; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 03257F1CF X-Spam-Score: 3.03 X-Migadu-Scanner: scn0.migadu.com X-TUID: 6jxPg0krBG6K --=-71nTnnCOuxLi2n0Cnrcy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Liliana Marie Prikler schreef op di 29-03-2022 om 08:07 [+0200]: > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= (lambda* (#:key inputs native-inputs #:allow-other- > keys) > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 (let ((gnulib (assoc-ref (or native-inputs inputs) > "gnulib"))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (copy-recursively gnulib "lib") > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (setenv "PATH" (string-append "lib:" (getenv > "PATH"))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 #t))) Note that referring to inputs by name is discouraged. In this case, the gnulib origin should be inlined (see ppsspp or gnome-recipes for examples on how that is done).=C2=A0 I don't think there is a native vs. non-native distinction for origins, but if there is, simply use #+ instead of #$. I would go with (let ((gnulib (dirname (search-input-file (or native-inputs inputs) "gnul= ib-tool.py")))) [...]). That way, no input labels are used yet package transformations are still possible: (package (inherit lbzip2) (native-inputs [some inputs with a different gn= ulib])) Greetings, Maxime. --=-71nTnnCOuxLi2n0Cnrcy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYkLL5BccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7r/fAQDeGTw7MHMyPsN0CAgL8BhDeuSO ZfSzMVUdOgUABtIuoQEAiqI69hnfZHW02sZEecwkTQhr4qETmSJSpEExTsn2agg= =2nfy -----END PGP SIGNATURE----- --=-71nTnnCOuxLi2n0Cnrcy--