Commit graph

92975 commits

Author SHA1 Message Date
Josselin Poiret
41eb0f01fc
installer: Use dynamic-wind to setup installer.
* gnu/installer.scm (installer-program): Use dynamic-wind, so that
completely uncaught exceptions can be printed properly.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:44 +01:00
Josselin Poiret
7cbd95a9f6
installer: Add error page when running external commands.
* gnu/installer/newt.scm (newt-run-command): Add it.
* gnu/installer/newt/page.scm (%ok-button, %exit-button,
%default-buttons, make-newt-buttons, run-textbox-page): Add them.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:44 +01:00
Josselin Poiret
726d0bd2f3
installer: Use named prompt to abort or break installer steps.
* gnu/installer/steps.scm (run-installer-steps): Set up
'installer-step prompt.
* gnu/installer/newt/ethernet.scm (run-ethernet-page)
* gnu/installer/newt/final.scm (run-config-display-page,
run-install-failed-page)
* gnu/installer/newt/keymap.scm (run-layout-page, run-variant-page)
* gnu/installer/newt/locale.scm (run-language-page,
run-territory-page, run-codeset-page, run-modifier-page,
run-locale-page)
* gnu/installer/newt/network.scm (run-technology-page,
wait-service-online)
* gnu/installer/newt/page.scm (run-listbox-selection-page,
run-checkbox-tree-page)
* gnu/installer/newt/partition.scm (button-exit-action)
* gnu/installer/newt/services.scm (run-desktop-environments-cbt-page,
run-networking-cbt-page, run-other-services-cbt-page,
run-network-management-page)
* gnu/installer/newt/timezone.scm (run-timezone-page)
* gnu/installer/newt/user.scm (run-user-page)
* gnu/installer/newt/welcome.scm (run-menu-page)
* gnu/installer/newt/wifi.scm (run-wifi-page): Use the 'installer-step
prompt to abort.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:44 +01:00
Josselin Poiret
59fec4a1a2
installer: Add nano to PATH.
* gnu/installer.scm (installer-program): Add nano to the installer
PATH.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
ed6567abbf
installer: Replace run-command by invoke in newt/page.scm.
* gnu/installer/newt/page.scm (edit-file): Replace it.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
dad9a1c0b2
installer: Fix run-file-textbox-page when edit-button is #f.
* gnu/installer/newt/page.scm (run-file-textbox-page): Check if
edit-button is #f.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
0a74509a69
installer: Raise condition when mklabel fails.
* gnu/installer/parted.scm (mklabel): Do it.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
af59e53631
installer: Use run-command-in-installer in (gnu installer parted).
* gnu/installer/parted.scm (remove-logical-devices,
create-btrfs-file-system, create-ext4-file-system,
create-fat16-file-system, create-fat32-file-system,
create-jfs-file-system, create-ntfs-file-system,
create-xfs-file-system, create-swap-partition, luks-format-and-open,
luks-close): Use run-command-in-installer.
(with-null-output-ports): Remove.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
408427a36c
installer: Add installer-specific run command process.
* gnu/installer/record.scm (installer)[run-command]: Add field.
* gnu/installer/utils.scm (run-command-in-installer): Add parameter.
* gnu/installer.scm (installer-program): Parameterize
run-command-in-installer with current installer's run-command.
* gnu/installer/newt.scm (newt-run-command): New variable.
(newt-installer): Use it.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
0b9fbbb4dd
installer: Capture external commands output.
* gnu/installer/utils.scm (run-external-command-with-handler,
run-external-command-with-line-hooks): New variables.
(run-command): Use run-external-command-with-line-hooks.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
c57ec6ed1e
installer: Remove specific logging code.
* gnu/installer/final.scm (install-system): Remove command logging to
syslog, as this is taken care of by the new facilities.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
2f7f1d11e9
installer: Keep PATH inside the install container.
* gnu/installer/final.scm (install-system): Set PATH inside the
container.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
438bf9b840
installer: Un-export syslog syntax.
* gnu/installer/utils.scm (syslog): Remove export.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
4f2fd33b4f
installer: Use new installer-log-line everywhere.
* gnu/installer.scm (installer-program)
* gnu/installer/final.scm (install-locale)
* gnu/installer/newt.scm (init)
* gnu/installer/newt/final.scm (run-final-page)
* gnu/installer/newt/page.scm (run-form-with-clients)
* gnu/installer/newt/partition.scm (run-partitioning-page)
* gnu/installer/parted.scm (eligible-devices, mkpart,
luks-format-and-open, luks-close, mount-user-partitions,
umount-user-partitions, free-parted):
* gnu/installer/steps.scm (run-installer-steps):
* gnu/installer/utils.scm (run-command, send-to-clients): Use it.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
7251b15d30
installer: Generalize logging facility.
* gnu/installer/utils.scm (%syslog-line-hook, open-new-log-port,
installer-log-port, %installer-log-line-hook, %display-line-hook,
%default-installer-line-hooks, installer-log-line): Add new
variables.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:43 +01:00
Josselin Poiret
4a68a00c8b
installer: Use define instead of let at top-level.
* gnu/installer.scm (installer-program): Improve readability by using
define at top-level.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:42 +01:00
Mathieu Othacehe
0d37a5df7e
installer: Add crash dump upload support.
Suggested-by: Josselin Poiret <dev@jpoiret.xyz>

