mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
build-aux: Disable file port name canonicalization in a few places.
I'm assuming this doesn't have any meaningful effect, and it seems to reduce the number of readlink calls by a lot. * build-aux/build-self.scm (build-program): Set %file-port-name-canonicalization to #f. (build): Ditto. * build-aux/compile-as-derivation.scm: Ditto. Change-Id: If43415c46c3911e84c76d1a9828b9c417a140a1b
This commit is contained in:
@@ -111,6 +111,9 @@ build daemon, from within the generated build program."
|
|||||||
#~(begin
|
#~(begin
|
||||||
(use-modules (ice-9 match))
|
(use-modules (ice-9 match))
|
||||||
|
|
||||||
|
;; To avoid lots of readlink calls
|
||||||
|
(fluid-set! %file-port-name-canonicalization #f)
|
||||||
|
|
||||||
(eval-when (expand load eval)
|
(eval-when (expand load eval)
|
||||||
;; (gnu packages …) modules are going to be looked up
|
;; (gnu packages …) modules are going to be looked up
|
||||||
;; under SOURCE. (guix config) is looked up in FRONT.
|
;; under SOURCE. (guix config) is looked up in FRONT.
|
||||||
@@ -246,6 +249,9 @@ Display a spinner when nothing happens."
|
|||||||
#:rest rest)
|
#:rest rest)
|
||||||
"Return a derivation that unpacks SOURCE into STORE and compiles Scheme
|
"Return a derivation that unpacks SOURCE into STORE and compiles Scheme
|
||||||
files."
|
files."
|
||||||
|
;; Avoid lots of readlink calls
|
||||||
|
(fluid-set! %file-port-name-canonicalization #f)
|
||||||
|
|
||||||
;; Build the build program and then use it as a trampoline to build from
|
;; Build the build program and then use it as a trampoline to build from
|
||||||
;; SOURCE.
|
;; SOURCE.
|
||||||
(mlet %store-monad ((build (build-program source version guile-version
|
(mlet %store-monad ((build (build-program source version guile-version
|
||||||
|
|||||||
@@ -20,6 +20,9 @@
|
|||||||
|
|
||||||
(use-modules (srfi srfi-26))
|
(use-modules (srfi srfi-26))
|
||||||
|
|
||||||
|
;; Avoid lots of readlink calls
|
||||||
|
(fluid-set! %file-port-name-canonicalization #f)
|
||||||
|
|
||||||
;; Add ~/.config/guix/current to the search path.
|
;; Add ~/.config/guix/current to the search path.
|
||||||
(eval-when (expand load eval)
|
(eval-when (expand load eval)
|
||||||
(and=> (or (getenv "XDG_CONFIG_HOME")
|
(and=> (or (getenv "XDG_CONFIG_HOME")
|
||||||
|
|||||||
Reference in New Issue
Block a user