From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QHklIRVr8GDRbQAAgWs5BA (envelope-from ) for ; Thu, 15 Jul 2021 19:06:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IO3/GhVr8GCcSwAA1q6Kng (envelope-from ) for ; Thu, 15 Jul 2021 17:06:29 +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 97EB01170F for ; Thu, 15 Jul 2021 19:06:28 +0200 (CEST) Received: from localhost ([::1]:35556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m44od-0000Ap-NH for larch@yhetil.org; Thu, 15 Jul 2021 13:06:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59294) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m44mJ-0005XJ-3M for guix-patches@gnu.org; Thu, 15 Jul 2021 13:04:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m44mI-0001R1-N4 for guix-patches@gnu.org; Thu, 15 Jul 2021 13:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m44mI-0007gd-G0 for guix-patches@gnu.org; Thu, 15 Jul 2021 13:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49565] [PATCH] gnu: glibc-headers-mesboot: Use %build-inputs in setenv phase Resent-From: Thiago Jung Bauermann Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 15 Jul 2021 17:04: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: 49565@debbugs.gnu.org, Maxime Devos Received: via spool by 49565-submit@debbugs.gnu.org id=B49565.162636859429492 (code B ref 49565); Thu, 15 Jul 2021 17:04:02 +0000 Received: (at 49565) by debbugs.gnu.org; 15 Jul 2021 17:03:14 +0000 Received: from localhost ([127.0.0.1]:49613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m44lV-0007fb-Uz for submit@debbugs.gnu.org; Thu, 15 Jul 2021 13:03:14 -0400 Received: from mx.kolabnow.com ([95.128.36.42]:38530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m44lS-0007fM-Jn for 49565@debbugs.gnu.org; Thu, 15 Jul 2021 13:03:12 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTP id 35A82E9B; Thu, 15 Jul 2021 19:03:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1626368583; x=1628182984; bh=u6EraYizPlajWpuX/5r4AWGk2XQMI0lar9u EKkoAO28=; b=ilBnSUxdQ086gDsYo+wYmPygUEpJ9VoHiUOFfi33luL5ZGa4pJL RjMDszIr15ESp7hZGVonbzTx1zlKv7abiJyKD6c665SmSTBQqDsooBZxZ1JyKQVH NQHDkGQtJqA6LdjLAi1AYD6LQ3/n2fwoffShOdMlEWdh/iM/C/adykfUSoI1BRfu KV4/fO8g2Y35WBR0/KtAKTzAlD4/EcwG8fhFWYRkwPc3e8llEgjyeRXEzH1XtZCk eNn7TMzJ3aARFrFrptsLMHkEZhXigLuwBm0uAFCNW8p4lg7LhdESynJMP43nt7/H Etz1Wqshzz24z46sOFtUSyGYL8zGs2mXEof4yxHfbCGcWQoHeHJEzJgbX2RZefiH veOajCIYEGuMKZrKe1GX9SEZVgM8jOONNMHy5WKOBuOh+BUjM892tlwcxu8PYLu7 t0sRuJdoQeu+PRtSzWXkBRK5kGGpRwXLITH4ZgWuc6hpN9zn3peACPt4WNKIW9vz YALdv/teVIu/C50Oh+c9Xlwt/zopXuwRmMlHu4cvFkSD6EXCi8rrwyGOtbsuhiYW +O/hwrogNd0ErK3OG23flxjvDLhFNEAg7VgeyV01VaemZWOjAYSwC+JnWpfsEzSf QacF2aflzOqac9VExKNNLcDRD2BRjEarC8R7uaxOXCCIEd/PKpMltVX8= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out002.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id T4mooDgobUPF; Thu, 15 Jul 2021 19:03:03 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out002.mykolab.com (Postfix) with ESMTPS id 589D9C13; Thu, 15 Jul 2021 19:03:02 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 54C511B1F; Thu, 15 Jul 2021 19:03:01 +0200 (CEST) Date: Thu, 15 Jul 2021 14:02:55 -0300 Message-ID: <11392919.zUUP5XLHND@popigai> In-Reply-To: References: <20210715004613.763843-1-bauermann@kolabnow.com> <4491449.dtmGtMj3lj@popigai> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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" Reply-to: Thiago Jung Bauermann X-ACL-Warn: , Thiago Jung Bauermann via Guix-patches From: Thiago Jung Bauermann via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626368789; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: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=u6EraYizPlajWpuX/5r4AWGk2XQMI0lar9uEKkoAO28=; b=XyACvlhA7EZ6LfYJ/rw3Vhhy7XK8KSi2ih7Tw3CYfI7jB2HoBDvligwmTjaWlq2s5X0UPO Bk20cOjjUA/g4HKouRAWfIIU4eqqIjeUNWA0X6FpobdIMiiu3nBBkL52Dc1g7kcYUgNXqU MQaEq9MPcAqnVmfe/Kjm4GIzFFBhubd+4+J8NrmeDLggmdTk40LIYmBvLbs1cjZWTyFonC PRuiQIv4JPfMsjmOo8ofQkiJkVIlt5L1DP+xSfGY5RtDTNcZ8IfOQJ6UxVoYYq2HoU+Kex 5I4Z77BIMF6PSc0/S6FdMqfBmr8K6BQ0HSkyCK1aDNOetTDSMAH6RMeXXiHP6g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626368789; a=rsa-sha256; cv=none; b=tABa33D7MCo1HeWVaf6pqFbCE1hdel4XG/CBdSAhmMenLt4Swy+JhfFvWCVm+izsUHwTz0 +DbtIG/2DJdzDfe67wBMC05PV5+WpZzQ6Ox15omYeoAPMey9VVKHraMAplQXW5WXxlIbXA EK0wK4S47ly5LDn8k303d18riFozH91UwJ0kJjqdbZ5P00Ol029uaOs6MWWCHuX+Oei7Xu REIdJ5Tasvd442Dj/+jvWciRr2YsXLgQ/cNhYmyLrMyUK84kbhkIHRyQ79iFC3QjmHO8rJ Rmtv/smEc7eIZmnUoYGC6ODTlJ6iffUFyhRZqLDauO7g8Wydlv83d4kp2Q95lQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=ilBnSUxd; dmarc=pass (policy=none) header.from=gnu.org; 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: -2.40 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=kolabnow.com header.s=dkim20160331 header.b=ilBnSUxd; dmarc=pass (policy=none) header.from=gnu.org; 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: 97EB01170F X-Spam-Score: -2.40 X-Migadu-Scanner: scn1.migadu.com X-TUID: dp/O4yQlePRG Em quinta-feira, 15 de julho de 2021, =C3=A0s 13:00:41 -03, Maxime Devos=20 escreveu: > > [...] > >=20 > > > 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 whe= re that > > happens? > >=20 > > The manual and the doc string for =E2=80=98build-expression->derivation= =E2=80=99 only > > mention that it comes from =E2=80=98inputs=E2=80=99. I can send a patch= to correct > > them. >=20 > 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->derivation, instead they use gexp->derivation (see > (guix build-system gnu)), and gexp->derivation doesn't define > %build-inputs. >=20 > gexp->derivation doesn't define %build-inputs, but gnu-build and > gnu-cross-build do: >=20 > ;; also see with-build-variables > (define %build-host-inputs > #+(input-tuples->gexp build-inputs)) >=20 > (define %build-target-inputs > (append #$(input-tuples->gexp host-inputs) > #+(input-tuples->gexp target-inputs))) >=20 > (define %build-inputs > (append %build-host-inputs %build-target-inputs)) > ;; ^ the unio native-inputs, inputs and implicit inputs! >=20 > (define %outputs > #$(outputs->gexp outputs)) >=20 > 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 t= hing. You'll have to look at > 'lower' to see how native-inputs and inputs are mapped to host-inputs, > build-inputs and target-inuts. Ok, I=E2=80=99ll look into that. Thanks for the pointers. In the meantime, I just confirmed that running this command on core-updates= =20 does cause glibc-mesboot-2.16 to be built: =2D-8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guix build \ --target=3Dpowerpc64le-linux-gnu \ gcc-toolchain@11 substitute: atualizando substitutos de "https://ci.guix.gnu.org"... 100.0% substitute: atualizando substitutos de "https://bordeaux.guix.gnu.org"...=20 100.0% The following derivations will be built: /gnu/store/phgd8m0dqp1gvqys46wy6gdwh1lqsdvm-gcc-toolchain-11.1.0.drv /gnu/store/62nvbgjd7vrc09h8r0n05b2bnva69p01-glibc-2.33.drv /gnu/store/0qjm3sr7qwv1sc5wfm0n1f6ybk3mvsy5-gawk-boot0-5.1.0.drv /gnu/store/2hvdxa6xfsl40h8ih8pvz9r658h80657-patch-mesboot-2.5.9.drv /gnu/store/4hs77pg9j543r83mqc2frix6sykj7vzf-make-boot0-4.3.drv /gnu/store/4sh57vq45rzkn66k8kii9izdyz738j1n-bzip2-mesboot-1.0.8.drv /gnu/store/6a9gx08qwl1rxkxkcmlnn65pszby3ka7-gash-utils-boot-0.1.0.drv /gnu/store/kzi9bcm0y4lsnq0wbsxp6ghnif8yh034-gash-boot-0.2.0.drv /gnu/store/82b4pi9sh7wgqcpgi6xrpibwc1iqdhji-xz-mesboot-5.0.0.drv /gnu/store/ba0vnc5bw91rskk5f3y29fbshysy0776-binutils-mesboot-2.20.1a.drv /gnu/store/cjhxxpvbd1ydwzm0663h8l6i40cx81pi-glibc-mesboot-2.16.0.drv /gnu/store/d5jx752yqqak9cix1379561p8czhiq93-coreutils-mesboot-8.32.drv /gnu/store/hain1fp7kwclrn0mrh9rqidw4vxisz9n-sed-mesboot-4.0.6.drv /gnu/store/k12zfxpj6sjjgb30rma0w5fvvmad35hp-gcc-mesboot-4.9.4.drv /gnu/store/m7sixkp7k9csfili8q50p8gywpnd05qp-gzip-mesboot-1.2.4.drv /gnu/store/nn9yd92g86x4pnm1byjrwhzawrmx4kxg-tar-mesboot-1.22.drv /gnu/store/pdjd8jc1sahh2j8yc2bn6z47syzvflrl-gawk-mesboot-3.1.8.drv /gnu/store/pivl1bxdv3lgziwkppk5b8qv6hczk8b7-grep-mesboot-2.0.drv /gnu/store/ra6hdd7l7dqi8wkm0g4kba2ykd36dbhm-gcc-mesboot- wrapper-4.9.4.drv /gnu/store/vdccj4mvd9626g5hwyljs8i28fx7j6m8-make-mesboot-3.82.drv /gnu/store/5q01q11y0p02y9pgqpz9nn6x6zkwriil-diffutils-boot0-3.7.drv /gnu/store/bainbjj5p2rcjly5kmx09fr7y2bzrmkc-patch-boot0-2.7.6.drv /gnu/store/dd0drjcnd4bsq1qyqx68kykaqrksr1fq-linux-libre- headers-5.10.35.drv /gnu/store/di513kh6hf9r6hl5jnlkzvl014w6db1q-findutils-boot0-4.8.0.drv /gnu/store/hvg6ijqsl2s2p0gwnrfzb8aihzann72v-bzip2-boot0-1.0.8.drv /gnu/store/j29kp6r510yxlpl47m3havcwd14lmylk-tar-boot0-1.34.drv /gnu/store/kzdlk0nrndnzh2ch44ikwm4lmajd0h30-ld-wrapper-boot0-0.drv /gnu/store/w9jcb7przdcmh56b197xcm2rx30aw4hz-binutils-cross- boot0-2.36.1.drv /gnu/store/n5l4fnyagzmyrgcndan8dw7531ma4da4-file-boot0-5.39.drv /gnu/store/nlrv89bwp4wkj3w36bzmqkijdadbsqny-coreutils-boot0-8.32.drv /gnu/store/p5hsziqa8j5adyhmxcc5961kx8aaf1vk-sed-boot0-4.8.drv /gnu/store/ncpm5xa6s4a3v1c3sw3478n1d0p99yzr-bash-static-5.1.8.drv /gnu/store/mlva2a76j2kgryk9qbfma4f1qbd91gll-glibc-intermediate-2.33.drv /gnu/store/r1dwax8yfh1h2g87yij245gfvqq9mg5r-gcc-cross-boot0-10.3.0.drv /gnu/store/6xzmm1hbzqbyp0fnp4ay764fl7hlwzqr-libstdc++-boot0-4.9.4.drv /gnu/store/lw6xvva92vb6yrg5s73c6m507mmg4wpn-gcc-11.1.0.drv /gnu/store/1z1j62pdli02k7x5lqmzm6cv8mi4nmrk-libelf-0.8.13.drv /gnu/store/bxaqilawhw2gbrqmcds4dw0xddnmn46x-libstdc++-headers-10.3.0.drv /gnu/store/v8g8wjzq6fvl32965xdz2z4w6zk1w91w-binutils-2.36.1.drv /gnu/store/62nvbgjd7vrc09h8r0n05b2bnva69p01-glibc-2.33.drv /gnu/store/v8i4vbz1s3idiqyi7cvwplblaxlyrap6-ld-wrapper-0.drv /gnu/store/2lx0j1j5qn3g77kmhy6kzxkbqgmajz3x-libatomic-ops-7.6.10.drv /gnu/store/09falwp7jqb9kz4qrqassbs37cmgxrrk-gcc-10.3.0.drv /gnu/store/bfbaw9js573ig21a6k2cg4bv7j7q1s5v-libstdc++-10.3.0.drv =2D-8<---------------cut here---------------end--------------->8--- So either something like this patch is needed, or some other change to=20 avoid building glibc-mesboot-2.16 for powerpc64le-linux-gnu. =2D-=20 Thanks, Thiago