* gnu/installer/dump.scm: New file.
* gnu/installer/newt/dump.scm: New file.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer/record.scm (<installer>)[dump-page]: New field.
* gnu/installer/steps.scm (%current-result): New variable.
(run-installer-steps): Update it.
* gnu/installer.scm (installer-program): Add tar and gip to the installer
path. Add guile-webutils and gnutls to the Guile extensions. Generate and send
the crash dump report.
* gnu/installer/newt.scm (exit-error): Add a report argument. Display the
report id.
(dump-page): New procedure.
(newt-installer): Update it.
2022-02-02 16:46:42 +01:00
jgart
8f58508327
gnu: utf-8-lineseparator: Update to cj8.
* gnu/packages/textutils.scm (utf-8-lineseparator): Update to cj8.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2022-02-02 14:44:01 +02:00
Efraim Flashner
5783091d66
gnu: texlive-latex-base: Skip JIT formats on riscv64-linux.
* gnu/packages/tex.scm (texlive-latex-base)[arguments]: Adjust custom
'build phase to also skip the jit formats on riscv64-linux.
2022-02-02 12:21:24 +02:00
Efraim Flashner
b34eb09311
gnu: syncthing: Add release-monitoring-url.
* gnu/packages/syncthing.scm (syncthing)[properties]: New field.
2022-02-02 12:06:49 +02:00
Efraim Flashner
25d1a31434
gnu: urlscan: Update to 0.9.9.
* gnu/packages/mail.scm (urlscan): Update to 0.9.9.
2022-02-02 12:06:49 +02:00
Efraim Flashner
cb1cb9de04
gnu: ruby-rubocop: Skip tests on riscv64-linux.
* gnu/packages/ruby.scm (ruby-rubocop)[arguments]: Skip tests when
building for riscv64-linux.
2022-02-02 12:06:49 +02:00
Efraim Flashner
f1dfe9a27a
gnu: ruby-stackprof: Adjust skipped test on riscv64-linux.
* gnu/packages/ruby.scm (ruby-stackprof)[arguments]: On riscv64-linux
adjust the 'skip-dubious-test phase.
2022-02-02 12:06:48 +02:00
Attila Lendvai
67f28faf42
services: tlp: Add config variables for battery charging.
* gnu/services/pm.scm (tlp-configuration): Add start-charge-thresh-bat0,
stop-charge-thresh-bat0, start-charge-thresh-bat1, stop-charge-thresh-bat1.
* doc/guix.texi (Power Management Services): Document them.

