From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8LWbImehQGI9vAAAgWs5BA (envelope-from ) for ; Sun, 27 Mar 2022 19:39:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gFriH2ehQGJGFgAA9RJhRA (envelope-from ) for ; Sun, 27 Mar 2022 19:39:51 +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 DEBC3EF8B for ; Sun, 27 Mar 2022 19:39:50 +0200 (CEST) Received: from localhost ([::1]:45548 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYWrl-0007hs-4q for larch@yhetil.org; Sun, 27 Mar 2022 13:39:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44804) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYWr0-0007hb-JE for guix-patches@gnu.org; Sun, 27 Mar 2022 13:39:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYWr0-00054S-1Z for guix-patches@gnu.org; Sun, 27 Mar 2022 13:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nYWqz-0006tJ-TR for guix-patches@gnu.org; Sun, 27 Mar 2022 13:39:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54595] [PATCH 2/2] gnu: libfido2: Fix cross-compilation. Resent-From: Pierre Langlois Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 27 Mar 2022 17:39: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: Maxime Devos Cc: Pierre Langlois , =?UTF-8?Q?S=C3=A9bastien?= Lerique , 54595@debbugs.gnu.org Received: via spool by 54595-submit@debbugs.gnu.org id=B54595.164840273626478 (code B ref 54595); Sun, 27 Mar 2022 17:39:01 +0000 Received: (at 54595) by debbugs.gnu.org; 27 Mar 2022 17:38:56 +0000 Received: from localhost ([127.0.0.1]:56504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYWqu-0006sz-Ho for submit@debbugs.gnu.org; Sun, 27 Mar 2022 13:38:56 -0400 Received: from mout.gmx.net ([212.227.15.15]:51633) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYWqs-0006sn-DZ for 54595@debbugs.gnu.org; Sun, 27 Mar 2022 13:38:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648402726; bh=DP+kAfP/VjwIDHcr8LtPZomn3Z7taLhVYD8JkQ19yiE=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=aoASLsZDpawD6oNEBwuYLhApm0UioZAJwjkrIC0iLirn9tCK31CCRo6EkPbp0ygor hGcRw+Gg3nzj6br9nO4EABIxjweS01+qYPNISlPEVatMNDncYXq3OvWRr4AtiPHXyT C1LkzniXsyRySXoh2eXAMoU67ZNnOM/h5wN/vwrs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MgeoI-1oFJrF3rrA-00h5Hn; Sun, 27 Mar 2022 19:38:46 +0200 References: <20220327122956.524901-1-sl@eauchat.org> <20220327122956.524901-2-sl@eauchat.org> <871qyn7afq.fsf@gmx.com> <1fd85fd1bd5389fbe4f14325e22fac8705b9807b.camel@telenet.be> User-agent: mu4e 1.6.10; emacs 27.2 From: Pierre Langlois Date: Sun, 27 Mar 2022 18:27:48 +0100 In-reply-to: <1fd85fd1bd5389fbe4f14325e22fac8705b9807b.camel@telenet.be> Message-ID: <87y20v47of.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:+XUliW6rnvnjic/gdnha/hCs1J30MWcW9PI5fAp8BJF03NQJEtN Gaj37do0Ls9qUAhtsBAIbFULTGaM9ODguf6osImnrGeKPel+Wz6vFppiGccVhJqkguPx+WR Iht1HaeCgWvDpjg2WLR9x4dL9/CVHyQiLq27EnVlKDw/b4xH8cPTREHPmQ/LoogshRYpEJj mwvk9VgZkBRVzGoucGmxQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:iPZAf0l6qus=:fhBh1rXRJuW31T6sRWOQ54 M+bRg/n+AK3gUw4d6w4BXX8Iu5NZ8bmK0mekuX53shUDs8AU2qVdhfaMo8rIDKBqIaDLML4IC zVUFU5E+Ub02qm/4us8hha4Gdhaml6vfu3TBZeMvFrdgSHuiGIsEsA7Gi6nwmhAyu3Nc644SD iiUVAhfmbkwlslNTK97h78y7xmAncQA6CzcxKDt3H/rAPqULIif3Ha6Xff8wN0RIA6RLSEQfm SJvTpd/IeuzM9W2AwSBKThtzqAzhYg9/qHqhRmAwTYoWzlQM0Q09i/vVwKvguGfwBeQugXrHf kr7EpJwKe4wDnFvX56FlZrJFYNKK2vJhRqYi3tCfayNr6MM402ydPipZnF8fvtWs+Gf3SUXRH 78khdpb3lG4Czv148mDAGUZWHL9W4Suy0t++jAK2ZSEv/pZx7EWL+m3LWTifDkO+uwbP8lGxr cg5dSIuzqw0Kn1vqmsbj8tmkms4/k/zzK2T8WUSkBpM+aGIK1oNXtIubvDVcPt71q9g2u1WR2 eCgEyqFxwqlYDnb1dwX05M+qrKrHhnRWDL76GTbmEV7mOiVAGUozjWugxuFIude/IKadmu26Z /69GTTvmC2nhEjun+P2VDMxfs+7l5qzCSXwf/HJSGQkEXnAe0G4CtYZao/HAddOyWIH9QadRg PmVuDLqbTXoK8hA4fGhBmNoHBY1JO1PUhsiJjkHiKJAUReUMVNXdzy0hToQrzOyaVIMxzTzgB jjijjlLEJFCotGlUtmpjcAcqWdgF/YyIT80Qm1U5cUoKsJlVsm5M9KuG846brNWDjxf9NQpp0 USHcEuezqlwXRmGawvH8jXrO/6gS4rssUYgG+1KpV4yuCX9rdqx67UdePuJl1BChPQtf0r04I EaB7kiCmU7Lt4cv296MhrtrY66hkjFpaPXPkGvkOvMRqB7LCps+DilpZ67p6zygRDOOwSQFJW SygSYleRjOSXOPTZNT5G8Bgqm2Gh9Qh1mvKBWrvPvL3xEG8XBQEjyjlx1rtF52h4slVnRRDaQ 9mqu7kmqdv8wwZHW6F2581kUwz6TdRRxRWLjfOufFESFvjimKalt2k74Lwj90l32ynQB8/RyT 8JT4SKFpulpDoE= 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=1648402791; 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=LEJvGtZTp2HIElgMzvtOuUxs25GCIZyEHiCMgGJlnls=; b=smgDE8/uBrhf+1+Ho/bsDIK4JoA02c0erdnYyho0aA5ngjerxrmNQ/NY3cg2mcvYX1pzYf w8UQWmGIJN5hcwOXLN5GCyKhN0LzTEqS7Nl9Bv0Jyp5kaM99ma/K//+RkGgoVODQRPF5HD hgmBuFzJtQg0e94CaQtrrTgpaR59PACSEosWRom868MCdnLvoQXsok0+Ehxo+lpYYCG4qc hJF80Of9X04gk8dTRKiZ5AT6HEC/ymGrFwtRSvjYF255Zg+uohTuI7otfzTidq5WgLBKer 1QFL7EUkhSUwspwB71xIt0ypxAoCvuJVclVKPUEDVliWPCLtIRNM1epNNGIaHw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648402791; a=rsa-sha256; cv=none; b=hNzGwEGsRnRGDPkoppYEt6xMXIu2nzAF+WT8Lw61EFMTx9BhN/S/8OiZIURCrDddCISNUK 8Wf5Kr2eqT6++PCaFLdAF3U8ClQQriIfONChG3blsGvVBNDDGDMavJQjp2NvXHNrV4L8Nn MxQAkCTGKrnUs8RD2CiMVqu3Kq/Iu6zrVpkft/JxM3uv62f8JVy3ri4SKYEkstG6pvJcSU roplU30vNzV2GV7VEAn3qlZ8b6Of2nKNGl9iF9TMMPvinMvHp7n7EgIYbH5n0gM1kDYxuh sloD0ywTf+cxr7kASps433yPjsnCtTiaRcGaWxmLcalje9etBJDUCbv9QzCFAA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=aoASLsZD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (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: 2.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=aoASLsZD; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmx.com (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: DEBC3EF8B X-Spam-Score: 2.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: HzagquNFbh61 --=-=-= Content-Type: text/plain Maxime Devos writes: > [[PGP Signed Part:Undecided]] > 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 > ... Ooooh I do have qemu emulation enabled, that must be it, thanks! I'll need to be careful about that, seems too easy to make a mistake. > > 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? Yeah, if we have this pattern often it sounds like a good idea. However, better yet maybe could be to make the cmake build-system handle it automagically. I see `PKG_CONFIG_EXECUTABLE' is part of cmake itself so that might be OK? https://cmake.org/cmake/help/latest/module/FindPkgConfig.html > > 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) "x86_64-linux-gnu")) (@ (gnu packages pkg-config) pkg-config))' --target=aarch64-linux-gnu Ha! That's pretty cool :-). Thanks, Pierre --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmJAoSAYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UFssIAKK6UVS3ChzllfugTqSy3G4Q Gfi7BFHnsD6YXNVBLTap51lYrisQHKGE7ROIhf7fUDga3wavvkXmGuP8nYW2Y6Hl skdY9GeYbpPnWRuag2XyzWG4K5MyKgYpDCTZi0D73ryCiVnd/Q1nwuFVdD8nV12a dQiDLDo6YGJENQPl7bxSOD3/cyP6XHycMa3YnNTSy6e0Gj8mm4cbvv04iz1MMyAl iY0PULiosDq6mbQBjMPJ0Y2qYJHJMV6WPXbMCPYVHWYjBVN/q8oBGZpLV/zYpoBt 2i6RAmhUCEDbvq5pZGHD3O1VmXj5SZ3GFQet3nBJ9NzyCGwKGTEnRdEQ8Y/jjzs= =QbDb -----END PGP SIGNATURE----- --=-=-=--