Commit Graph

68423 Commits

Author SHA1 Message Date
Maxim Cournoyer 945ad48cd8
system: vm-image.tmpl: Add a crutch to allow refreshing the resolution.
Inspired by
1270b2e209.
The price to pay is about 5% of a CPU core usage in the guest in the worst
scenario.

* gnu/system/examples/vm-image.tmpl
(auto-update-resolution-crutch): New mcron job.
[services]: Extend the mcron-service with it.
2021-05-10 10:18:19 -04:00
Maxim Cournoyer dde0291476
gnu: guix: Update to 566982b. 2021-05-08 00:33:14 -04:00
Maxim Cournoyer 566982bc71
gnu: guix: Update to 1.3.0rc2. 2021-05-08 00:29:22 -04:00
Maxim Cournoyer 7a65beff0f
system: Add wget to %base-packages-networking.
Fixes <https://issues.guix.gnu.org/43530>.

Wget is typically included with most GNU/Linux distributions.  It adds about
~3 MiB to the system size.

* gnu/system.scm (%base-packages-networking): Add the wget package.
2021-05-07 17:20:41 -04:00
Maxim Cournoyer 3ab48ed6cd
gnu: system: Add SPICE capability to the VM image.
* gnu/system/examples/vm-image.tmpl (services)
[spice-vdagent-service-type]: Add service.
[slim-service-type] <xorg-configuration>: Add the xf86-video-qxl module.
2021-05-06 16:51:49 -04:00
Maxim Cournoyer b39c4e18f2
services: spice-vdagent: Clear the socket file prior to starting.
This fixes the following issue where spice-vdagent would fail to start if the
spice-vdagent-sock socket file already existed:

  spice-vdagentd: Fatal could not create the server socket
  /run/spice-vdagentd/spice-vdagent-sock: Error binding to address: Address
  already in use

The requirement is also modified to depend on dbus-system, a cue taken from
upstream's own systemd service file (see 'data/spice-vdagentd.service' in the
sources).

* gnu/services/spice.scm (spice-vdagent-activation): Delete procedure.
(spice-vdagent-shepherd-service): Fix indentation.
[requirement]: Replace udev by dbus-system.
[start]: Ensure the spice-vdagentd run-time directory exists and that the
spice-vdagent-sock socket file does *not* exist before forking the daemon.
2021-05-06 16:51:49 -04:00
Maxim Cournoyer a33afba4f1
gnu: spice-vdagent: Update to 0.21.0 and enable GTK+ support.
* gnu/packages/spice.scm (spice-vdagent): Update to 0.21.0.
Remove trailing #t.
[make-flags]: New argument.
[phases]{fix-test-termination}: New phase.
[inputs]: Add gtk+.
[native-inputs]{procps}: New input.
2021-05-06 16:51:49 -04:00
Ludovic Courtès 76c4646beb
gnu: guile2.2-guix: Add missing dependencies.
Reported by Maxime Devos <maximedevos@telenet.be>.

* gnu/packages/package-management.scm (guile2.2-guix)[inputs]
[propagated-inputs]: Add GUILE2.2-LIB, GUILE2.2-ZLIB, and
GUILE2.2-LZLIB.
2021-05-05 23:44:39 +02:00
Ludovic Courtès ca3780835f
gnu: guile-lzlib: Add Guile 2.2 variant.
* gnu/packages/guile.scm (guile2.2-lzlib): New variable.
2021-05-05 23:44:33 +02:00
Ludovic Courtès 3a3e62cc56
gnu: guile-zlib: Add Guile 2.2 variant.
* gnu/packages/guile.scm (guile2.2-zlib): New variable.
2021-05-05 23:44:28 +02:00
Maxim Cournoyer 6b0704339d
services: Fix the spice-vdagent service.
* gnu/services/spice.scm (spice-vdagent-activation): Update runtime directory
from /var/run/spice-vdagentd to /run/spice-vdagentd.
(spice-vdagent-service-type): Specify a default value and fix indentation.
2021-05-05 16:31:06 -04:00
Ludovic Courtès af66a9510f
gnu: guix: Phases refer to #:system, #:target, and #:native-inputs.
* gnu/packages/package-management.scm (guix)[arguments]: In
'copy-bootstrap-guile' and 'wrap-program' phases, refer to #:system,
 #:native-inputs, and #:target instead of unquoting (%current-system)
and (%current-target-system).
2021-05-05 12:08:28 +02:00
Ludovic Courtès c47f3fc135
gnu: guix: Avoid Bash wrapper.
The Bash wrapper created by 'wrap-program' creates an extra
indirection and may annoyingly emit locale warnings:

  /gnu/store/…-bash-minimal-5.0.16/bin/bash: warning: setlocale: LC_ALL: cannot change locale (wtf)

