mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
utils: set-path-environment-variable' calls
unsetenv' for empty values.
* guix/build/utils.scm (set-path-environment-variable): When VALUE is the empty string, call `unsetenv' instead of `setenv'. * gnu/packages/guile.scm (guile-2.0)[arguments]: Remove `unsetenv' trick.
This commit is contained in:
parent
ee26820636
commit
b15669f37d
2 changed files with 11 additions and 14 deletions
|
@ -142,17 +142,6 @@ extensible. It supports many SRFIs.")
|
|||
`(#:phases (alist-cons-before
|
||||
'configure 'pre-configure
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
;; By default we end up with GUILE_LOAD_PATH="" and
|
||||
;; GUILE_LOAD_COMPILED_PATH="". But that is equivalent to
|
||||
;; ".", and breaks the build system when cross-compiling.
|
||||
;; Thus, make sure they are unset.
|
||||
;; TODO: Eventually fix `set-path-environment-variable'
|
||||
;; for that case.
|
||||
,@(if (%current-target-system)
|
||||
'((unsetenv "GUILE_LOAD_PATH")
|
||||
(unsetenv "GUILE_LOAD_COMPILED_PATH"))
|
||||
'())
|
||||
|
||||
;; Tell (ice-9 popen) the file name of Bash.
|
||||
(let ((bash (assoc-ref inputs "bash")))
|
||||
(substitute* "module/ice-9/popen.scm"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue