From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +ErJKvpwQGJ5VAEAgWs5BA (envelope-from ) for ; Sun, 27 Mar 2022 16:13:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0OxMKPpwQGJn9QAA9RJhRA (envelope-from ) for ; Sun, 27 Mar 2022 16:13:14 +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 31B581056F for ; Sun, 27 Mar 2022 16:13:13 +0200 (CEST) Received: from localhost ([::1]:58960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nYTdo-0007hP-7L for larch@yhetil.org; Sun, 27 Mar 2022 10:13:12 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYTcg-0007fF-5u for guix-patches@gnu.org; Sun, 27 Mar 2022 10:12:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34245) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nYTcf-0002vS-Re for guix-patches@gnu.org; Sun, 27 Mar 2022 10:12:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nYTcf-0001hr-N3 for guix-patches@gnu.org; Sun, 27 Mar 2022 10:12: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 14:12: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: sl@eauchat.org, 54595@debbugs.gnu.org X-Debbugs-Original-Cc: =?UTF-8?Q?S=C3=A9bastien?= Lerique , 54595@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16483902846511 (code B ref -1); Sun, 27 Mar 2022 14:12:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Mar 2022 14:11:24 +0000 Received: from localhost ([127.0.0.1]:56375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYTc3-0001gx-QB for submit@debbugs.gnu.org; Sun, 27 Mar 2022 10:11:24 -0400 Received: from lists.gnu.org ([209.51.188.17]:56136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nYTc2-0001gn-5d for submit@debbugs.gnu.org; Sun, 27 Mar 2022 10:11:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYTc0-00077m-QH for guix-patches@gnu.org; Sun, 27 Mar 2022 10:11:22 -0400 Received: from mout.gmx.net ([212.227.17.21]:53773) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nYTbw-0002tK-Sy for guix-patches@gnu.org; Sun, 27 Mar 2022 10:11:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648390255; bh=yjNrVUzVTLT94okT/3J2unh6oUXERN3nxjZKiiNuPZc=; h=X-UI-Sender-Class:References:From:To:Cc:Subject:Date:In-reply-to; b=XGyWU9kxdwjdLkIM8zh0pIXcoUOpJ+2mmogepCkB3eD87x95o9TeIcvkVuuQIyS// XD0BaD+40G00gvjxUHhLc6yeh3RvNw9DVp/YVxAoNaqxCBsKPL/gZflDLXvIQFEOJv Ja7wXEjGv5ctFxI7fALRcquzXt+bJAPl7NQKT08U= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from labiere ([82.69.64.142]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MbAgq-1oA1LT0B9k-00bdla; Sun, 27 Mar 2022 16:10:55 +0200 References: <20220327122956.524901-1-sl@eauchat.org> <20220327122956.524901-2-sl@eauchat.org> User-agent: mu4e 1.6.10; emacs 27.2 From: Pierre Langlois Date: Sun, 27 Mar 2022 15:04:09 +0100 In-reply-to: Message-ID: <871qyn7afq.fsf@gmx.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Provags-ID: V03:K1:ATjWodu7ZIWJf6LwIMvuWtF/tW1UULxXYPaUwO8wiF4ec58LAE/ vbmKQW4mUJ64pon6lki5FMPvaG80gUPsuUnyqKVM6V2oMNkRPjV3o2RMFE8N9nOvdYgtWtj FmatnNM6EQ7Mhm6SidkIWo9CIie/Yb2wVbwMuF2Xd9cMga3MOw4le/P95BrFvWGz134J/5I 16iuI9oZzwdHtoxsyMWuA== X-UI-Out-Filterresults: notjunk:1;V03:K0:+5JdiFbM3wA=:34SSsrRxPEqfmPbmHUitsC Bt50HE+MUphFM1ZGepS5r1fOLvOo1QUqCJMBZwMN5AJ6un3zOK+fOO8qr8WI0Mh5XZOEF04DJ etGBnOV8fMFRP20g6ij6ScJ/hn3QDvfLIQi6olJewW07J2oKOX5YYILVvhAsT5fM/eeIz/oHB 3W/Ersgx7ZpmPl1X8wcWzI9mLx7UUhX7LJ+2mZmjmJqfYQ+rX4AWXNZi0rT5WWZ6crbY8giOQ DEAk99mXWyzpiZuLUpfJrUtj83R6fFkInxVZq/oRhp0t4UqgBvvCDDjpSCufztm+3yDp9KiZo 7q+6NJgvV92RS+gCU7Ldx/Y+xlY2oVfHRv1R7eiN8F/05HMuAb0pUsUj1TxVvT74lR79KNuCh 9rut7Ca05NWVdHJSfCSS2MCZ9rE84o9lnmdxgwWcGka23fcEzLgiGjpChyP5Eidv8Wg/hwU7m pPYIgUPIlQe+yCPeMushIUT4MLhs8YpD/Mio+7Ncpud8bNYsNWINpfe1/7YbFDxz/u9FdgCq4 H5COnCzKGHbJDyLUiTVJZNj/Dw4flvzl0wpQ1tzJ+x+7D5AYbc4o8R+bWYgD6DjVjwoMy95q8 0bxxTqWXw/Ybnf8aGeR/MbTUw0jSx/rr6NbbogcbFmeDbV3Tb3eFk9OuJ9vePJoYs/4XfTkiu 30uHFqQcw4kU3pzszWeUQW/Z/0Gke8qbRRXzh4ashs2XSnHlJ9XqabUPrpWsC9f1kCAmKSXWm CnVl9ux+02Kb/veGCNpNTAaJeg2NdNmqFTAufHfh4sq8aQKOlM+C7EtiDINiyBQPr41mGkdT8 nzBfW+tb4tz9EcFV6Wq0qT5jGEvisWttYtsUXDtNz008O3zbfgQthibs0y1gTVfJgXFAbmefG mFMKcaqhYSVb6SlaC+UbS69BlhdfEHiG0vOTtE+TAQZo/rIHrEgbnzqY7qBW2oU3KM9HgZEkb NxWKdjlzPrAyzxjoONcqCO5CQ/Y+05EDdMjaQAK7QvZ22alRnf/Uf9GtTo/rBdzZlC5OJME1h lUo7l5Rc/18hEQjzzIgKiWUlLmGSbN58YtneA1kXeVaMUOP1zFM2D9Qner4rPp+bV84ilyMms 5/f1nGYbVyJLcc= Received-SPF: pass client-ip=212.227.17.21; envelope-from=pierre.langlois@gmx.com; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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+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=1648390393; 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=FbfaiY1CcXVjwUvGaK5A/YMV4uabHEpe7Oc3b5eHF/U=; b=FQmJHya4PtL4oqXBm5sl382WR+SepvhxeP3GRGZH0wUFipvxnPEMrTAagCqEtW8jJ6aXHv aqW04anbOm6ZJNhfMR0EPd80TTnDgcsCEsgcHvB1sodzOtS38PBwhz/3vRm79B5Qo0Eyum f6CJqRRFZiu3GS3E9of1X5kiv9OnS6fExYg9P8mJRj7DBO0nAHBMKkowZCft6OHc0REfCQ NmnHKR+HxG/AJqrub9/Y1OC+CFg1OzYz8cKv3Y1pfOtFSIytrASdICkEzQ10mZIquzcCsS ec/u8jXwDcPlPsct31pewaKHkWl7gjpHwcuqMBmx2ftqK+h+SH7kUEsI0yK9rQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1648390393; a=rsa-sha256; cv=none; b=kLaCs+NA9Rwy8T+akOB2WqWzu1yOL2VvV9EhQK6H43mdyIGthTBgq79wi+Zyn7KQm+Vjm+ nDcmzvpciJA4Z6JYNYUppq6+jZrV1+VKdNPNCeMM0F9kONT17fhQ6yueCB5GOWRyiY3QnI c5E3n/C0QoGkoaV5EAS8ZxQUmMiqsfX9Jrequiq/pfA0A8z2o0rhYk1xuUxUV5dpAIG2ZW 6ZKO9EYL7ryO1FLBpFah5CVtzL+b9Xs7rOChsW/9TmBUrQ51Di7SK/LRM0J9H+LRO58uCo +OgM7gSV1mnlzv8kURanVafnitUYDFkS4wRGx70GG95+BUAiVJWk5WZkJq5Ybw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=XGyWU9kx; 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: 3.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmx.net header.s=badeba3b8450 header.b=XGyWU9kx; 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: 31B581056F X-Spam-Score: 3.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: +M6QdV130V63 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, Maxime Devos writes: > [[PGP Signed Part:Undecided]] > S=C3=A9bastien Lerique schreef op zo 27-03-2022 om 21:29 [+0900]: >> +=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=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=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ,(%current-tar= get-system) >> +=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=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=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=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "-pkg-config")= ))) > > This can be simplified with 'pkg-config-for-target': > > #:configure-flags > (list (string-append "-DPKG_CONFIG_EXECUTABLE=3D" > (search-input-file %build-inputs > (string-append "/bin/" ,(pkg-co= nfig-for-target))))) For my own benefit trying to get better at writing gexps, I was wondering how to write in order to remove the %build-inputs reference. I came up with the following: =2D-8<---------------cut here---------------start------------->8--- (arguments (list #:configure-flags #~(list #$@(if (%current-target-system) (list #~(string-append "-DPKG_CONFIG_EXECUTABLE=3D" #+pkg-config "/bin/" #$(pkg-config-for-target))) '())) #:phases #~(modify-phases %standard-phases ;; regress tests enabled only for debug builds (delete 'check)))) =2D-8<---------------cut here---------------end--------------->8--- Would this a the better way to do this? It looks a bit complex to me so I wonder if there's a simpler way. I'm also not entirely sure if it's #+pkg-config or #$pkg-config, both seem to work, however I thought we should be using #+ for native inputs and #$ for regular inputs. Thanks, Pierre --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFMBAEBCgA2FiEEctU9gYy29KFyWDdMqPyeRH9PfVQFAmJAcGkYHHBpZXJyZS5s YW5nbG9pc0BnbXguY29tAAoJEKj8nkR/T31UnR0H/jFxhsl/8U8tWQrhRUhMcku1 1hAadeXvXbCXXFJmVH7qYPhe65bty0HYUHAVs/TtC8t3beV6bCNH4qe9TnfeHv3L 3kgifOpv2mPck0P/dV64xlKHExIWTKk7Oslqc4pB9/WlyllpWwWekgzc/IyFRZU4 MSVuGTaZOfxg7i0ruOwh7CEzprkduTgEC1RP1n7yeRsrLe2p5Dc8TsmFBITNzfLY O9KHOXm+Sjiv3ujswJoUtJXyBq05UvtdehOTirEyDsIPMpZ/DhsttqJa/U+WXjSu 6VNn+VKdRU/HGaLJ1v14qoYbdFZmikZsby8fT19/4+uE0z4OM+iy+Uu109ZBw8w= =GH8F -----END PGP SIGNATURE----- --=-=-=--