This warning would typically show up when running Guix, as produced by
'guix pack guix', on a foreign distro, annihilating efforts made in
1d4ab335b2 and
8a973abc6f.

* gnu/packages/package-management.scm (guix)[arguments]: In
'wrap-program' phase, remove 'string-join' call for PATH and GOPATH.
Replace 'wrap-program' call with a 'substitute*' form.  Remove (when
target ...) form.
[inputs]: Remove "bash-minimal" added in commit
38b9af7c92 and no longer needed.
2021-05-05 12:08:17 +02:00
Ludovic Courtès 72b7ea416b
gnu: guix: Add run-time dependency on Guile-Lib.
This is a followup to 02e2e093e8, which
added Guile-Lib as an input but did not add it to the wrapper's search
path.

* gnu/packages/package-management.scm (guix)[arguments]: In
'wrap-program' phase, add GUILE-LIB to DEPS.
2021-05-05 12:08:13 +02:00
Ludovic Courtès 2e4808465d
locale: Remove glibc 2.29 from '%default-locale-libcs'.
Having 2.29 is most likely no longer justified.  Removing it reduces the
closure size returned by:

  guix size $(guix system build gnu/system/install.scm)

from 1.6G to 1.5G.

* gnu/system/locale.scm (%default-locale-libcs): Remove GLIBC-2.29.
2021-05-04 14:19:11 +02:00
Brendan Tildesley ce5026b9f4
gnu: xfce4-settings: Add gsettings-desktop-schemas.
* gnu/packages/xfce.scm (xfce4-settings):[propagated-inputs]: Add
gsettings-desktop-schemas. This makes it appear in the system profile
via the xfce service. This fixes a bug where changing icon theme causes
xfce4-appearance-settings to crash with the error:

GLib-GIO-ERROR **: 15:41:45.828: Settings schema 'org.gnome.desktop.interface' is not installed
Trace/breakpoint trap

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-05-01 17:41:09 +02:00
Ludovic Courtès 78789cb6e2
gnu: openjdk: Disallow references to the JDK used for build.
This ensures JDKs don't unintentionally keep references to the one used
to build them, as reported at <https://issues.guix.gnu.org/31719#7> and
fixed by 97a43db8b4.

* gnu/packages/java.scm (icedtea-8)[arguments]: Add #:disallowed-references.
(openjdk9)[arguments]: Likewise.
(openjdk10)[arguments]: Likewise.
(openjdk11)[arguments]: Likewise.
2021-05-01 17:12:28 +02:00
Ludovic Courtès 668384d160
gnu: openjdk: Avoid non-top-level 'use-modules'.
* gnu/packages/java.scm (icedtea-8, openjdk9, openjdk11)[arguments]:
Replace non-top-level 'use-modules' by '@'.
2021-05-01 17:12:24 +02:00
Carlo Zancanaro 522a48a228
gnu: openjdk: Fix library substitution when libraries aren't found.
* gnu/packages/java.scm (icedtea-8, openjdk9, openjdk11)[arguments]:
Change 'find-library' to always return a string.  Change 'find-library'
callers to use 'string-append' rather than 'format'.  Starting from
97a43db8b4, 'find-library' could return #f
and JNI substitutions would emit a literal "#f".

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2021-05-01 17:12:21 +02:00
Carlo Zancanaro 92b02d0c18
gnu: openjdk: Clean up runtime dependencies between Java versions.
* gnu/packages/java.scm (icedtea-8, openjdk9, openjdk11): Do not consider
icedtea/openjdk input paths when rewriting JNI libraries.

Signed-off-by: Andreas Enge <andreas@enge.fr>
2021-05-01 17:12:15 +02:00
Maxim Cournoyer 9bf205e5a0
gnu: guix: Update to 6fd7f16. 2021-04-29 21:18:56 -04:00
Maxim Cournoyer 6fd7f161d7
gnu: guix: Update to 1.3.0rc1. 2021-04-29 17:38:02 -04:00
Mathieu Othacehe 68110f7288
gnu: kmscon: Fix layout setup.
Kmscon may discover multiple inputs, corresponding to multiple devices. This
means that the uxkb_dev_keymap_update function may be called multiple times,
and the FIFO is registered on each input poll loop.

When a new layout is written on the FIFO by the installer, the first input
picking up the message, will apply the new layout. However, that input may not
be the input that the user is currently using.

