Commit graph

57292 commits

Author SHA1 Message Date
Ludovic Courtès
530e31b824
hydra: Remove uses of _IOLBF.
_IOLBF & co. were deprecated in Guile 2.2 and removed in 3.0.

* build-aux/hydra/gnu-system.scm: Pass 'line instead of _IOLBF to 'setvbuf'.
* build-aux/hydra/guix-modular.scm: Likewise.
2020-03-05 23:40:24 +01:00
Mathieu Othacehe
e666a92344
tests: install: Add %test-gui-installed-os-encrypted.
* gnu/tests/install.scm (%test-gui-installed-os-encrypted): New variable,
(guided-installation-test): set a swap-device only if there is no encryption.
2020-03-05 23:40:24 +01:00
Mathieu Othacehe
64704be417
installer: Fix cow-store umount.
This fixes <https://bugs.gnu.org/39712>.

The guix-daemon was preventing the cow-store umount, so restart it.  Some
udevd workers, using cow-store files might also still be around, so have some
umount retries.

* gnu/installer/final.scm (kill-cow-users): New procedure,
(umount-cow-store): restart guix-daemon and kill all processes started from
within the cow-store before trying to umount the store overlay. Also try 5
times to umount the overlay in case it is still busy.
2020-03-05 23:40:24 +01:00
Ludovic Courtès
ccb1a8c437
tests: install: Add "gui-installed-os".
* gnu/installer/tests.scm: New file.
* gnu/local.mk (INSTALLER_MODULES): Add it.
* gnu/tests/install.scm (run-install): Add #:gui-test.  Add (gnu
installer tests) to the marionette imported modules.  Honor GUI-TEST.
Check whether SCRIPT is true.
(%root-password, %syslog-conf): New variable.
(operating-system-with-console-syslog, gui-test-program)
(guided-installation-test): New procedures.
(%extra-packages, installation-os-for-gui-tests)
(%test-gui-installed-os): New variable.
2020-03-05 23:40:23 +01:00
Ludovic Courtès
e458726ab4
installer: Honor /tmp/installer-system-init-options.
* gnu/installer/final.scm (install-system): Honor
"/tmp/installer-system-init-options".
2020-03-05 23:40:23 +01:00
Ludovic Courtès
8a4b11c6a9
installer: Run commands without hopping through the shell.
* gnu/installer/utils.scm (run-shell-command): Rename to...
(run-command): Remove call to 'call-with-temporary-output-file' and hop
through Bash.  Expect COMMAND to be a list of strings rather than a
string.
* gnu/installer/final.scm (install-system): Turn INSTALL-COMMAND into a
list of strings and pass it to 'run-command'.
* gnu/installer/newt/page.scm (edit-file): Likewise.
2020-03-05 23:40:23 +01:00
Ludovic Courtès
f901f5d2bc
installer: Bypass connectivity check when /tmp/installer-assume-online exists.
This is useful for automated tests.

* gnu/installer/newt/network.scm (wait-service-online)[online?]: New
procedure.  Check for /tmp/installer-assume-online.
Use it instead of 'connman-online?'.
2020-03-05 23:40:22 +01:00
Ludovic Courtès
63b8c089c1
installer: Implement a dialog on /var/guix/installer-socket.
This will allow us to automate testing of the installer.

* gnu/installer/utils.scm (%client-socket-file)
(current-server-socket, current-clients): New variables.
(open-server-socket, call-with-server-socket): New procedure.
(with-server-socket): New macro.
(run-shell-command): Add call to 'send-to-clients'.  Select on both
current-input-port and current-clients.
* gnu/installer/steps.scm (run-installer-steps): Wrap 'call-with-prompt'
in 'with-socket-server'.  Call 'sigaction' for SIGPIPE.
* gnu/installer/newt/page.scm (watch-clients!, close-port-and-reuse-fd)
(run-form-with-clients, send-to-clients): New procedures.
(draw-info-page): Add call to 'run-form-with-clients'.
(run-input-page): Likewise.  Handle EXIT-REASON equal to 'exit-fd-ready.
(run-confirmation-page): Likewise.
(run-listbox-selection-page): Likewise.  Define 'choice->item' and use it.
(run-checkbox-tree-page): Likewise.
(run-file-textbox-page): Add call to 'run-form-with-clients'.  Handle
'exit-fd-ready'.
* gnu/installer/newt/partition.scm (run-disk-page): Pass
 #:client-callback-procedure to 'run-listbox-selection-page'.
