aboutsummaryrefslogtreecommitdiff
path: root/gnu.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2016-06-07 16:36:34 +0200
committerRicardo Wurmus <rekado@elephly.net>2016-08-12 21:04:15 +0200
commit309693e04093c505bd704a1f7f73aba9a9853113 (patch)
tree1e09f2d006aae133302f05f8a3c1519598dafc56 /gnu.scm
parentb3885778e8e438e8526a8ee9e96072fd00f5cae5 (diff)
downloadguix-309693e04093c505bd704a1f7f73aba9a9853113.tar.gz
guix-309693e04093c505bd704a1f7f73aba9a9853113.zip
gnu: Add libvirt.
* gnu/packages/qemu.scm (libvirt): New variable.
Diffstat (limited to 'gnu.scm')
0 files changed, 0 insertions, 0 deletions
dir %output) (mkdir (string-append %output "/eliug"))))))))) EOF guix environment --bootstrap -m "$tmpdir/manifest.scm" \ -m "$tmpdir/manifest2.scm" --pure \ -- "$SHELL" -c 'test -f "$GUIX_ENVIRONMENT/bin/guile" && test -d "$GUIX_ENVIRONMENT/eliug"' # Make sure '-r' works as expected. rm -f "$gcroot" expected="`guix environment --bootstrap --ad-hoc guile-bootstrap \ -- "$SHELL" -c 'echo $GUIX_ENVIRONMENT'`" guix environment --bootstrap -r "$gcroot" --ad-hoc guile-bootstrap \ -- guile -c 1 test `readlink "$gcroot"` = "$expected" # Make sure '-r' is idempotent. guix environment --bootstrap -r "$gcroot" --ad-hoc guile-bootstrap \ -- guile -c 1 test `readlink "$gcroot"` = "$expected" # Make sure '-p' works as expected. test $(guix environment -p "$gcroot" -- "$SHELL" -c 'echo $GUIX_ENVIRONMENT') = "$expected" paths1="$(guix environment -p "$gcroot" --search-paths)" paths2="$(guix environment --bootstrap --ad-hoc guile-bootstrap --search-paths)" test "$paths1" = "$paths2" rm "$gcroot" # Try '-r' with a relative file name. (cd "$tmpdir"; mkdir "gc-root"; guix environment --bootstrap -r "gc-root/r" --ad-hoc guile-bootstrap \ -- guile -c 1; rm "gc-root/r"; rmdir "gc-root") # Same with an absolute file name. guix environment --bootstrap -r "$PWD/$gcroot" --ad-hoc guile-bootstrap \ -- guile -c 1 test `readlink "$gcroot"` = "$expected" case "`uname -m`" in x86_64) # On x86_64, we should be able to create a 32-bit environment. guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ -- guile -c '(exit (string-prefix? "x86_64" %host-type))' guix environment --bootstrap --ad-hoc guile-bootstrap --pure \ -s i686-linux \ -- guile -c '(exit (string-prefix? "i686" %host-type))' ;; *) echo "nothing to do" >&2 ;; esac # Make sure we can build the environment of 'guix'. There may be collisions # in its profile (e.g., for 'gzip'), but we have to accept them. guix environment guix --bootstrap -n # Try program transformation options. mkdir "$tmpdir/emacs-36.8" drv="`guix environment --ad-hoc emacs -n 2>&1 | grep 'emacs.*\.drv'`" transformed_drv="`guix environment --ad-hoc emacs --with-source="$tmpdir/emacs-36.8" -n 2>&1 | grep 'emacs.*\.drv'`" test -n "$drv" test "$drv" != "$transformed_drv" case "$transformed_drv" in *-emacs-36.8.drv) true;; *) false;; esac rmdir "$tmpdir/emacs-36.8" # Transformation options without '--ad-hoc'. drv="`guix environment -n emacs-geiser 2>&1 | grep '\.drv$'`" transformed_drv="`guix environment -n emacs-geiser \ --with-input=emacs-minimal=vim 2>&1 | grep '\.drv$'`" test "$drv" != "$transformed_drv" case "$drv" in *-emacs-minimal*.drv*) true;; *) false;; esac case "$transformed_drv" in *-emacs-minimal*.drv*) false;; *) true;; esac case "$transformed_drv" in *-vim*.drv*) true;; *) false;; esac if guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null then # Compute the build environment for the initial GNU Make. guix environment --bootstrap --no-substitutes --search-paths --pure \ -e '(@ (guix tests) gnu-make-for-tests)' > "$tmpdir/a" # Make sure bootstrap binaries are in the profile. profile=`grep "^export PATH" "$tmpdir/a" | sed -r 's|^.*="(.*)/bin"|\1|'` # Make sure the bootstrap binaries are all listed where they belong. grep -E "^export PATH=\"$profile/bin\"" "$tmpdir/a" grep -E "^export C_INCLUDE_PATH=\"$profile/include\"" "$tmpdir/a" grep -E "^export LIBRARY_PATH=\"$profile/lib\"" "$tmpdir/a" for dep in bootstrap-binaries-0 gcc-bootstrap-0 glibc-bootstrap-0 do guix gc --references "$profile" | grep "$dep" done # 'make-boot0' itself must not be listed. guix gc --references "$profile" | grep make-boot0 && false # Make sure that the shell spawned with '--exec' sees the same environment # as returned by '--search-paths'. guix environment --bootstrap --no-substitutes --pure \ -e '(@ (guix tests) gnu-make-for-tests)' \ -- /bin/sh -c 'echo $PATH $C_INCLUDE_PATH $LIBRARY_PATH' > "$tmpdir/b" ( . "$tmpdir/a" ; echo $PATH $C_INCLUDE_PATH $LIBRARY_PATH ) > "$tmpdir/c" cmp "$tmpdir/b" "$tmpdir/c" rm "$tmpdir"/* # The following test assumes 'make-boot0' has a "debug" output. make_boot0_debug="`guix build -e '(@ (guix tests) gnu-make-for-tests)' | grep -e -debug`" test "x$make_boot0_debug" != "x" # Make sure the "debug" output is not listed. guix gc --references "$profile" | grep "$make_boot0_debug" && false # Compute the build environment for the initial GNU Make, but add in the # bootstrap Guile as an ad-hoc addition. guix environment --bootstrap --no-substitutes --search-paths --pure \ -e '(@ (guix tests) gnu-make-for-tests)' \ --ad-hoc guile-bootstrap > "$tmpdir/a" profile=`grep "^export PATH" "$tmpdir/a" | sed -r 's|^.*="(.*)/bin"|\1|'` # Make sure the bootstrap binaries are all listed where they belong. grep -E "^export PATH=\"$profile/bin\"" "$tmpdir/a" grep -E "^export C_INCLUDE_PATH=\"$profile/include\"" "$tmpdir/a" grep -E "^export LIBRARY_PATH=\"$profile/lib\"" "$tmpdir/a" for dep in bootstrap-binaries-0 gcc-bootstrap-0 glibc-bootstrap-0 \ guile-bootstrap do guix gc --references "$profile" | grep "$dep" done # Make sure a package list with plain package objects and package+output # tuples can be used with -e. expr_list_test_code=" (list (@ (guix tests) gnu-make-for-tests) (list (@ (gnu packages bootstrap) %bootstrap-guile) \"out\"))" guix environment --bootstrap --ad-hoc --no-substitutes --search-paths \ --pure -e "$expr_list_test_code" > "$tmpdir/a" profile=`grep "^export PATH" "$tmpdir/a" | sed -r 's|^.*="(.*)/bin"|\1|'` for dep in make-test-boot0 guile-bootstrap do guix gc --references "$profile" | grep "$dep" done fi