Build drops warnings regarding 'guild' and the check phase does not have write permissions for its tests. [build]: Remove the warnings generated by the 'guild' by setting the "GUILE_AUTO_COMPILE" to 0. [check]: Set the homeless-shelter to /tmp for write permission. --- gnu/packages/package-management.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index 2d1fe914e3..454c69c8a7 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -21,6 +21,7 @@ ;;; Copyright © 2021, 2022 Maxim Cournoyer <[email protected]> ;;; Copyright © 2021 John Kehayias <[email protected]> ;;; Copyright © 2022 Zhu Zihao <[email protected]> +;;; Copyright © 2022 Mădălin Ionel Patrașcu <[email protected]> ;;; ;;; This file is part of GNU Guix. ;;; @@ -1616,6 +1617,10 @@ (define-public guix-jupyter #:parallel-tests? #f ;kernels.scm frequently breaks in parallel #:phases (modify-phases %standard-phases + (add-before 'build 'set-GUILE_AUTO_COMPILE + (lambda _ + ;; To avoid warnings relating to 'guild'. + (setenv "GUILE_AUTO_COMPILE" "0"))) (add-after 'install 'sed-kernel-json (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) @@ -1651,7 +1656,11 @@ (define-public guix-jupyter (("guix-jupyter-kernel.scm") (string-append out "/share/guile/site/3.0/" "guix-jupyter-kernel.scm"))) - #t)))))) + #t))) + (add-before 'check 'change-home + (lambda _ + ;; Change from /homeless-shelter to /tmp for write permission. + (setenv "HOME" "/tmp")))))) (native-inputs (list autoconf automake base-commit: 0624e7dbad2f53b7f752e9f1109765470f369298 -- 2.37.3
