From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Nieuwenhuizen Subject: Re: [PATCH] gnu: guile-next: Set correct native search paths. Date: Mon, 22 Feb 2016 00:11:30 +0100 Message-ID: <87k2lx3bh9.fsf@drakenvlieg.flower> References: <871t8ez7g6.fsf@igalia.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]:45794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aXdAD-0004c0-GZ for guix-devel@gnu.org; Sun, 21 Feb 2016 18:11:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aXdAC-0005CA-Hs for guix-devel@gnu.org; Sun, 21 Feb 2016 18:11:41 -0500 In-Reply-To: <871t8ez7g6.fsf@igalia.com> (Andy Wingo's message of "Mon, 15 Feb 2016 09:47:05 +0100") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Andy Wingo Cc: guix-devel Andy Wingo writes: >> + (native-search-paths >> + (list (search-path-specification >> + (variable "GUILE_LOAD_PATH") >> + (files '("share/guile/site/2.2"))) >> + (search-path-specification >> + (variable "GUILE_LOAD_COMPILED_PATH") >> + (files '("lib/guile/2.0/ccache" >> + "share/guile/site/2.2"))))))) >>=20=20 >> (define-public guile-for-guile-emacs >> (package (inherit guile-next) > > This doesn't look right to me; why is GUILE_LOAD_COMPILED_PATH pointing > into share? Probably need to update the pointer into lib to use 2.2, > also. I'm wondering... Currently when switching environments from guile to guile-next and back, I found that I need to unset GUILE_LOAD_COMPILED_PATH; otherwise it gets appended to and that breaks. Why is the `2.0' and `2.2' part of the GUILE_LOAD_COMPILED_PATH? If guile would always append that (or also look in the directory with MAJOR.MINOR appended), i.e. something like lib/guile/ccache # GUILE_LOAD_COMPILED_PATH lib/guile/ccache/2.0 # guile-2.0 appends 2.0 lib/guile/ccache/2.2 # guile-2.2 appends 2.2=20=20=20=20=20=20=20 wouldn't that help a lot with picking up the right .go files when running different versions of guile? Greetings, Jan --=20 Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl= =20=20