GNU bug report logs -
#53439
[PATCH] doc: Document search paths.
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 22 Jan 2022 10:49:02 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 #17 received at 53439 <at> debbugs.gnu.org (full text, mbox):
Hi Maxime,
Maxime Devos <maximedevos <at> telenet.be> skribis:
> Ludovic Courtès schreef op za 22-01-2022 om 11:47 [+0100]:
>> +What this @code{native-search-paths} field says is that, when the
>> +@code{python} package is used, the @env{GUIX_PYTHONPATH} environment
>> +variable must be defined to include all the
>> +@file{lib/python/3.9/site-packages} sub-directories encountered in its
>> +environment. (The @code{native-} bit means that, if we are in a
>> +cross-compilation environment, only native inputs may be added to the
>> +search path.) In the NumPy example above, the profile where
>
> This bit about inputs/native-inputs seems a little imprecise:
>
> (package
> (name "foobarify")
> [...]
> (inputs guile)
> (propagated-inputs
> ;; TODO: would be nice to unpropagate
> (list guile-foo guile-bar guile-ify))
> ;; "foobarify" allows running arbitrary Guile scripts,
> ;; so allow the user to use arbitrary Guile libraries
> ;; from the environment in their scripts at will.
> (native-search-paths
> [GUILE_LOAD_PATH, GUILE_LOAD_COMPILED_PATH, ...]))
>
> $ [ guix cross-compile a virtual image with foobarify in the system
> profile]
>
> IIUC, guile-foo, guile-bar and guile-ify will be included in the
> GUILE_LOAD_PATH/GUILE_LOAD_COMPILED_PATH of the system profile, even
> though we are cross-compiling and they are 'inputs' and not 'native-
> inputs' of 'foobarify' ...
I think the key bit in the parenthetical sentence you refer to is “if we
are in a cross-compilation environment”. If we are *not*
cross-compiling, then both inputs and native inputs are included in the
search path. Is that what you mean?
I think we need a section about cross-compilation though, and that will
allow us to clarify these things. I didn’t want to muddy the main
message in cross-compilation considerations here.
WDYT?
Thanks for reviewing!
Ludo’.
This bug report was last modified 3 years and 210 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.