From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 gKCKCVqGQGKiNQAAgWs5BA (envelope-from ) for ; Sun, 27 Mar 2022 17:44:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +IiRAVqGQGIGLwEAG6o9tA (envelope-from ) for ; Sun, 27 Mar 2022 17:44:26 +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 A5F0B31991 for ; Sun, 27 Mar 2022 17:44:25 +0200 (CEST) Received: from localhost ([::1]:44128 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYV44-0007Do-Qc for larch@yhetil.org; Sun, 27 Mar 2022 11:44:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32988) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYV3i-0007Db-At for guix-patches@gnu.org; Sun, 27 Mar 2022 11:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34301) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYV3i-0006yp-1M for guix-patches@gnu.org; Sun, 27 Mar 2022 11:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nYV3h-0003xs-PA for guix-patches@gnu.org; Sun, 27 Mar 2022 11:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54595] [PATCH 2/2] gnu: libfido2: Fix cross-compilation. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Mar 2022 15:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54595 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Pierre Langlois Cc: =?UTF-8?Q?S=C3=A9bastien?= Lerique , 54595@debbugs.gnu.org Received: via spool by 54595-submit@debbugs.gnu.org id=B54595.164839582915214 (code B ref 54595); Sun, 27 Mar 2022 15:44:01 +0000 Received: (at 54595) by debbugs.gnu.org; 27 Mar 2022 15:43:49 +0000 Received: from localhost ([127.0.0.1]:56431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYV3U-0003xK-PE for submit@debbugs.gnu.org; Sun, 27 Mar 2022 11:43:48 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:34280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYV3S-0003x9-RO for 54595@debbugs.gnu.org; Sun, 27 Mar 2022 11:43:47 -0400 Received: from [172.20.10.5] ([188.188.29.207]) by andre.telenet-ops.be with bizsmtp id BTjf270094U7BGC01TjkqL; Sun, 27 Mar 2022 17:43:45 +0200 Message-ID: <1fd85fd1bd5389fbe4f14325e22fac8705b9807b.camel@telenet.be> From: Maxime Devos Date: Sun, 27 Mar 2022 17:43:35 +0200 In-Reply-To: <871qyn7afq.fsf@gmx.com> References: <20220327122956.524901-1-sl@eauchat.org> <20220327122956.524901-2-sl@eauchat.org> <871qyn7afq.fsf@gmx.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-HL5ekZeA50uD9qAg5b9r" 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=1648395825; bh=EMPRxU5fJie8CE2dFMxm6CFSsUy9xaszDULSB97ZUKk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Aa0feh1gRKy5CyE20JZoxGsiZW/5sVSU345LbnjLDMOr2iYpyrHWYJ4Vbf2YKXegf cg7q8jz2HAyhDQUuk6p5s3D/GciAenHZ0C5Q7429MOTIZ1I8jWrcnR59l2YXHwI6hi n0ewo5GfHpbvXZ5vcj8eTALsT62MZ+fIONgyQ15CiCN9UZAbsUcxUs3a9O7v7ISNAg yUeI/lWsluazFdC8qUHDuZVlVVta47iyN018zuPKNCKWgzZz2mqqicxFhhzg26BbMi cISXUB6s92fDxVJFInTE2sgfYwchKRQJBMuHPbtCaGh1+k7a6tNyAgbvozykjZQiUt b2ZR7zA/HkXFQ== 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=1648395865; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=EMPRxU5fJie8CE2dFMxm6CFSsUy9xaszDULSB97ZUKk=; b=EU1y/UgIy8aSU+pIvkhSYHqSnvdPziVcCBREhvbodR+slBTguuI+FDYnhfivAfFtyvdBon 2Qnt5nxo4vSa8f4Ovjv4CLWcenNqFBeY9XDBlwmF43rG1KVY5h/7lnizppiDomMOF3VtcZ D95YGEWrxoX/yhIf/8u5q4nTDkqfT5/lQU2lT7dQyBMbMmK3zIKD/AaHl8CTLJFSAcxJlz 9h6ac+QDJcc08T+jWzdzHYCRbDTwSOw7ygeq0XOCk9DnVQZ+9MQ3ut9esZN47qBfuRD0mv 3aTq3lz6F8e72K5itGLhku1tvqfWwCL547mwGqF0j8Lep/rC9HZsWY+SOz2Paw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648395865; a=rsa-sha256; cv=none; b=HLanz9nfR0W+xWsxqEmc63eIiZCykyBD1w2ynVq1otemAgiOJWtfB1pgX7CcZXxb/yuT/K Jwy+4YIDJwb5rSqNvweBTNiTMEh4JtQcGF5HoFU66hOuj1JryWq/7QF7f7vdorSHd4VZJT GUWu8F3xtgEWBfStEp7cgtAWWUgYtfYLokcAlEUkq76qKtzsQzZDKBNT3RYATH5DemHMS0 OI/QCMH99jKcDenYWhHvcvnZeBiP2o1yvcPK4DblwN6FHjWzzLZH2l67fCo3Wvwqc/mx9i iNIFohXafX6QQ95VTFCpBAJDuatqPsTmue0dAoevCYwIdLNoOHo3swLGBk1Y6Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Aa0feh1g; 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.73 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=Aa0feh1g; 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: A5F0B31991 X-Spam-Score: 3.73 X-Migadu-Scanner: scn1.migadu.com X-TUID: de2ygoCV3ww4 --=-HL5ekZeA50uD9qAg5b9r Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Pierre Langlois schreef op zo 27-03-2022 om 15:04 [+0100]: > I'm also not entirely sure if it's > #+pkg-config or #$pkg-config, both seem to work #+pkg-config, given that it is a thing that needs to be run during compilation. I'm wondering, do you have transparant QEMU emulation enabled? If so, both seeming to work is expected since QEMU will emulate the cross-compiled cross-compiling (IIUC a canadian cross, in GCC terminology) pkg-config. If not, I would expect some kind of error ... Or, to allow for package transformations: #+(file-append (this-package-native-input (pkg-config-for-target)) "/bin/" (pkg-config-for-target)) though maybe package transformations should just transform the G-exp as well, dunno. ('file-append' is not strictly required here.) Maybe we can have a macro (pkg-config-binary) that expands to that thing, and use it in other packages? Possibly interesting or irrelevant: the following will produce an x86_64-linux-gnu-pkg-config that can be run on a aarch64-linux-gnu computer to find libraries for x86_64-linux-gnu. $ guix build -e '(parameterize (((@ (guix utils) %current-target-system) "x= 86_64-linux-gnu")) (@ (gnu packages pkg-config) pkg-config))' --target=3Daa= rch64-linux-gnu Greetings, Maxime. --=-HL5ekZeA50uD9qAg5b9r 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+4iGRcl7gUCYkCGJxccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7oCYAP0bfhKPd1B0EcpeDzbFiRJVx/Nh TDPHSqJ7xEJC72dbXQEAqfyK3P6TRDTQuDnr33GVzeW//Mcfb+JyJ87vz54nzws= =rL9K -----END PGP SIGNATURE----- --=-HL5ekZeA50uD9qAg5b9r--