* gnu/installer/newt/user.scm (run-user-page): Call
'run-form-with-clients'.  Handle 'exit-fd-ready'.
* gnu/installer/newt/welcome.scm (run-menu-page): Define
'choice->item' and use it.  Call 'run-form-with-clients'.
* gnu/installer/newt/final.scm (run-install-success-page)
(run-install-failed-page): When (current-clients) is non-empty, call
'send-to-clients' without displaying a choice window.
2020-03-05 23:40:22 +01:00
Ludovic Courtès
5ce84b1713
installer: Use a Guile-Newt snapshot that supports 'form-watch-fd'.
* gnu/installer.scm (guile-newt): New variable.
2020-03-05 23:40:22 +01:00
Ludovic Courtès
91ba90c18b
tests: 'run-basic-test' can enter a root password.
* gnu/tests/base.scm (run-basic-test): Add #:root-password and honor it.
2020-03-05 23:40:22 +01:00
Marius Bakke
aca00b0a36
gnu: CMake: Update to 3.16.5.
* gnu/packages/cmake.scm (cmake-bootstrap): Update to 3.16.5.
2020-03-05 23:36:07 +01:00
Marius Bakke
a343d6bab7
gnu: Remove ld-wrapper-next.
* gnu/packages/ld-wrapper-next.in: Delete file.
* gnu/local.mk (MISC_DISTRO_FILES): Adjust accordingly.
* gnu/packages/chromium.scm (ld-wrapper-next): Remove variable.
(ungoogled-chromium)[native-inputs]: Remove LD-WRAPPER-NEXT.
2020-03-05 23:36:07 +01:00
Marius Bakke
feb8c5dac3
gnu: ld-wrapper: Add support for quoted arguments in response files.
* gnu/packages/ld-wrapper.in (expand-arguments): Add TOKENIZE procedure, and
use that to parse the response file.
2020-03-05 23:36:06 +01:00
Marius Bakke
4a50e983ba
gnu: ed: Update to 1.16.
* gnu/packages/ed.scm (ed): Update to 1.16.
2020-03-05 23:36:06 +01:00
Marius Bakke
8e98f750e6
gnu: bzip2: Do not retain a reference to the bootstrap bzip.
* gnu/packages/compression.scm (bzip2)[arguments]: Add phase
'hide-input-bzip2'.
2020-03-05 23:36:06 +01:00
Marius Bakke
d7ca0f73ff
gnu: coreutils: Update to 8.32.
* gnu/packages/base.scm (coreutils): Update to 8.32.
[arguments]: Remove obsolete phase.
2020-03-05 23:36:06 +01:00
Marius Bakke
44a33ee90d
gnu: texlive-bin: Fix build with Poppler 0.86.
* gnu/packages/patches/texlive-bin-poppler-0.86.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/tex.scm (texlive-bin)[source](patches): Add it.
2020-03-05 23:36:05 +01:00
Marius Bakke
a7924ba9f7
gnu: Poppler: Update to 0.86.1.
* gnu/packages/pdf.scm (poppler): Update to 0.86.1.
2020-03-05 23:36:05 +01:00
Marius Bakke
df5a2e4f83
gnu: OpenBLAS: Update to 0.3.9.
* gnu/packages/maths.scm (openblas): Update to 0.3.9.
2020-03-05 23:36:05 +01:00
Marius Bakke
9694101666
gnu: cURL: Update to 7.69.0.
* gnu/packages/curl.scm (curl): Update to 7.69.0.
2020-03-05 23:36:05 +01:00
Marius Bakke
713c1dd0d5
gnu: fribidi: Update to 1.0.9.
* gnu/packages/fribidi.scm (fribidi): Update to 1.0.9.
[source](uri): Adjust tarball name.
2020-03-05 23:36:05 +01:00
Marius Bakke
275f874958
gnu: meson: Update to 0.53.2.
* gnu/packages/build-tools.scm (meson): Update to 0.53.2.
2020-03-05 23:36:04 +01:00
Marius Bakke
aec34459a3
gnu: glib: Update to 2.62.5.
* gnu/packages/glib.scm (glib): Update to 2.62.5.
2020-03-05 23:36:04 +01:00
Marius Bakke
53453242b7
gnu: Python: Update to 3.8.2.
* gnu/packages/python.scm (python-3.8): Update to 3.8.2.
2020-03-05 23:36:04 +01:00
Marius Bakke
af88972bb8
gnu: clang-runtime: Fix build with glibc 2.31.
* gnu/packages/patches/clang-runtime-3.8-libsanitizer-mode-field.patch,
gnu/packages/patches/clang-runtime-3.9-libsanitizer-mode-field.patch,
gnu/packages/patches/clang-runtime-9-libsanitizer-mode-field.patch: New files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/llvm.scm (clang-runtime, clang-runtime-8, clang-runtime-7,
clang-runtime-6, clang-runtime-3.9.1, clang-runtime-3.8, clang-runtime-3.7):
Add the respective patches.
2020-03-05 23:36:04 +01:00
Marius Bakke
3fd9c90c4a
gnu: clang-runtime: Adjust for CPLUS_INCLUDE_PATH changes.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[arguments]: Add #:modules
and #:phases.
2020-03-05 23:36:04 +01:00
Mathieu Othacehe
08cf730a7e
gnu: qemu-minimal: Fix build.
This fixes <https://issues.guix.info/issue/36882>.

