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 IEpkJ6j5mWOfGwAAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 17:28:24 +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 8JAbJ6j5mWNbFwAAauVa8A (envelope-from ) for ; Wed, 14 Dec 2022 17:28:24 +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 7DF4E39D3D for ; Wed, 14 Dec 2022 17:28:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5Uc2-00078t-8G; Wed, 14 Dec 2022 11:28:06 -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 1p5Uby-00078j-KV for guix-patches@gnu.org; Wed, 14 Dec 2022 11:28: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 1p5Uby-00073E-C7 for guix-patches@gnu.org; Wed, 14 Dec 2022 11:28:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p5Ubx-0004tX-Mt for guix-patches@gnu.org; Wed, 14 Dec 2022 11:28: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 16:28: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.167103523718807 (code B ref 59843); Wed, 14 Dec 2022 16:28:01 +0000 Received: (at 59843) by debbugs.gnu.org; 14 Dec 2022 16:27:17 +0000 Received: from localhost ([127.0.0.1]:40185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5UbE-0004tH-Ue for submit@debbugs.gnu.org; Wed, 14 Dec 2022 11:27:17 -0500 Received: from msg-1.mailo.com ([213.182.54.11]:37052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5UbD-0004tB-17 for 59843@debbugs.gnu.org; Wed, 14 Dec 2022 11:27:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailoo.org; s=mailo; t=1671035214; bh=iwTYe2jKtLQ0QLbA5ltUPJItxnOoxMKlO55PJgvyWXs=; h=X-EA-Auth:From:To:Cc:Date:Subject:MIME-Version:X-Mailer: Message-ID:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=GCf4i8aO9WWWIemZndyG0L7Yv5JJlUrIIaEdrCiwqGrwLqu9qpU3NsfUPH+btB+Rl 6QPSNzP3UiHnWbBEuLu7htP4+PGzriSSgvI9esNw+sZqmwWaj9UHQ3PPOX6YE8UJ6o 9eAv7j6vKBqzhZL5LzQGV3eMdpKYvEBFYUMvfjzs= Received: by www.mailo.com with http webmail; Wed, 14 Dec 2022 17:26:54 +0100 (CET) X-EA-Auth: M/1ZcWS+ZsBbLkXjQ14SijpnQcuIcJ2q87G3XxdvRKMt5BbdDkKz6Ntrd7SYPsmUtgzS1HnhY8jf+s9s1WK8SR8GJbCqIe+1 From: "yarl baudig" Date: Wed, 14 Dec 2022 17:26:54 +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=1671035304; 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=v8X1sQswoUAvIjKUXRVsedEeP6pKZR4DJdJ6xncl1pc=; b=m0eVBoNkqJcmjW0fTcxRBEwqeE74boXNlc4WX4FiNfxDu0Zgt/5Ky+Lbuvw4MGofdhHbYN CABgqGIsvPshSPf3e40+7qddnHMyygQo2/64yEWsLAFP19xQaRGI0d9pYWfJXl6ALuUbMU TTT/wQR3OBPTvUD9fPH9ftakxPQGmh9DvubU4PTVeHQIchC0JZUiCEvwTE8AxCpdGBfdkQ GjZ5IaXdX3iaD2E1/yyQIB9SOcfyUBH+wbjI89vIr3yCLluGpJ70tFNUGDU7+KE77PIcVB XsmcEm9HIinF+UJPRAZcGKVdbiMOARAS47YOEQj95b//QzrYfOZkTsjzH1bIkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mailoo.org header.s=mailo header.b=GCf4i8aO; 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=1671035304; a=rsa-sha256; cv=none; b=JWGKqO97t40ZEYw6l12QgXkKdOWIKAL1tKbrWpPv32qCFSM42eNui0G27fnsr67c/rJcSD Xy22dflhANskBkmRddR4W/FvkVQhdWO11ybEDOxSySKgfUMZTc8ANOjkpm2JvsZKvcLsXN aolSdx17Ija0GHcCKfSifI/P34C3xzIFKbjvTeWSnT9wkQEIlTsJwdxxI7LCu09ayh+Rfg BPWoyaDt0DS5peRGjrwByluJOjgijPad862e0zlQSgEJ//J0LXpBIJyV2dfTK4wCKcHUqN QOYDu9V3rtTUt7hKUMdotqEQpSmHgy/6pFRuvpo+pz+LGi8ziBHKsYeK3qZS8w== X-Migadu-Spam-Score: 6.23 X-Spam-Score: 6.23 X-Migadu-Queue-Id: 7DF4E39D3D 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=GCf4i8aO; 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: 9xjcdQdiZObl >=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. >=20 Obviously, you know a lot more about this than I do. However (please corre= ct me, I probably did not completely understand your point) I think it is u= seful and works for the goal I mentioned in the part of the patch concernin= g the manual. It can help debugging failing (cross-)builds because you sour= ce "environment-variables" and that's the reason why I sent this patch. I t= ried it with texinfo (because the cross-compilation fails and I want to fix= it) and it seem to work (i.e. you have access to paths in CROSS_C_INCLUDE_= PATH, for example). Maybe I missed something and you saw that "debugging cr= oss-builds" is my intent. Please do tell. I take avantage of having reached you to mention https://issues.guix.gnu.o= rg/59839 I was working on this in parallel and I may have made things confu= sing because (in 59839) that's --system I am talking about (see the last ve= rsion, number 3, of the patch please)... Thank you a lot.