build: gnu-build-system: Adjust NOCONFIGURE variable.
This ia a follow-up to 481a0f1a7c
.
* guix/build/gnu-build-system.scm (bootstrap): Set NOCONFIGURE for all
bootstrap scripts. Clean up variable after use.
This commit is contained in:
parent
a21bd6d5c2
commit
1b2b7765a0
1 changed files with 4 additions and 2 deletions
|
@ -191,13 +191,15 @@ (define (script-exists? file)
|
|||
|
||||
(if script
|
||||
(let ((script (string-append "./" script)))
|
||||
(setenv "NOCONFIGURE" "true")
|
||||
(format #t "running '~a'~%" script)
|
||||
(if (executable-file? script)
|
||||
(begin
|
||||
(patch-shebang script)
|
||||
(setenv "NOCONFIGURE" "true")
|
||||
(invoke script))
|
||||
(invoke "sh" script)))
|
||||
(invoke "sh" script))
|
||||
;; Let's clean up after ourselves.
|
||||
(unsetenv "NOCONFIGURE"))
|
||||
(if (or (file-exists? "configure.ac")
|
||||
(file-exists? "configure.in"))
|
||||
(invoke "autoreconf" "-vif")
|
||||
|
|
Loading…
Reference in a new issue