Commit graph

106386 commits

Author SHA1 Message Date
Leo Famulari 7b0fd5a0b4
gnu: linux-libre 4.19: Update to 4.19.268.
* gnu/packages/linux.scm (linux-libre-4.19-version): Update to 4.19.268.
(linux-libre-4.19-pristine-source): Update hash.
2022-12-09 19:55:37 -05:00
Leo Famulari 733396eb2b
gnu: linux-libre 5.4: Update to 5.4.226.
* gnu/packages/linux.scm (linux-libre-5.4-version): Update to 5.4.226.
(linux-libre-5.4-pristine-source): Update hash.
2022-12-09 19:55:37 -05:00
Leo Famulari 773ba52f93
gnu: linux-libre 5.10: Update to 5.10.158.
* gnu/packages/linux.scm (linux-libre-5.10-version): Update to 5.10.158.
(linux-libre-5.10-pristine-source): Update hash.
2022-12-09 19:55:37 -05:00
Leo Famulari b52ffca2bb
gnu: linux-libre 5.15: Update to 5.15.82.
* gnu/packages/linux.scm (linux-libre-5.15-version): Update to 5.15.82.
(linux-libre-5.15-pristine-source): Update hash.
2022-12-09 19:55:37 -05:00
Leo Famulari 67e8fd6b38
gnu: linux-libre: Update to 6.0.12.
* gnu/packages/linux.scm (linux-libre-6.0-version): Update to 6.0.12.
(linux-libre-6.0-pristine-source): Update hash.
2022-12-09 19:55:36 -05:00
Ludovic Courtès 591af24ade
installer: Print progress bars and such as soon as \r is read.
Fixes <https://issues.guix.gnu.org/59922>.

Previously progress bars and related things would be buffered by
'run-external-command-with-line-hooks' until \n is read.

* gnu/installer/utils.scm (run-external-command-with-line-hooks): Use
'read-delimited' rather than 'get-line'.  Pass 'concat as the last
argument.
(%display-line-hook): Remove.
(run-command): Use 'display' instead of '%display-line-hook'.
(%syslog-line-hook): Add "\n" when LINE doesn't end in \n.
(%installer-log-line-hook): Do not add an extra newline.
(installer-log-line): Add an extra newline.
2022-12-09 17:49:22 +01:00
Ludovic Courtès 556520a33c
services: nscd: Use nscd from 'glibc-final' on native builds.
This reduces the closure size of systems by removing one glibc
copy--namely (@ (gnu packages base) glibc) in addition to (@ (gnu
packages commencement) glibc-final).

* gnu/services/base.scm (<nscd-configuration>)[glibc]: Change default
value to use 'let-system' and 'canonical-package' as appropriate.
2022-12-09 16:43:25 +01:00
Ludovic Courtès 755c4b496e
system: Remove unused yggdrasil OS template.
This file was added in fe1cd098d2 but it's
not referenced from anywhere, not even gnu/local.mk.  Furthermore, we
don't normally add full OS examples for the purposes of illustrating the
use of a single service.

* gnu/system/examples/yggdrasil.tmpl: Remove.
2022-12-09 16:40:53 +01:00
Ludovic Courtès 0406df0b9b
environment: '-C' doesn't throw when the NSS is dysfunctional.
Previously, if the name service switch was dysfunctional, as can happen
on foreign distros lacking nscd, "guix shell -C" would crash with a
backtrace on the uncaught 'getpwuid' exception.  To address that, catch
the exception and deal with it gracefully.

Reported by remsd1 on #guix.

