From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: User-profile search paths should include system-profile directories Date: Fri, 30 Sep 2016 22:16:21 +0200 Message-ID: <87wphtjg8a.fsf@gnu.org> References: <7tpoo7kk73.fsf@gmail.com> <87eg4mo7dp.fsf@gnu.org> <7th99b9g0k.fsf@gmail.com> <87bmziabse.fsf@gmail.com> <7td1jyab63.fsf@gmail.com> <877fa5jn0y.fsf@gnu.org> <7tvaxoz23z.fsf@gmail.com> <878tuiuhr2.fsf@gnu.org> <7tbmza7vse.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bq4ET-0003Az-L9 for guix-devel@gnu.org; Fri, 30 Sep 2016 16:16:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bq4EN-0006QU-29 for guix-devel@gnu.org; Fri, 30 Sep 2016 16:16:33 -0400 In-Reply-To: <7tbmza7vse.fsf@gmail.com> ("Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama"'s message of "Mon, 26 Sep 2016 13:19:45 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama Cc: guix-devel@gnu.org, Alex Kost Howdy, csanchezdll@gmail.com (Carlos S=C3=A1nchez de La Lama) skribis: >>> 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. >>> >>> Now, my question is, why are unexisting search paths removed? >> >> I don=E2=80=99t 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. > > The idea is each profile environment unconditionally adds search paths > for all the profiles in use (which are passed when evaluating > /etc/profile in the GUIX_PROFILES variable). This was the > proposal in my first message (looks *similar* to an earlier post in the > bug discussion, but it is quite different). > > In the case you suggest, the profile cointaining guile will define > GUILE_LOAD_PATH to point inside its own profile and *also* inside the > profile containing guile-json. The problem is that, as things currently are, the profile that contains only Guile has no reason to define GUILE_LOAD_PATH. So I=E2=80=99m unsure = if this can work as is. We=E2=80=99ll see! Thanks for looking into it, Ludo=E2=80=99.