To fix it, register the FIFO on the first input poll loop, but apply the new
layout on all the inputs in the uxkb_keymap_update_handler function.

* gnu/packages/patches/kmscon-runtime-keymap-switch.patch
(uxkb_keymap_update_handler): Apply the new layout to all the inputs.
(input_new_dev): Register the FIFO fd only on the first input poll loop.
2021-04-29 12:06:07 +02:00
Mathieu Othacehe c254af8c73
installer: Add MSDOS disk label support on UEFI systems.
Fixes: <https://issues.guix.gnu.org/47889>.

* gnu/installer/parted.scm (esp-partition?): Remove the MSDOS check.
(auto-partition!): On MSDOS disks, check if an ESP partition is present. If
that's the case, do not remove it. Otherwise, if UEFI is supported, create
one.
2021-04-28 15:52:20 +02:00
Mathieu Othacehe 2b645e359e
installer: Force GPT disk label when UEFI is supported.
* gnu/installer/newt/partition.scm (run-label-page): Force the GPT disk label
when UEFI is supported.
2021-04-28 15:52:20 +02:00
Ludovic Courtès 8121bfb7d6
gnu: kmscon: Open a new keymap-update FIFO once a request has been processed.
Fixes <https://bugs.gnu.org/39341>.
Reported by Maxim Cournoyer <maxim.cournoyer@gmail.com>.

Until now, as soon as you had selected the keyboard layout in the
Guix System installer, kmscon would start spinning on epoll_wait(2)
calls because of an event on the initial FIFO file
descriptor (corresponding to the fact that the client closed it.)

* gnu/packages/patches/kmscon-runtime-keymap-switch.patch: In
'uxkb_keymap_update_handler', add calls to 'ev_eloop_rm_fd', 'close',
and 'uxkb_dev_keymap_update'  In 'uxkb_dev_keymap_update', add call
to 'unlink'.
2021-04-26 16:47:01 +02:00
Ludovic Courtès 601d86183a
gnu: xfce, mate: Propagate 'font-dejavu'.
Fixes <https://bugs.gnu.org/47713>.
Reported by bo0od <bo0od@riseup.net>.

This ensures applications such as IceCat can properly text (numbers in
the case of IceCat).

* gnu/packages/enlightenment.scm (enlightenment)[propagated-inputs]: Add
FONT-DEJAVU.
* gnu/packages/mate.scm (mate)[propagated-inputs]: New field.
* gnu/packages/xfce.scm (xfce)[propagated-inputs]: New field.
2021-04-26 16:46:56 +02:00
Ludovic Courtès 075de760d3
gnu: xfdesktop: Add Guix logo to default background.
* gnu/packages/xfce.scm (xfdesktop)[arguments]: In
'prepare-background-image' phase, add "xfce-verticals.png".
2021-04-26 16:46:52 +02:00
Tobias Geerinckx-Rice 533359cea8
gnu: wireshark: Update to 3.4.5 [security fixes].
* gnu/packages/networking.scm (wireshark): Update to 3.4.5.
2021-04-23 23:39:34 -04:00
Mark H Weaver bdb0ba51f8
gnu: icecat: Update to 78.10.0-guix0-preview1 [security fixes].
Includes fixes for CVE-2021-23961, CVE-2021-23994, CVE-2021-23995,
CVE-2021-23998, CVE-2021-23999, CVE-2021-24002, CVE-2021-29945, and
CVE-2021-29946.

* gnu/packages/gnuzilla.scm (%icecat-version, %icecat-build-id): Update.
(icecat-source): Update upstream source hash.
2021-04-23 23:39:34 -04:00
Ludovic Courtès e318e989b7
file-systems: read-partition-{uuid,label} don't swallow ENOENT & co.
Previously, (read-partition-uuid "/does/not/exist") would return #f.
With this change, a 'system-error exception is raised as expected.

* gnu/build/file-systems.scm (ENOENT-safe): Clarify docstring.
(partition-field-reader): Remove use of 'ENOENT-safe'.
(partition-predicate): Wrap READER in 'ENOENT-safe'.
2021-04-23 23:39:34 -04:00
Ludovic Courtès 52d71fe8dd
gnu: guile-git: Update to 0.5.1.
Fixes <https://bugs.gnu.org/47808>.
Reported by Bone Baboon <bone.baboon@disroot.org>.

* gnu/packages/guile.scm (guile-git): Update to 0.5.1.
2021-04-23 21:32:46 -04:00
Maxim Cournoyer 87c0d6265c
Merge remote-tracking branch 'origin/wip-ungrafting' into HEAD 2021-04-23 21:32:22 -04:00
WinterHound 3ddece896f
gnu: Add kirc.
* gnu/packages/irc.scm (kirc): New variable.

