unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Yarl Baudig <yarl-baudig@mailoo.org>
Cc: 59843@debbugs.gnu.org
Subject: [bug#59843] [PATCH] shell: Enable --target for guix shell (--development)
Date: Wed, 14 Dec 2022 11:59:31 +0100	[thread overview]
Message-ID: <87o7s6tfn0.fsf@gnu.org> (raw)
In-Reply-To: <20221205203051.22898-1-yarl-baudig@mailoo.org> (Yarl Baudig's message of "Mon, 5 Dec 2022 21:30:51 +0100")

Hi,

Yarl Baudig <yarl-baudig@mailoo.org> 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’t give something useful per se, because the environment
will contain a mixture of “host” and “build” inputs.

To make it work, we need two profiles: one for “build” inputs, and one
for “host/target” inputs.  Search path environment variables 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’s a trickier endeavor that one could hope for.  :-)

Thanks,
Ludo’.




  reply	other threads:[~2022-12-14 11:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-05 20:30 [bug#59843] [PATCH] shell: Enable --target for guix shell (--development) Yarl Baudig
2022-12-14 10:59 ` Ludovic Courtès [this message]
2022-12-14 16:26   ` yarl baudig
2022-12-14 20:57   ` yarl baudig
2022-12-21 13:42     ` bug#59843: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o7s6tfn0.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=59843@debbugs.gnu.org \
    --cc=yarl-baudig@mailoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).