[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: gexp: Default to 'guile-2.2' for 'program-file'.
From: |
Ludovic Courtès |
Subject: |
01/02: gexp: Default to 'guile-2.2' for 'program-file'. |
Date: |
Wed, 29 Nov 2017 17:41:24 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 6ee797f326274284ac60dad50688f877a93711d2
Author: Ludovic Courtès <address@hidden>
Date: Wed Nov 29 22:29:26 2017 +0100
gexp: Default to 'guile-2.2' for 'program-file'.
Previously things returned by 'program-file', such as %MODPROBE-WRAPPER
in (gnu services), would refer to 'guile-final'. This would introduce
'guile-final' in the system closure, which is otherwise absent. By
referring to 'guile-2.2' we remove that extra Guile.
* guix/gexp.scm (default-guile): Refer to GUILE-2.2 instead of
GUILE-FINAL.
---
guix/gexp.scm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/guix/gexp.scm b/guix/gexp.scm
index 27a8f35..1929947 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1096,10 +1096,12 @@ they can refer to each other."
;;;
(define (default-guile)
- ;; Lazily resolve 'guile-final'. This module must not refer to (gnu …)
+ ;; Lazily resolve 'guile-2.2' (not 'guile-final' because this is for
+ ;; programs returned by 'program-file' and we don't want to keep references
+ ;; to several Guile packages). This module must not refer to (gnu …)
;; modules directly, to avoid circular dependencies, hence this hack.
- (module-ref (resolve-interface '(gnu packages commencement))
- 'guile-final))
+ (module-ref (resolve-interface '(gnu packages guile))
+ 'guile-2.2))
(define (load-path-expression modules)
"Return as a monadic value a gexp that sets '%load-path' and