Signed-off-by: Ricardo Wurmus <rekado@elephly.net>
2022-02-02 10:43:04 +01:00
Michael Rohleder
f906d4911e
gnu: xfce4-cpufreq-plugin: Update to 1.2.6.
* gnu/packages/xfce.scm (xfce4-cpufreq-plugin): Update to 1.2.6.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-02-02 12:22:11 +08:00
Evgeny Pisemsky
385427256a
gnu: Add wireviz.
* gnu/packages/engineering.scm (wireviz): New variable.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
2022-02-02 11:51:05 +08:00
Maxim Cournoyer
fff4daa5c2
services/sound: Add a udev extension for the pulseaudio service type.
PulseAudio provides udev rules used to adjust the configuration of certain
hardware (e.g., sound cards); ensure they get used.

* gnu/services/sound.scm (pulseaudio-service-type): Extend the
udev-service-type with the pulseaudio package.
2022-02-01 21:48:01 -05:00
Marius Bakke
e301f1a8ed
services: zabbix-frontend: Support custom server package.
* gnu/services/monitoring.scm (%zabbix-front-end-configuration-nginx): Rename
to ...
(zabbix-front-end-nginx-configuration): ... this.  Take server package and
FastCGI parameters from ...
(zabbix-front-end-configuration): ... here.  Add PACKAGE and FASTCGI-PARAMS
fields, remove NGINX.
(zabbix-front-end-service-type): Adjust for renamed procedure.
* doc/guix.texi (Monitoring Services)[Zabbix front-end]: Regenerate documentation.
2022-02-01 23:46:05 +01:00
Marius Bakke
a8d1e6bfa2
gnu: libomp: Update to 13.0.0.
* gnu/packages/llvm.scm (libomp): Update to 13.0.0.
[arguments]: Add workaround to #:configure-flags.
[native-inputs]: Change from CLANG-9 and LLVM-9 to CLANG and LLVM.
2022-02-01 23:46:04 +01:00
Marius Bakke
4ed2b6ac38
gnu: LLVM: Switch to 13 as the default.
* gnu/packages/llvm.scm (llvm, clang-runtime, clang, clang-toolchain): Use
version 13.
* gnu/packages/gnuzilla.scm (mozjs-78)[native-inputs]: Change from LLVM to LLVM-9.
* gnu/packages/rust.scm (rust-1.39, rust-1.40)[inputs]: Likewise.
* gnu/packages/debug.scm (c-reduce)[inputs]: Stick with CLANG-9 and/or LLVM-9.
* gnu/packages/diffoscope.scm (diffoscope)[inputs]: Likewise.
* gnu/packages/linux.scm (bcc, bpftrace)[inputs]: Likewise.
* gnu/packages/llvm.scm (libclc, libomp)[native-inputs]: Likewise.
* gnu/packages/games.scm (hedgewars)[native-inputs]: Likewise.
* gnu/packages/graphics.scm (openshadinglanguage)[native-inputs]: Likewise.
* gnu/packages/opencl.scm (pocl)[inputs]: Likewise.
2022-02-01 23:46:04 +01:00
Marius Bakke
16a45eae2d
gnu: doctest: Update to 2.4.8.
* gnu/packages/check.scm (doctest): Update to 2.4.8.
2022-02-01 23:46:04 +01:00
Marius Bakke
c065fca7f5
gnu: json-modern-cxx: Fix cross-compilation.
* gnu/packages/cpp.scm (json-modern-cxx)[native-inputs]: Move DOCTEST ...
[inputs]: ... here.
2022-02-01 23:46:04 +01:00
Marius Bakke
7ad2cfcc72
gnu: json-modern-cxx: Remove input labels.
* gnu/packages/cpp.scm (json-modern-cxx)[native-inputs]: Remove labels.
[arguments]: Use SEARCH-INPUT-FILE.
2022-02-01 23:46:04 +01:00
Marius Bakke
018d2c1243
gnu: fifo-map: Fix cross-compilation.
* gnu/packages/cpp.scm (fifo-map)[native-inputs]: Move CATCH-FRAMEWORK2-1 ...
[inputs]: ... here.
2022-02-01 23:46:04 +01:00
Marius Bakke
f89bf66690
gnu: fifo-map: Use a release tag.
* gnu/packages/cpp.scm (fifo-map): Update to 1.0.0, which is
one (inconsequential) commit ahead of our custom "1.1.1" version.
[arguments]: Respect TESTS? in check phase while at it.
2022-02-01 23:46:04 +01:00
Marius Bakke
2b4aeda755
gnu: json-modern-cxx: Run tests in parallel.
* gnu/packages/cpp.scm (json-modern-cxx)[arguments]: Respect PARALLEL-TESTS?
in check phase.
2022-02-01 23:46:04 +01:00
Marius Bakke
36cde8fa8e
gnu: json-modern-cxx: Update to 3.10.5.
* gnu/packages/cpp.scm (json-modern-cxx): Update to 3.10.5.
[source](snippet): Adjust for upstream changes.
[arguments]: Remove obsolete workaround.
2022-02-01 23:46:04 +01:00
Maxim Cournoyer
01c925bf49
doc: Fix typo.
* doc/guix.texi (Sound Services): Fix typo.
2022-02-01 15:32:11 -05:00
Guillaume Le Vaillant
787b13a5d9
gnu: librecad: Fix build with boost 1.76.
Fixes <https://issues.guix.gnu.org/53694>.

