From 7351aa3b3e7f1875d88e3c93b6e593daa6562f5b Mon Sep 17 00:00:00 2001 From: Maxime Devos Date: Fri, 2 Jul 2021 12:07:07 +0200 Subject: [PATCH] gnu: virtualization: Add 'bash' input for 'wrap-program'. It is required for cross-compilation. * gnu/packages/virtualization.scm (ganeti)[inputs]: Add 'bash-minimal'. (virt-manager)[inputs]: Likewise. (criu)[inputs]: Likewise. Remove labels. Signed-off-by: Maxim Cournoyer Modified-by: Maxim Cournoyer Change-Id: Ib5ae01ea43ac99085a172e0e015d316c99b66897 --- gnu/packages/virtualization.scm | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 9f43577ef2..74dafa2e82 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -1030,7 +1030,8 @@ (define* (wrap? file #:rest _) ("shelltestrunner" ,shelltestrunner) ("tzdata" ,tzdata-for-tests))) (inputs - (list iputils ;for 'arping' + (list bash-minimal + iputils ;for 'arping' curl fping iproute @@ -1758,7 +1759,8 @@ (define-public virt-manager (add-after 'wrap 'glib-or-gtk-wrap (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))))) (inputs - (list dconf + (list bash-minimal + dconf gtk+ gtk-vnc gtksourceview-4 @@ -1963,7 +1965,7 @@ (define-public criu (build-system gnu-build-system) (arguments `(#:test-target "test" - #:tests? #f ; tests require mounting as root + #:tests? #f ; tests require mounting as root #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")) (string-append "LIBDIR=$(PREFIX)/lib") @@ -1989,14 +1991,13 @@ (define-public criu (("ARMV.*:=.*") "ARMV := 7\n")) ;; Hard-code the correct PLUGINDIR above. (substitute* "criu/include/plugin.h" - (("/var") (string-append (assoc-ref outputs "out")))) - )) + (("/var") (string-append (assoc-ref outputs "out")))))) ;; TODO: use ;; (@@ (guix build python-build-system) ensure-no-mtimes-pre-1980) ;; when it no longer throws due to trying to call UTIME on symlinks. (add-after 'unpack 'ensure-no-mtimes-pre-1980 (lambda _ - (let ((early-1980 315619200)) ; 1980-01-02 UTC + (let ((early-1980 315619200)) ; 1980-01-02 UTC (ftw "." (lambda (file stat flag) (unless (or (<= early-1980 (stat:mtime stat)) (eq? (stat:type stat) 'symlink)) @@ -2030,15 +2031,16 @@ (define-public criu (let ((out (assoc-ref outputs "out"))) (for-each delete-file (find-files out "\\.a$")))))))) (inputs - `(("protobuf" ,protobuf) - ("python-protobuf" ,python-protobuf) - ("iproute" ,iproute) - ("libaio" ,libaio) - ("libcap" ,libcap) - ("libnet" ,libnet) - ("libnl" ,libnl) - ("libbsd" ,libbsd) - ("nftables" ,nftables))) + (list bash-minimal + protobuf + python-protobuf + iproute + libaio + libcap + libnet + libnl + libbsd + nftables)) (native-inputs (list pkg-config perl