* guix/scripts/environment.scm (launch-environment/container): Wrap
'getpwuid' call in 'false-if-exception'.
2022-12-09 09:59:53 +01:00
Tobias Geerinckx-Rice 416a691cff
guix-install.sh: Authorize all project build farms at once.
* etc/guix-install.sh (sys_authorize_build_farms):
Iterate over all hosts.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2022-12-09 09:59:32 +01:00
Ludovic Courtès 156a881001
services: base: Use 'match-record' instead of 'match'.
* gnu/services/base.scm (agetty-shepherd-service)
(mingetty-shepherd-service)
(nscd.conf-file)
(udev-shepherd-service)
(udev-etc)
(gpm-shepherd-service)
(network-set-up/linux)
(network-tear-down/linux)
(static-networking-shepherd-service)
(greetd-agreety-tty-session-command)
(greetd-agreety-tty-xdg-session-command): Use 'match-record' instead of
'match'.
(guix-accounts): Use <guix-configuration> accessors.
(udev-service-type): Use <udev-configuration> accessors.
2022-12-08 13:21:53 +01:00
Ludovic Courtès 93d37985da
home: services: Use 'match-record' instead of 'match'.
* gnu/home/services/mcron.scm (home-mcron-shepherd-services): Use
'match-record' instead of 'match'.
* gnu/home/services/shells.scm (home-bash-extensions): Likewise.
* gnu/home/services/xdg.scm (serialize-xdg-desktop-entry): Likewise.
2022-12-08 13:21:46 +01:00
Ludovic Courtès 883aa80b45
doc: Recommend 'match-record'.
* doc/contributing.texi (Data Types and Pattern Matching): Recommend
'match-record'.
2022-12-08 13:21:35 +01:00
Ludovic Courtès 754a7660a1
records: 'match-record' checks fields at macro-expansion time.
This allows 'match-record' to be more efficient (field offsets are
computed at compilation time) and to report unknown fields at
macro-expansion time.

* guix/records.scm (map-fields): New macro.
(define-record-type*)[rtd-identifier]: New procedure.
Define TYPE as a macro and use a separate identifier for the RTD.
(lookup-field, match-record-inner): New macros.
(match-record): Rewrite in terms of 'match-error-inner'.
* tests/records.scm ("match-record, simple")
("match-record, unknown field"): New tests.
* gnu/services/cuirass.scm (cuirass-shepherd-service): Rename 'log-file'
local variable to 'main-log-file'.
* gnu/services/getmail.scm (serialize-getmail-configuration-file): Move
after <getmail-configuration-file> definition.
2022-12-08 13:21:23 +01:00
Ludovic Courtès a420b4f34e
services: fail2ban: Start server in the foreground.
Previously, we were passing '-b', thereby starting the server in the
background.  Consequently the 'start' method could complete before the
server was ready to accept connections on its socket, leading to
non-deterministic test failures.

Reported by Mathieu Othacehe <othacehe@gnu.org>.

* gnu/services/security.scm (fail2ban-shepherd-service): Change
FAIL2BAN-ACTION to invoke 'fail2ban-client'.
Change 'start' method to use 'make-forkexec-constructor'; start the
server in the foreground with '-f' and pass '-x' to force execution of
the server, as done upstream in 'fail2ban.service.in'.
2022-12-06 17:49:50 +01:00
Ludovic Courtès a508b5c778
services: fail2ban: Remove unnecessary Shepherd 'modules' field.
* gnu/services/security.scm (fail2ban-shepherd-service): Remove
unnecessary 'modules' field.
2022-12-06 17:07:46 +01:00
Ludovic Courtès e45c83c397
services: fail2ban: 'stop' returns #f when the dameon is stopped.
* gnu/services/security.scm (fail2ban-shepherd-service): Change
FAIL2BAN-ACTION to return an 'invoke' gexp.
Adjust the shepherd 'start' and 'stop' fields accordingly.  Have 'stop'
return #f on success.
2022-12-06 17:07:12 +01:00
Ludovic Courtès fe563a87ad
gnu: texinfo, info-reader: Do not run tests when cross-compiling.
Fixes a regression introduced in
a3264f31df.

Reported by Mathieu Othacehe <othacehe@gnu.org>.

* gnu/packages/texinfo.scm (texinfo)[arguments]: Change #:tests? to not
run tests when cross-compiling.
2022-12-06 15:22:26 +01:00
Ludovic Courtès 9ad14196ce
image: Clarify comment.
* gnu/system/image.scm: Adjust comment.
2022-12-06 15:11:44 +01:00
Ludovic Courtès 6232959311
tests: docker-system: Increase image size.
* gnu/tests/docker.scm (run-docker-system-test)[vm]: Increase
'disk-image-size'.
2022-12-06 15:10:24 +01:00
Ludovic Courtès f59aa79ca3
system: vm: Non-volatile 'run-vm.sh' creates a CoW image.
Previously, copying the image would consume a lot of space and was
I/O-intensive, to the point that the marionette connection timeout of
20s could be reached when running tests like "docker-system".

