aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/abduco.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/abduco.scm')
0 files changed, 0 insertions, 0 deletions
quot;$(realpath "$tmpdir")" > "$configdir/guix/shell-authorized-directories" # Ignoring 'manifest.scm' and 'guix.scm' in non-interactive use. (cd "$tmpdir"; guix shell --bootstrap -- true) mv "$tmpdir/guix.scm" "$tmpdir/manifest.scm" (cd "$tmpdir"; guix shell --bootstrap -- true) rm "$tmpdir/manifest.scm" # Honoring the local 'manifest.scm' file. cat > "$tmpdir/manifest.scm" <<EOF (specifications->manifest '("guile-bootstrap")) EOF cat > "$tmpdir/fake-shell.sh" <<EOF #!$SHELL # This fake shell allows us to test interactive use. exec echo "\$GUIX_ENVIRONMENT" EOF chmod +x "$tmpdir/fake-shell.sh" profile1="$(cd "$tmpdir"; SHELL="$(realpath fake-shell.sh)" guix shell --bootstrap)" profile2="$(guix shell --bootstrap guile-bootstrap -- "$SHELL" -c 'echo $GUIX_ENVIRONMENT')" test -n "$profile1" test "$profile1" = "$profile2" rm "$tmpdir/manifest.scm" # Do not read manifest when passed '-q'. echo "Broken manifest." > "$tmpdir/manifest.scm" (cd "$tmpdir"; SHELL="$(realpath fake-shell.sh)" guix shell --bootstrap -q) rm "$tmpdir/manifest.scm" # Make sure '-D' affects only the immediately following '-f', and not packages # that appear later: <https://issues.guix.gnu.org/52093>. cat > "$tmpdir/empty-package.scm" <<EOF (use-modules (guix) (guix tests) (guix build-system trivial)) (dummy-package "empty-package" (build-system trivial-build-system)) ;zero inputs EOF guix shell --bootstrap --pure -D -f "$tmpdir/empty-package.scm" \ guile-bootstrap -- guile --version rm "$tmpdir/empty-package.scm" # Make sure '--development' honors '--system'. this_system="$(guile -c '(use-modules (guix utils)) (display (%current-system))')" other_system="$(guile -c '(use-modules (guix utils)) (display (if (string=? "riscv64-linux" (%current-system)) "x86_64-linux" "riscv64-linux"))')" cat > "$tmpdir/some-package.scm" <<EOF (use-modules (guix utils) (guix packages) (gnu packages base)) (define unsupported-dependency (package (inherit grep) (name "unsupported-dependency") (supported-systems '()))) (package (inherit hello) (name "phony-package") (inputs (if (string=? (%current-system) "$this_system") (list unsupported-dependency) '()))) EOF guix shell -D -f "$tmpdir/some-package.scm" -n && false guix shell -D -f "$tmpdir/some-package.scm" -n -s "$other_system" if guile -c '(getaddrinfo "www.gnu.org" "80" AI_NUMERICSERV)' 2> /dev/null then # Compute the build environment for the initial GNU Make. guix shell --bootstrap --no-substitutes --search-paths --pure \ -D -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 # Honoring the local 'guix.scm' file. echo '(@ (guix tests) gnu-make-for-tests)' > "$tmpdir/guix.scm" (cd "$tmpdir"; guix shell --bootstrap --search-paths --pure > "b") cmp "$tmpdir/a" "$tmpdir/b" rm "$tmpdir/guix.scm" fi