Commit graph

92591 commits

Author SHA1 Message Date
Ludovic Courtès
5c13484646
deploy: Add '--execute'.
* guix/scripts/deploy.scm (show-help, %options): Add '--execute'.
(invoke-command): New procedure.
(guix-deploy): Break arguments at "--" and handle '-x' and associated
command.
* doc/guix.texi (Invoking guix deploy): Document it.
2022-02-02 18:35:00 +01:00
Michael Rohleder
f553de6e0e
gnu: cgdb: Update to 0.8.0.
* gnu/packages/debug.scm (cgdb): Update to 0.8.0.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-02-02 18:34:32 +01:00
Michael Rohleder
4eada1b45a
gnu: rr: Update to 5.5.0.
* gnu/packages/debug.scm (rr): Update to 5.5.0.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-02-02 18:16:21 +01:00
Felix Gruber
f89bd6949a
gnu: oil: Update to 0.9.7.
* gnu/packages/shells.scm (oil): Update to 0.9.7.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-02-02 18:13:29 +01:00
Ludovic Courtès
9679123ce0
guix system: 'describe' shows the running system, not the current one.
* guix/profiles.scm (generation-number): Add optional 'base-profile'
parameter and use it.
* guix/scripts/system.scm (process-command): Add "/run/current-system"
as first argument to 'generation-number'.
* doc/guix.texi (Invoking guix system): Clarify that 'guix system
describe' shows the running system.
2022-02-02 18:12:22 +01:00
Yovan Naumovski
62e3ba78af
gnu: openttd: Update to 12.1.
* gnu/packages/games.scm (openttd-engine): Update ot 12.1.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-02-02 18:08:25 +01:00
Pierre-Henry Fröhring
82a00693b7
gnu: Add python-types-dataclasses.
* gnu/packages/python-xyz.scm (python-types-dataclasses): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2022-02-02 18:06:20 +01:00
Ludovic Courtès
9cdce964ca
gnu: luminance-hdr: Remove input labels.
* gnu/packages/image-viewers.scm (luminance-hdr)[inputs]: Remove
labels.
2022-02-02 17:58:21 +01:00
Ludovic Courtès
bbc26afd61
gnu: luminance-hdr: Fix compilation.
Reported by Leo Famulari <leo@famulari.name>.

* gnu/packages/image-viewers.scm (luminance-hdr)[arguments]: In
'add-ilmbase-include-path' phase, set C_INCLUDE_PATH and be more
specific about the include directory searched for.
2022-02-02 17:58:21 +01:00
Ludovic Courtès
00762a4c4c
import: pypi: Display a hint upon "no source release" errors.
Fixes <https://issues.guix.gnu.org/49083>.

* guix/import/pypi.scm (pypi->guix-package): Upon
'missing-source-error?', raise a compound condition with a hint.
2022-02-02 17:58:21 +01:00
Ludovic Courtès
31ca569ca5
import: pypi: Use 'with-error-handling'.
* guix/scripts/import/pypi.scm (guix-import-pypi): Wrap body in
'with-error-handling'.
2022-02-02 17:58:20 +01:00
Ludovic Courtès
2178692c93
gnu: perf: Remove input labels.
* gnu/packages/linux.scm (perf)[native-inputs, inputs]: Remove labels.
2022-02-02 17:58:20 +01:00
Ludovic Courtès
d040b627b1
gnu: perf: Help 'perf report --symfs' find separate debug info files.
* gnu/packages/linux.scm (perf)[arguments]: In 'configure' phase, modify
"util/dso.c".
2022-02-02 17:58:20 +01:00
Josselin Poiret
4943ac86e4
installer: Use system-wide guix for system init.
* gnu/installer.scm (installer-program): Remove dependency on the guix
package for the PATH.
* gnu/installer/final.scm (install-system): Set PATH inside container
to /run/current-system/profile/bin/.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:44 +01:00
Josselin Poiret
ad55ccf9b1
installer: Make dump archive creation optional and selective.
* gnu/installer.scm (installer-program): Let the installer customize
the dump archive.
* gnu/installer/dump.scm (prepare-dump, make-dump): Split make-dump in
prepare-dump, which copies the files necessary for the dump, and
make-dump which creates the archive.
* gnu/installer/record.scm (installer): Add report-page field.  Change
documented return value of exit-error.
* gnu/installer/newt.scm (exit-error): Change arguments to be a string
containing the error.  Let the user choose between exiting and
initiating a dump.
(report-page): Add new variable.
* gnu/installer/newt/page.scm (run-dump-page): New variable.
* gnu/installer/newt/dump.scm: Delete it.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:44 +01:00
Josselin Poiret
112ef30b84
installer: Turn passwords into opaque records.
* gnu/installer/user.scm (<secret>, secret?, make-secret,
secret-content): Add opaque <secret> record that boxes its contents,
with a custom printer that doesn't display anything.
* gnu/installer/newt/user.scm (run-user-add-page, run-user-page): Box
it.
* gnu/installer/final.scm (create-user-database): Unbox it.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2022-02-02 16:46:44 +01:00
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