[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/09: self: Move Guile early in the module search path.
From: |
guix-commits |
Subject: |
05/09: self: Move Guile early in the module search path. |
Date: |
Fri, 11 Dec 2020 13:07:32 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 459f0d07a1b0f76802a8b7deec8488f5956bce86
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Dec 7 15:18:20 2020 +0100
self: Move Guile early in the module search path.
Until now, Guile modules would first be searched for in
MODULE-DIRECTORY, then in each $GUILE_LOAD_PATH entry, and finally in
Guile itself.
* guix/self.scm (guix-command): Make GUILE the second entry in the
%LOAD-PATH and %LOAD-COMPILED-PATH.
---
guix/self.scm | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/guix/self.scm b/guix/self.scm
index c0de14b..ca67f65 100644
--- a/guix/self.scm
+++ b/guix/self.scm
@@ -650,17 +650,22 @@ load path."
(program-file "guix-command"
#~(begin
(set! %load-path
- (cons (string-append #$module-directory
- "/share/guile/site/"
- (effective-version))
- %load-path))
+ (append (list (string-append #$module-directory
+ "/share/guile/site/"
+ (effective-version))
+ (string-append #$guile "/share/guile/"
+ (effective-version)))
+ %load-path))
(set! %load-compiled-path
- (cons (string-append #$module-directory
- "/lib/guile/"
- (effective-version)
- "/site-ccache")
- %load-compiled-path))
+ (append (list (string-append #$module-directory
+ "/lib/guile/"
+ (effective-version)
+ "/site-ccache")
+ (string-append #$guile "/lib/guile/"
+ (effective-version)
+ "/ccache"))
+ %load-compiled-path))
;; To maximize the chances that locales are set up right
;; out-of-the-box, bundle "common" UTF-8 locales.
- branch master updated (edc2acb -> eee3af8), guix-commits, 2020/12/11
- 01/09: maint: Avoid macros obsolete in Autoconf 2.70., guix-commits, 2020/12/11
- 02/09: maint: Remove unused 'NIX_VERSION' macro., guix-commits, 2020/12/11
- 03/09: Revert "services: openssh: Warn about 'password-authentication?' default.", guix-commits, 2020/12/11
- 05/09: self: Move Guile early in the module search path.,
guix-commits <=
- 06/09: guix: 'guile' executable ignores GUILE_LOAD_PATH during startup., guix-commits, 2020/12/11
- 04/09: build: 'script/guix' uses our own 'guile' executable., guix-commits, 2020/12/11
- 07/09: self: Remove the empty string from '%load-extensions'., guix-commits, 2020/12/11
- 09/09: gnu: esbuild: Update to 0.8.21., guix-commits, 2020/12/11
- 08/09: gnu: Add hsetroot., guix-commits, 2020/12/11