Signed-off-by: Leo Famulari <leo@famulari.name>
2021-04-18 14:43:01 -04:00
Tobias Geerinckx-Rice e1bb900307
gnu: libopenmpt: Update to 0.5.8 [security fixes].
* gnu/packages/audio.scm (libopenmpt): Update to 0.5.8.
2021-04-18 20:26:59 +02:00
Tobias Geerinckx-Rice 0379b6e806
gnu: cifs-utils: Update to 6.13.
* gnu/packages/samba.scm (cifs-utils): Update to 6.13.
2021-04-18 20:26:59 +02:00
Tobias Geerinckx-Rice e50a4847e4
gnu: python-poetry-core: Update to 1.0.3.
* gnu/packages/python-build.scm (python-poetry-core): Update to 1.0.3.
2021-04-18 20:26:59 +02:00
Tobias Geerinckx-Rice c135096b23
gnu: perl-pdf-api2: Update to 2.040.
* gnu/packages/perl.scm (perl-pdf-api2): Update to 2.040.
2021-04-18 20:26:59 +02:00
Tobias Geerinckx-Rice 6ba730cfe6
gnu: mujs: Update to 1.1.1.
* gnu/packages/javascript.scm (mujs): Update to 1.1.1.
2021-04-18 20:26:58 +02:00
Tobias Geerinckx-Rice 927b8f245b
gnu: psi-plus: Update to 1.5.1484.
* gnu/packages/messaging.scm (psi-plus): Update to 1.5.1484.
2021-04-18 20:26:58 +02:00
Tobias Geerinckx-Rice cf11bb5b9f
gnu: python-webtest: Update to 2.0.35.
* gnu/packages/python-web.scm (python-webtest): Update to 2.0.35.
2021-04-18 20:26:58 +02:00
Efraim Flashner 28e09d7fc0
gnu: poke: Update to 1.2.
* gnu/packages/engineering.scm (poke): Update to 1.2.
2021-04-18 21:01:04 +03:00
Lars-Dominik Braun 8fc4460889
gnu: python-lfdfiles: Fix build.
* gnu/packages/python-xyz.scm (python-lfdfiles) [source]: Remove
pre-generated C files.
[native-inputs]: Add python-cython.
[arguments]: Disable tests.
2021-04-18 15:09:33 +02:00
Nicolas Goaziou 9f2da0a061
gnu: emacs-vertico: Update to 0.5.
* gnu/packages/emacs-xyz.scm (emacs-vertico): Update to 0.5.
[arguments]: Remove obsolete phase as the "vertico.texi" file is no longer
provided.
2021-04-18 11:18:07 +02:00
Nicolas Goaziou 45105494e1
gnu: emacs-auctex: Update to 13.0.7.
* gnu/packages/emacs-xyz.scm (emacs-auctex): Update to 13.0.7.
2021-04-18 11:12:55 +02:00
Mathieu Othacehe 2ccb715ab3
ci: tarball: Use "current-guix" as profile name.
Fixes: <https://issues.guix.gnu.org/47841>.

* gnu/ci.scm (tarball-jobs): Use "current-guix" as profile name.
2021-04-18 10:45:53 +02:00
Mathieu Othacehe 868d8068a0
tests: ldap: Fix it.
Fixes: <https://issues.guix.gnu.org/47745>.

* gnu/tests/ldap.scm (run-ldap-test): Use a password with more that 8
characters so that dscreate doesn't fail.
2021-04-18 10:31:59 +02:00
Mathieu Othacehe 89af95313d
tests: Increase VM memory size.
The patchwork test sometimes fail because there's not enough available RAM in
the marionette. Increase the VM memory size to 1024MiB.

* gnu/tests/web.scm (run-patchwork-test): Increase VM memory size to 1024MiB.
2021-04-18 09:52:18 +02:00
Mathieu Othacehe 3b5c4e6fb2
tests: patchwork: Fix it.
The "http-get" test is sometimes failing because the Web server is not yet
initialized and returns the 500 error code.

Use the retry-or-error procedure, like in the tailon test to do a few retries.

* gnu/tests/web.scm (run-tailon-test): Move "retry-or-error" procedure to the
top level and adapt its call.
(run-patchwork-test): Use it.
2021-04-18 09:52:18 +02:00
Lars-Dominik Braun da28f04a5f
gnu: python-lfdfiles: Update to 2021.2.22.
* gnu/packages/python-xyz.scm (python-lfdfiles): Update to 2021.2.22.
2021-04-18 08:36:30 +02:00