* gnu/packages/virtualization.scm (qemu-minimal)[arguments]: Add a
remove-glibc phase to remove glibc from C_INCLUDE_PATH.
2020-03-05 23:36:03 +01:00
Marius Bakke
c1cc52a2fe
gnu: librsvg: Incorporate grafted changes.
* gnu/packages/gnome.scm (librsvg): Update to 2.40.21.
[replacement]: Remove.
(librsvg/fixed): Remove variable.
2020-03-05 23:36:03 +01:00
Marius Bakke
e6bd8b5e1d
gnu: zziplib: Incorporate grafted changes.
* gnu/packages/compression.scm (zziplib)[replacement]: Remove.
[source](patches): New field.
(zziplib/fixed): Remove variable.
2020-03-05 23:36:03 +01:00
Björn Höfling
2c2b1ef854
gnu: java-openjfx-build: Add snippet.
* gnu/packages/java.scm (java-openjfx-build)[source]: Add snippet to remove
bundled gradle.
2020-03-05 22:10:17 +01:00
Ricardo Wurmus
a098b34980
gnu: python-anndata: Update to 0.7.1.
* gnu/packages/python-xyz.scm (python-anndata): Update to 0.7.1.
[arguments]: Move check phase after install phase; delete one test.
[propagated-inputs]: Add python-importlib-metadata, python-numcodecs,
python-packaging, and python-zarr.
[native-inputs]: Add python-joblib, python-pytest, and python-setuptools-scm.
2020-03-05 21:46:12 +01:00
Ricardo Wurmus
7032c1cc60
gnu: Add python-zarr.
* gnu/packages/python-xyz.scm (python-zarr): New variable.
2020-03-05 21:46:05 +01:00
Ricardo Wurmus
8e04b233f1
gnu: Add python-asciitree.
* gnu/packages/python-xyz.scm (python-asciitree): New variable.
2020-03-05 21:45:55 +01:00
Ricardo Wurmus
241409cd8a
gnu: Add python-numcodecs.
* gnu/packages/python-xyz.scm (python-numcodecs): New variable.
2020-03-05 21:45:46 +01:00
Ricardo Wurmus
24ce64216e
gnu: python-h5py: Update to 2.10.0.
* gnu/packages/python-xyz.scm (python-h5py): Update to 2.10.0.
[inputs]: Use hdf5-1.10.
[native-inputs]: Add pkg-config.
2020-03-05 21:45:14 +01:00
Masaya Tojo
5d0f33c2ab
gnu: Add emacs-ddskk.
* gnu/packages/emacs-xyz.scm (emacs-ddskk): New variable.
2020-03-05 19:22:42 +01:00
Nicolas Goaziou
67c525035f
gnu: libraqm: Parametrize version.
* gnu/packages/fontutils.scm (libraqm)[source]: Parametrize version.
2020-03-05 18:43:09 +01:00
Nicolas Goaziou
a1797f3244
gnu: Add libraqm.
* gnu/packages/fontutils.scm (libraqm): New variable.
2020-03-05 18:42:02 +01:00
Ludovic Courtès
5ec4156bbc
tests: Add a manifest for system tests.
The manifest can be passed to 'guix build -m', 'guix weather -m', and so
on.  It can also be passed to an installed 'guix' (without
./pre-inst-env), with the exception so far of installation tests.

