Hi Carlos, csanchez...@gmail.com (Carlos Sánchez de La Lama) skribis:
> Hi Ludo, Alex, > >> In the example Alex gave, none of the two profiles specifies >> GUILE_LOAD_PATH if taken individually. This example is also in the >> manual to illustrate the use of multiple -p flags with --search-paths >> (info "(guix) Invoking guix package"). > > I think I understood now. I knew "guix --search-paths" only returned > those search paths which *do exist* in the current profile (thus the > need for multiple -p parameters), but I (wrongly) thought search paths > were added unconditionally to <profile_root>/etc/profile. > > Making this work would need two things: > 1) not stripping unexisting directories from search paths > 2) constructing environment variables prepending every profile root to > the search paths of each profile. > > And my suggestion only solved point 2. > > Now, my question is, why are unexisting search paths removed? I don’t think this is really the problem here. The problem here is that if a profile contains only, say, guile-json, there is no way Guix can know about GUILE_LOAD_PATH because that variable is associated with Guile itself, not with guile-json. Does that make sense? Thanks, Ludo’.