GNU bug report logs -
#59843
[PATCH] shell: Enable --target for guix shell (--development)
Previous Next
Reported by: Yarl Baudig <yarl-baudig <at> mailoo.org>
Date: Mon, 5 Dec 2022 20:32:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 59843 <at> debbugs.gnu.org (full text, mbox):
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ès <ludo <at> gnu.org>
> À : Yarl Baudig <yarl-baudig <at> mailoo.org>
> Sujet : Re: bug#59843: [PATCH] shell: Enable --target for guix shell (--development)
> Date : 14/12/2022 11:59:31 Europe/Paris
> Copie à : 59843 <at> debbugs.gnu.org
>
> Hi,
>
> Yarl Baudig <yarl-baudig <at> 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’.
>
This bug report was last modified 2 years and 150 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.