* build-aux/run-system-tests.scm: Remove.  Move interesting bits move
to...
* etc/system-tests.scm: ... here.  New file.
* Makefile.am (EXTRA_DIST): Remove 'build-aux/run-system-tests.scm' and
add 'etc/system-tests.scm'.
(check-system): Rewrite to run 'guix build -m etc/system-tests.scm'.
2020-03-05 16:33:38 +01:00
Ludovic Courtès
c0b726c211
tests: Add <system-test> gexp compiler.
* gnu/tests.scm (compile-system-test): New gexp compiler.
2020-03-05 16:33:37 +01:00
Ludovic Courtès
e7671685a8
weather: Parameterize '%graft?' upfront.
* guix/scripts/weather.scm (guix-weather): Parameterize %GRAFT? upfront.
2020-03-05 16:33:37 +01:00
Ludovic Courtès
f42f39ad68
guix build: Parameterize '%graft?' upfront.
* guix/scripts/build.scm (guix-build): Add 'graft?' variable and
parameterize %GRAFT?.
2020-03-05 16:33:37 +01:00
Ludovic Courtès
c5a3d8f646
tests: "make check-system" includes the current commit ID, if any.
* build-aux/run-system-tests.scm (source-commit): New procedure.
(tests-for-current-guix): Add 'commit' parameter and pass it to
'channel-source->package'.
(run-system-tests): Call 'source-commit' and pass the result to
'tests-for-current-guix'.
2020-03-05 16:33:37 +01:00
Ludovic Courtès
dd1ee160be
tests: "make check-system" no longer interns source upfront.
* gnu/ci.scm (channel-build-system)[build, lower]: Honor #:source.
(channel-source->package): New procedure.
(system-test-jobs): Remove 'instance' and call to
'checkout->channel-instance'.  Use 'channel-source->package'.
* build-aux/run-system-tests.scm (tests-for-channel-instance): Rename to...
(tests-for-current-guix): ... this.  Change 'instance' to 'source'.
(run-system-tests): Use 'local-file' instead of 'interned-file' for
SOURCE.
2020-03-05 16:33:37 +01:00
Ludovic Courtès
d37b5a1b58
weather: Allow non-package objects in manifest.
* guix/scripts/weather.scm (package-outputs)[lower-object/no-grafts]:
New procedure.
Use it instead of 'package->derivation'.
2020-03-05 16:33:37 +01:00
Ludovic Courtès
5a675b2c67
guix build: Allow non-package objects in manifest.
* guix/scripts/build.scm (options->things-to-build)[manifest->packages]:
Remove.
Inline map of 'manifest-entry-item'.
* tests/guix-build.sh: Add test for "guix build -m" with non-package object.
2020-03-05 16:33:37 +01:00
Ludovic Courtès
3046e73b4c
ci: Move 'cross-jobs' procedure to the top level.
* gnu/ci.scm (cross-jobs): New procedure.  Moved from...
(hydra-jobs): ... here.
2020-03-05 16:33:37 +01:00
Pierre Neidhardt
94aab844c6
gnu: sbcl-cl-webkit: Update to 20200227.
* gnu/packages/lisp-xyz.scm (sbcl-cl-webkit): Update to 20200227.
2020-03-05 15:57:18 +01:00
Arun Isaac
69bb61f128
gnu: Add guile-xapian.
* gnu/packages/guile-xyz.scm (guile-xapian, guile3.0-xapian): New variables.
2020-03-05 19:59:46 +05:30
Arun Isaac
85c3a49a67
gnu: emacs-tldr: Update to 0-1.7203d1b.
* gnu/packages/emacs-xyz.scm (emacs-tldr): Update to 0-1.7203d1b.
[propagated-inputs]: Add emacs-request.
2020-03-05 15:56:32 +05:30