* gnu/system/vm.scm (common-qemu-options): Pass 'format=' for each
'-drive' option.
(system-qemu-image/shared-store-script)[copy-image]: New variable.
[builder]: Use it when VOLATILE? is false.
2022-12-06 15:06:35 +01:00
Maxim Cournoyer 2493de0d1a
Revert "tests: install: Fix iso-image-installer test."
This reverts commit 0f66ef9aa9.  e2fsprogs is
now included in the installation operating system since
34f69bc6e6ea555929ecca83ee7592f5261ff5f2, making this workaround obsolete.

Suggested-by: Ludovic Courtès <ludo@gnu.org>
2022-12-06 10:24:59 +01:00
Maxim Cournoyer ba4aed0f1f
install: Add missing e2fsprogs utility.
* gnu/system/install.scm (%installer-disk-utilities): Add e2fsprogs.

Reported-by: Adam Kandur <kefironpremise@gmail.com>
2022-12-06 10:24:55 +01:00
Maxim Cournoyer aeecd06ab9
system: Rename and move %base-packages-disk-utilities.
Rationale: It is only used in INSTALLATION-OS and doesn't make sense to be
used in another context, given that file systems now automatically pull their
dependencies since commit 45eac6cdf5 (services:
Add file system utilities to profile).

* gnu/system.scm (%base-packages-disk-utilities): Deprecate and rename to...
* gnu/system/install.scm (%installer-disk-utilities): ... this.
(installation-os) [packages]: Adjust accordingly.
2022-12-06 10:24:39 +01:00
Maxim Cournoyer 43e18fd6c6
system: Add e2fsprogs to %base-packages-utils.
Rationale: Even when not using an ext file system, the utilities provided by
e2fsprogs are useful, for example to set the copy-on-write attribute of a
Btrfs file system.

* gnu/system.scm (%base-packages-utils): Add e2fsprogs.
2022-12-06 10:23:09 +01:00
zimoun e692cb6035
gnu: julia-documenter: Fix test suite regression.
* gnu/packages/julia-xyz.scm (julia-documenter)[arguments]<#:phases>:
Substitute a work around to fix the change of 'git submodule' default
behaviour introduced by Git v2.38.1.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-12-05 22:24:38 +01:00
Ludovic Courtès 241772d5c0
installer: Log provenance data.
* gnu/installer.scm (provenance-sexp): New procedure.
(installer-program)[installer-builder]: Add 'installer-log-line' call.
2022-12-05 14:57:15 +01:00
Julien Lepiller 29a09fa5e4
nls: Update translations.
po/packages/vi.po: New file.
po/packages/LINGUAS: Add it.
2022-12-04 23:15:02 +01:00
Maxim Cournoyer 41407fda7a
services: configuration: Rename location accessor to "source-location".
Fixes <https://issues.guix.gnu.org/59423>.

