From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Nieuwenhuizen Newsgroups: gmane.comp.gnu.guix.devel,gmane.lisp.guile.devel Subject: Re: [PATCH] Append effective version to GUILE_LOAD[_COMPILED]_PATH Date: Sat, 19 Mar 2016 10:26:08 +0100 Organization: AvatarAcademy.nl Message-ID: <874mc2yg27.fsf@drakenvlieg.flower> References: <87oaaupes6.fsf@drakenvlieg.flower> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1458379590 13339 80.91.229.3 (19 Mar 2016 09:26:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2016 09:26:30 +0000 (UTC) Cc: guix-devel@gnu.org, guile-devel To: Mikael Djurfeldt Original-X-From: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sat Mar 19 10:26:21 2016 Return-path: Envelope-to: gcggd-guix-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ahD9H-0002xD-S5 for gcggd-guix-devel@m.gmane.org; Sat, 19 Mar 2016 10:26:19 +0100 Original-Received: from localhost ([::1]:48024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahD9H-0004lq-56 for gcggd-guix-devel@m.gmane.org; Sat, 19 Mar 2016 05:26:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahD9C-0004iw-9S for guix-devel@gnu.org; Sat, 19 Mar 2016 05:26:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahD99-0007xB-3n for guix-devel@gnu.org; Sat, 19 Mar 2016 05:26:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48613) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahD99-0007x7-0A; Sat, 19 Mar 2016 05:26:11 -0400 Original-Received: from peder.onsbrabantnet.nl ([88.159.206.46]:51923 helo=drakenvlieg.flower.peder.onsbrabantnet.nl) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ahD98-0000Gs-B3; Sat, 19 Mar 2016 05:26:10 -0400 X-Url: http://AvatarAcademy.nl In-Reply-To: (Mikael Djurfeldt's message of "Wed, 16 Mar 2016 15:19:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list 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 Original-Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.comp.gnu.guix.devel:17902 gmane.lisp.guile.devel:18237 Archived-At: Mikael Djurfeldt writes: > In python, the version number is higher up in the directory hierarchy, > which, hypothetically, allows newer versions to have "inventions" in > the more detailed directory structure: > > /usr/lib/python2.6 > /usr/lib/python2.7 > etc > > Just a thought. Python's case is a bit different * Python does not look at any environment variable to boot in contrast, setting GUILE_LOAD_*PATH to the wrong place makes Guile barf trying to load eval.* or boot-9.*. Also, guix by default sets GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH, thus "ensuring" that different guile major versions will fail to boot. Do we want Guile to look at environment variables to find its core libraries? * Python has magic numbers and skip/recompiles if a .py[oc] does not match This resembles what Ludovic suggested and what I have submitted a patch for, to skip invalid .go files. Greetings, Jan -- Jan Nieuwenhuizen | GNU LilyPond http://lilypond.org Freelance IT http://JoyofSource.com | Avatar=C2=AE http://AvatarAcademy.nl