From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 05:59:41 2022 Received: (at 59843) by debbugs.gnu.org; 14 Dec 2022 10:59:41 +0000 Received: from localhost ([127.0.0.1]:38306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5PUC-000858-PS for submit@debbugs.gnu.org; Wed, 14 Dec 2022 05:59:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:44958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p5PUB-000850-JX for 59843@debbugs.gnu.org; Wed, 14 Dec 2022 05:59:40 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5PU5-0004pV-QD; Wed, 14 Dec 2022 05:59:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=7ZQ7uuG2UTjDk6noOE5t9OMOWbdVJWQOaY6bEB5G1VY=; b=lym+hnrAN9ldObSwcjvi WD9v1tIkZ63gNyAlAHHfbz/1yc/PdOyE5Zw6KfcV7u4hn43Y86kIjdLeJFs3LmRsmJ0PoH0Wr87sC GSO4cDKOlqBOfKz5SSl8CiO6//8NppcgoRS9buuVxRkhTMyQdsvnTS3bJFqRP9G0WZrlAYZJtCXR6 VfjbTUJNQkoJbHw/CZhNKQPR4u6GJkmRgGdmPE4V6hKsUOqCVcDDMj14p5MhLN/bi0lP1niPd12IZ Nrxjy6gvP0M8IRMo2UJtgO+vJqiQdPZdpRt8mmDFXuLraEoHc3m0rKQtFH0Ek6qsoRmZa23F017kq jn2vbZjCKz2VVw==; Received: from eduroam-111172.grenet.fr ([130.190.111.172] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5PU5-0005i8-Du; Wed, 14 Dec 2022 05:59:33 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Yarl Baudig Subject: Re: bug#59843: [PATCH] shell: Enable --target for guix shell (--development) References: <20221205203051.22898-1-yarl-baudig@mailoo.org> Date: Wed, 14 Dec 2022 11:59:31 +0100 In-Reply-To: <20221205203051.22898-1-yarl-baudig@mailoo.org> (Yarl Baudig's message of "Mon, 5 Dec 2022 21:30:51 +0100") Message-ID: <87o7s6tfn0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59843 Cc: 59843@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Yarl Baudig skribis: > This enable the use of --target for development inputs, that is: > with `guix shell`, includes the dependencies for cross-building packages > given with --development > > * guix/scripts/environment.scm: Enable --target. > * guix/scripts/shell.scm: Enable --target. > * doc/guix.texi: Document it. This change won=E2=80=99t give something useful per se, because the environ= ment will contain a mixture of =E2=80=9Chost=E2=80=9D and =E2=80=9Cbuild=E2=80= =9D inputs. To make it work, we need two profiles: one for =E2=80=9Cbuild=E2=80=9D inpu= ts, and one for =E2=80=9Chost/target=E2=80=9D inputs. Search path environment variable= s 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. Does that make sense? IOW, it=E2=80=99s a trickier endeavor that one could hope for. :-) Thanks, Ludo=E2=80=99.