* gnu/services/configuration.scm (define-configuration-helper): Rename the
accessor of the %location field from "NAME-location" to
"NAME-source-location".

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Reported-by: Pierre Langlois <pierre.langlois@gmx.com>
2022-12-04 21:47:19 +01:00
Tobias Geerinckx-Rice c8316c1e47
gnu: xdg-desktop-portal-wlr: Install missing documentation.
* gnu/packages/freedesktop.scm (xdg-desktop-portal-wlr)[arguments]: Add a new
'install-documentation phase.
2022-12-04 01:00:00 +01:00
Maxim Cournoyer 0ffa501f2b
Revert "gnu: make-linux-libre*: Remove input labels."
This reverts commit dfc6957a5a.  git-bisect
found it broke guix pull on non-x86_64 systems like powerpc64le, for reasons
to investigate.
2022-12-09 08:18:42 -05:00
Tobias Geerinckx-Rice f49682a09e
guix-install.sh: Authorize all project build farms at once.
* etc/guix-install.sh (sys_authorize_build_farms):
Iterate over all hosts.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
2022-12-09 09:46:22 +01:00
Efraim Flashner 7baba7ab58
gnu: julia-optimtestproblems: Add missing dependencies.
* gnu/packages/julia-xyz.scm (julia-optimtestproblems)[arguments]: Add
missing base dependencies to julia-package-dependencies.
2022-12-09 10:15:34 +02:00
Efraim Flashner 7d0a263846
gnu: julia-statsbase: Update to 0.33.10.
* gnu/packages/julia-xyz.scm (julia-statsbase): Update to 0.33.10.
2022-12-09 10:15:34 +02:00
Efraim Flashner ec7e7f0033
gnu: julia-distances: Update to 0.10.7.
* gnu/packages/julia-xyz.scm (julia-distances): Update to 0.10.7.
[arguments]: Skip an additional test on 32-bit systems.
2022-12-09 10:15:34 +02:00
Efraim Flashner f0af4ecc7b
gnu: julia-bfloat16s: Update to 0.4.0.
* gnu/packages/julia-xyz.scm (julia-bfloat16s): Update to 0.4.0.
2022-12-09 10:15:33 +02:00
Ludovic Courtès b0b1ce9dca
gnu: guile-next: Update to a1a8558.
* gnu/packages/guile.scm (guile-next): Update to a1a8558.
2022-12-09 08:46:22 +01:00
Greg Hogan 63a483265a
gnu: Add htmlq.
* gnu/packages/rust-apps.scm (htmlq): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-12-09 08:46:22 +01:00
Greg Hogan 8c7c571d44
gnu: Add rust-kuchiki-0.8.
* gnu/packages/crates-io.scm (rust-kuchiki-0.8): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-12-09 08:46:22 +01:00
jgart dd9033fc49
gnu: Add guile-jtd.
* gnu/packages/guile-xyz.scm (guile-jtd): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-12-09 08:46:21 +01:00
Hilton Chain 7fde9758c5
gnu: Add buku-run.
* gnu/packages/web.scm (buku-run): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-12-09 08:46:21 +01:00
Ludovic Courtès e625e9b194
environment: '-C' doesn't throw when the NSS is dysfunctional.
Previously, if the name service switch was dysfunctional, as can happen
on foreign distros lacking nscd, "guix shell -C" would crash with a
backtrace on the uncaught 'getpwuid' exception.  To address that, catch
the exception and deal with it gracefully.

Reported by remsd1 on #guix.

* guix/scripts/environment.scm (launch-environment/container): Wrap
'getpwuid' call in 'false-if-exception'.
2022-12-09 08:46:21 +01:00
Sharlatan Hellseher 3405b2b16c
teams: science: Add modules to the scope.
* etc/teams.scm.in (science): Add algebra, astronomy, geo, chemestry,
maths modules to the scope.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-12-09 14:23:32 +08:00
Sharlatan Hellseher 91641093e2
gnu: rawtherapee: Update to 5.9.
* gnu/packages/photo.scm (rawtherapee): Update to 5.9.
[arguments]: Use gexp.
[inputs]: Remove labels.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-12-09 14:18:17 +08:00
Gabriel Wicki ec9326f021
system: images: Add networking support to pine64 image.
* gnu/system/images/pine64.scm (pine64-barebones-os) [services]: Add
dhcp-client-service-type and ntp-service-type to the list of services.
[packages]: Add nss-certs to the list of packages.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-12-09 11:02:15 +08:00
EuAndreh 8d6feb4b10
services: wireguard: Use the parameterized wireguard package.
* gnu/services/vpn.scm (wireguard-activation): Use the "wg" binary from
the package given to <wireguard-configuration>.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-12-09 10:53:50 +08:00
cage 898f9adc20
gnu: gmid: Update to 1.8.6.
* gnu/packages/web.scm (gmid): Update to 1.8.6.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-12-09 10:45:35 +08:00
Ron Nazarov 426af37387
gnu: nethack: Fix missing command line arguments support in wrapper.
* gnu/packages/games.scm (nethack)[phases]: Pass "$@" to nethack.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-12-09 10:34:14 +08:00
Felix Gruber f58978868a
gnu: sameboy: Update to 0.15.8.
* gnu/packages/emulators.scm (sameboy): Update to 0.15.8.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-12-09 10:19:19 +08:00
Edison Ibáñez b44f0261f8
gnu: xonsh: Update to 0.13.4.
* gnu/packages/shells.scm (xonsh): Update to 0.13.4.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-12-09 10:13:18 +08:00