* gnu/packages/patches/librecad-support-for-boost-1.76.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/engineering.scm (librecad)[source]: Use it.
2022-02-01 20:06:25 +01:00
Ricardo Wurmus
f07459ea05
gnu: r-nloptr: Update to 2.0.0.
* gnu/packages/statistics.scm (r-nloptr): Update to 2.0.0.
[propagated-inputs]: Add r-testthat.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
9e5506ae8a
gnu: r-quantreg: Update to 5.87.
* gnu/packages/statistics.scm (r-quantreg): Update to 5.87.
[propagated-inputs]: Remove r-conquer.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
76dd2e8210
gnu: r-rrcov: Update to 1.6-1.
* gnu/packages/statistics.scm (r-rrcov): Update to 1.6-1.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
d2f6c1263a
gnu: r-segmented: Update to 1.4-0.
* gnu/packages/statistics.scm (r-segmented): Update to 1.4-0.
[propagated-inputs]: Add r-mass.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
b0cf741ddf
gnu: r-rcpparmadillo: Update to 0.10.8.1.0.
* gnu/packages/statistics.scm (r-rcpparmadillo): Update to 0.10.8.1.0.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
4043ed5cb7
gnu: r-readr: Update to 2.1.2.
* gnu/packages/statistics.scm (r-readr): Update to 2.1.2.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
31436f1d1d
gnu: r-rlang: Update to 1.0.0.
* gnu/packages/statistics.scm (r-rlang): Update to 1.0.0.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
01f8f121b8
gnu: r-yaml: Update to 2.2.2.
* gnu/packages/statistics.scm (r-yaml): Update to 2.2.2.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
13497cdd01
gnu: r-permute: Update to 0.9-7.
* gnu/packages/statistics.scm (r-permute): Update to 0.9-7.
[native-inputs]: Add r-knitr.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
86beee6432
gnu: r-magrittr: Update to 2.0.2.
* gnu/packages/statistics.scm (r-magrittr): Update to 2.0.2.
2022-02-01 19:34:03 +01:00
Ricardo Wurmus
3052d345d7
gnu: r-rpart: Update to 4.1.16.
* gnu/packages/statistics.scm (r-rpart): Update to 4.1.16.
2022-02-01 19:34:03 +01:00