From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IFUdNjJc8GCqTQAAgWs5BA (envelope-from ) for ; Thu, 15 Jul 2021 18:02:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id yHj4LzJc8GCbIgAA1q6Kng (envelope-from ) for ; Thu, 15 Jul 2021 16:02:58 +0000 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 59C5212074 for ; Thu, 15 Jul 2021 18:02:58 +0200 (CEST) Received: from localhost ([::1]:33994 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m43pB-0006ya-A3 for larch@yhetil.org; Thu, 15 Jul 2021 12:02:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m43nK-0002wU-MO for guix-patches@gnu.org; Thu, 15 Jul 2021 12:01:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m43nK-0008Rr-Bm for guix-patches@gnu.org; Thu, 15 Jul 2021 12:01:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m43nK-0000PI-Aq for guix-patches@gnu.org; Thu, 15 Jul 2021 12:01:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49565] [PATCH] gnu: glibc-headers-mesboot: Use %build-inputs in setenv phase Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Jul 2021 16:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49565 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Thiago Jung Bauermann , 49565@debbugs.gnu.org Received: via spool by 49565-submit@debbugs.gnu.org id=B49565.1626364851967 (code B ref 49565); Thu, 15 Jul 2021 16:01:02 +0000 Received: (at 49565) by debbugs.gnu.org; 15 Jul 2021 16:00:51 +0000 Received: from localhost ([127.0.0.1]:49509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m43n9-0000F8-58 for submit@debbugs.gnu.org; Thu, 15 Jul 2021 12:00:51 -0400 Received: from albert.telenet-ops.be ([195.130.137.90]:50106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m43n6-0000Bj-Ls for 49565@debbugs.gnu.org; Thu, 15 Jul 2021 12:00:50 -0400 Received: from butterfly.local ([213.119.236.63]) by albert.telenet-ops.be with bizsmtp id VU0m250021Nl63106U0mLW; Thu, 15 Jul 2021 18:00:47 +0200 Message-ID: From: Maxime Devos Date: Thu, 15 Jul 2021 18:00:41 +0200 In-Reply-To: <4491449.dtmGtMj3lj@popigai> References: <20210715004613.763843-1-bauermann@kolabnow.com> <0eac02a304064759c0bbe37f91ece93ebd6f0994.camel@telenet.be> <4491449.dtmGtMj3lj@popigai> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-UCW2E+KYnd8Exu2QhCmF" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1626364847; bh=c1MvVRxCk4RnZ7gdJKw8eAQ7rTjW/hFLVXwW0uLCum4=; h=Subject:From:To:Date:In-Reply-To:References; b=hxHp2/VLHH4HZ01AzZYsXsfIqoB6yXnrutHdR81/zpXES9x5RK0KfUoBLDTEj8ioM oxTCUUNFN7na57oVMBOzzTxBcrxBDIe6YAYRnfhCVpimwThgDJyW6bfbiRNF/MrBWl SPZXjtcIbpqqKPKciJG+i+gQk7l98pKsPcK3OJQD7+Vmd9TGTUkFHJP2cGmIoejjli bzWoUXL8LIb7ghosK59I3GFLB64FqVxhjAOOi+D9lpiP3l+TpuwQPlzH3wEPPevxXB NPzW3ZYmV5nM7gc9EIdo1MQ2P7yBop+fpArngQFRFjHljOOBB2ZoTkLulPUP27kCgu sTfzgNDKrVp5Q== 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626364978; 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=c1MvVRxCk4RnZ7gdJKw8eAQ7rTjW/hFLVXwW0uLCum4=; b=Oj2t3j0v/ff1b0SpveHdu3hXE7h4v3/WBFubqXWWw301LaoeLfjdzjsAT0bs1iMMNNHGBO kWh9LG+YE/6sg3ichZQMZdb0VWMz2H4Ih2CEq1iClnSm1wFzCzOSrIlB4uing0DiPhrgBw LXrE1n0A1/W0Kt/d80wc6sYdSVdB54H8efpa+g2g/0sUqjUk8r5OmToMqwlyAxOxn/fbVc 3sMbz0qYvk586kWcp7RUr+qFFQwVo1nMr0d5EKN1Xq7DjnqoO3wRAYjcxjbytoKYhxhhBJ W3ZjAM182OUNSfd7aD20IQ3NbPif88biw2qJQXJcpE0DI7nP+sek5hXCzhm6ig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626364978; a=rsa-sha256; cv=none; b=dffZBXNEmAm95Y5BCAYpXHJetDZwUqBQBWwermiNPzXLADWUa2Xwdl365rD02BipMEOZwI hCeNBr5Fe9PMtyBIUOZImmaE0veaQcCrmxRF/TnIpEt7S2piFXgZ05+bvLBzSfdN9erFDz eYDcIxkbOCrqosDdIgq4Sz5GIxyzzxxFnx791Dej+MjT5PtRzX9gRVoN6YKrGrPx7E4D9M GKZN24K1bbwHY7/IwReMzur90lv9AZ7PGiZO6FVId8l0TBt6oe63hgF6SXkgTl3qvjmVSx F9MVuXNfQ558WKLQuN8Ll4WoqT4rn7dlVHyLUrDrBDF1Bdi7KdKxnDiTCU1jFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="hxHp2/VL"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -3.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r21 header.b="hxHp2/VL"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 59C5212074 X-Spam-Score: -3.40 X-Migadu-Scanner: scn0.migadu.com X-TUID: npZ6vBk0AN/e --=-UCW2E+KYnd8Exu2QhCmF Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > [...] > > > As "libc" currently doesn't exist in 'inputs', that means "libc" > > is searched for in 'native-inputs', which is probably not what you want= , > > given that you are cross-compiling? >=20 > Are you saying that =E2=80=98%build-inputs=E2=80=99 is the union of =E2= =80=98inputs=E2=80=99 and =E2=80=98native- > inputs=E2=80=99? For my own education, do you know where that happens? >=20 > The manual and the doc string for =E2=80=98build-expression->derivation= =E2=80=99 only=20 > mention that it comes from =E2=80=98inputs=E2=80=99. I can send a patch t= o correct them. I thought "build-expression->derivation" doesn't define %build-inputs anymore, but apparently it does. However, note that, on core-updates at least, gnu-build and gnu-cross-build don't use build-expression->derivat= ion, instead they use gexp->derivation (see (guix build-system gnu)), and gexp->= derivation doesn't define %build-inputs. gexp->derivation doesn't define %build-inputs, but gnu-build and gnu-cross-= build do: ;; also see with-build-variables (define %build-host-inputs #+(input-tuples->gexp build-inputs)) (define %build-target-inputs (append #$(input-tuples->gexp host-inputs) #+(input-tuples->gexp target-inputs))) (define %build-inputs (append %build-host-inputs %build-target-inputs)) ;; ^ the unio native-inputs, inputs and implicit inputs! (define %outputs #$(outputs->gexp outputs)) I'm not familiar with 'host-inputs', 'build-inputs' and 'target-inputs'. They are a =E2=80=98bag=E2=80=99 thing, not a =E2=80=98package=E2=80=99 thi= ng. You'll have to look at 'lower' to see how native-inputs and inputs are mapped to host-inputs, build-inputs and target-inuts. Greetings, Maxime. --=-UCW2E+KYnd8Exu2QhCmF 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+4iGRcl7gUCYPBbqRccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hvBAP9bGudvok9wmQ//ODQIy7bnbfwJ 2GPYp6jXCJyWIjcc3gD8DWWLYx6lIGhwbC/JDg31++9IOiPY5ApGmfAMTfAH2g8= =aJWa -----END PGP SIGNATURE----- --=-UCW2E+KYnd8Exu2QhCmF--