From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kCIqKO84mmOteQAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 21:58:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EKv0J+84mmPpKAAAauVa8A (envelope-from ) for ; Wed, 14 Dec 2022 21:58:23 +0100 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 52659F547 for ; Wed, 14 Dec 2022 21:58:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5YpJ-0000Cq-3U; Wed, 14 Dec 2022 15:58:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5YpG-0000Cc-Rh for guix-patches@gnu.org; Wed, 14 Dec 2022 15:58:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5YpG-0004jQ-2g for guix-patches@gnu.org; Wed, 14 Dec 2022 15:58:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5YpF-0004LM-Ru for guix-patches@gnu.org; Wed, 14 Dec 2022 15:58:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59843] [PATCH] shell: Enable --target for guix shell (--development) References: <20221205203051.22898-1-yarl-baudig@mailoo.org> Resent-From: "yarl baudig" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 14 Dec 2022 20:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59843 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: ludo@gnu.org Cc: 59843@debbugs.gnu.org Received: via spool by 59843-submit@debbugs.gnu.org id=B59843.167105147516686 (code B ref 59843); Wed, 14 Dec 2022 20:58:01 +0000 Received: (at 59843) by debbugs.gnu.org; 14 Dec 2022 20:57:55 +0000 Received: from localhost ([127.0.0.1]:41833 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Yp8-0004L4-Vb for submit@debbugs.gnu.org; Wed, 14 Dec 2022 15:57:55 -0500 Received: from msg-1.mailo.com ([213.182.54.11]:53916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5Yp7-0004Ky-5S for 59843@debbugs.gnu.org; Wed, 14 Dec 2022 15:57:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1671051457; bh=6UkktLzgaZvChGShgSIloNcxEkGh+36lMrEUNbrSMUM=; h=X-EA-Auth:From:To:Cc:Date:Subject:MIME-Version:X-Mailer: Message-ID:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=ir+PkzktmEsjHA80b+V05/hwzl/f0x1zuKYn3GFGGSydCj5CjVz5tyK0sQ1N3V8ZD Fykjt9fFlz/RhA0wo6I1z00UO3S+Zq711cryS+ecx5BMRkfxlTiTgVctChTZZ1akiE orCgpznFNBS/8AqWZVj4y+O9eL8puA7fQz+UF3ns= Received: by www.mailo.com with http webmail; Wed, 14 Dec 2022 21:57:37 +0100 (CET) X-EA-Auth: CESoipilcqZdqgYer+4HzRj80qu3Wn9z2hIQ041f/xoPScQI2Z9BBdLMUcd4dM8MWDIZIz/iR7GxSw7fS4tQ21SOimPDcTzS From: "yarl baudig" Date: Wed, 14 Dec 2022 21:57:37 +0100 (CET) X-Priority: 3 MIME-Version: 1.0 X-Mailer: COMS/EA22.05/r20221103 Message-ID: In-Reply-To: <87o7s6tfn0.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671051503; 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: 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=9IEUH4OR7gR7dcoonLiycDLdK6ayBpjdI9KMOXxW0oc=; b=sZth1SohgbFWs5hDbgo4pt790Dbd1rbdM0vQob7cT3Zem+9r530zXH9Msp3F2yuF1OQL4Z zzJU8TajfaW6kTwSncWYCU4asbcmhElErJk8blSU65tR/RCL16YN7CwbSCeDCuGFazIKJQ GHqMKDDSM2BHNy6EggU5o5FI+FSanCbYB5ZmHLhIPTbdL5mkx9pEaiCFbqdU0xveFTwVJH AyJ7dsdokqpKHsP2RamK/rs97vMw/8jyUj+qOPx4wXhAas7uvP6AK3s8qe0Tebzmwk3eKH Ma40KQdDo8iLUU/ZChoZJb6lR1N++jE1e7fLcUz27w1fvSVQEqpYOvUu3AXP8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailoo.org header.s=mailo header.b=ir+Pkzkt; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mailoo.org (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671051503; a=rsa-sha256; cv=none; b=B9YyWNBuAEDSrI1pnwyMi860z/acdqwyJf4Z1xnpT0003BmKb8l2u8GQ0QmoaSlkJiUrHi LkpVPglR+dt8Zly++hLcn4jK77e7oNCXbyrtiheCjhSzo5agLjc9dubPMx23l/U9kW4dIr 4YoYreSirY0qgZc1Zlkovx6YTT4Dd9C6h3Ns9KTZuv2IGp10y6K4D06Cpodxqv5Jg9Ockw 347uA+2MjjQNhu/7CzmudgCDYT1v5Di1RdBUxPfDO4s78oeikL4Fl+PlFObEXiqA6dEevt 1RspLi9d+59hxNRbqqHNqXPhoA9Lrq8anC96fjh/MG2fGM3SXDfJLWKqwNRikw== X-Migadu-Spam-Score: 6.23 X-Spam-Score: 6.23 X-Migadu-Queue-Id: 52659F547 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailoo.org header.s=mailo header.b=ir+Pkzkt; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mailoo.org (policy=none) X-TUID: GQDxmKWQejN5 I responded too fast. You are right, something is wrong. Not every path is = accessible. I will try to understand when I'll have some time. ---- Message d'origine ---- > De : Ludovic Court=C3=A8s > =C3=80 : Yarl Baudig > Sujet : Re: bug#59843: [PATCH] shell: Enable --target for guix shell (--= development) > Date : 14/12/2022 11:59:31 Europe/Paris > Copie =C3=A0 : 59843@debbugs.gnu.org >=20 > Hi, >=20 > Yarl Baudig skribis: >=20 > > This enable the use of --target for development inputs, that is: > > with `guix shell`, includes the dependencies for cross-building packag= es > > given with --development > > > > * guix/scripts/environment.scm: Enable --target. > > * guix/scripts/shell.scm: Enable --target. > > * doc/guix.texi: Document it. >=20 > This change won=E2=80=99t give something useful per se, because the envi= ronment > will contain a mixture of =E2=80=9Chost=E2=80=9D and =E2=80=9Cbuild=E2= =80=9D inputs. >=20 > To make it work, we need two profiles: one for =E2=80=9Cbuild=E2=80=9D i= nputs, and one > for =E2=80=9Chost/target=E2=80=9D inputs. Search path environment varia= bles must be > evaluated in a way that accounts for these two profiles. For example, > target libraries will appear on CROSS_C_INCLUDE_PATH but not on > C_INCLUDE_PATH. >=20 > Does that make sense? >=20 > IOW, it=E2=80=99s a trickier endeavor that one could hope for. :-) >=20 > Thanks, > Ludo=E2=80=99. >