Commit graph

86331 commits

Author SHA1 Message Date
Ludovic Courtès
1644f4f1f8
services: Define '%qemu-static-networking'.
* gnu/services/base.scm (%qemu-static-networking): New variable.
* gnu/system/hurd.scm (%base-services/hurd): Use it.
* doc/guix.texi (Networking Setup): Document it.
2021-12-12 23:20:49 +01:00
Ludovic Courtès
223f1b1eb3
services: static-networking: Change interface to mimic netlink.
* gnu/services/base.scm (<static-networking>)[interface, ip, netmask]
[gateway]: Remove.
[addresses, links, routes]: New fields.
[requirement]: Default to '(udev).
(<network-address>, <network-link>, <network-route>): New record types.
(ensure-no-separate-netmask, %ensure-no-separate-netmask): Remove.
(ipv6-address?, cidr->netmask, ip+netmask->cidr)
(network-set-up/hurd, network-tear-down/hurd)
(network-set-up/linux, network-tear-down/linux)
(static-networking->hurd-pfinet-options): New procedures.
(static-networking-shepherd-service): New procedure.
(static-networking-shepherd-services): Rewrite in terms of the above.
(static-networking-service): Deprecate.  Adjust to new
'static-networking' API.
(%base-services): Likewise.
* gnu/system/install.scm (%installation-services): Likewise.
* gnu/system/hurd.scm (%base-services/hurd): Likewise, and separate
'loopback' from 'networking'.
* gnu/build/hurd-boot.scm (set-hurd-device-translators): Remove
"servers/socket/2".
* gnu/tests/networking.scm (run-openvswitch-test)["networking has
started on ovs0"]: Check for 'networking instead of 'networking-ovs0,
which is no longer provided.
* doc/guix.texi (Networking Setup): Document the new interface.  Remove
documentation of 'static-networking-service'.
(Virtualization Services): Change Ganeti example to use the new
interface.
2021-12-12 23:20:49 +01:00
Ludovic Courtès
39e3b4b7ce
services: secret-service: Turn into a Shepherd service.
* gnu/services/virtualization.scm (secret-service-activation): Remove.
(secret-service-shepherd-services): New procedure.
(secret-service-type)[extensions]: Remove ACTIVATION-SERVICE-TYPE
extension.  Add SHEPHERD-ROOT-SERVICE-TYPE and
USER-PROCESSES-SERVICE-TYPE extensions.
* gnu/build/secret-service.scm (delete-file*): New procedure.
(secret-service-receive-secrets): Use it.
2021-12-12 23:20:49 +01:00
Ludovic Courtès
0cc742b261
services: static-networking: Use Guile-Netlink on GNU/Linux.
* gnu/services/base.scm (static-networking-shepherd-service): Define
'set-up-via-ioctl', 'tear-down-via-ioctl', 'set-up-via-netlink',
'tear-down-via-netlink', and 'helpers' and use them in 'start' and
'stop'.  Add (ip *) modules to 'modules'.
2021-12-12 23:20:49 +01:00
Ludovic Courtès
1759292c8b
gnu: guile-netlink: Allow cross-compilation.
* gnu/packages/guile-xyz.scm (guile-netlink)[arguments]: Remove,
since #:tests? #f is unnecessary.
[native-inputs]: Add GUILE-3.0.
2021-12-12 23:20:49 +01:00
Ludovic Courtès
a4d33fef31
doc: Add new "Networking Setup" node for the main setup options.
This should make it easier to find how to get started setting up
networking.

* doc/guix.texi (Networking Setup): New section.
(Networking Services): Remove 'static-networking-service',
'dhcp-client-service-type', 'network-manager-service-type',
'connman-service-type', 'wicd-service', 'modem-manager-service-type',
'usb-modeswitch-service-type', and 'wpa-supplicant-service-type'.
2021-12-12 23:20:49 +01:00
Ludovic Courtès
33c498b9ee
tests: openvswitch: Check whether ovs0 is up.
* gnu/tests/networking.scm (run-openvswitch-test)["ovs0 is up"]: New test.
2021-12-12 23:20:49 +01:00
Ludovic Courtès
72f140c253
tests: Add 'static-networking' test.
* gnu/tests/networking.scm (run-static-networking-test): New procedure.
(%test-static-networking): New variable.
2021-12-12 23:20:48 +01:00
Artyom V. Poptsov
9b24cd3b8e
gnu: guile-dsv: Update to 0.5.0
* gnu/packages/guile-xyz.scm (guile-dsv): Update to 0.5.0.
2021-12-12 19:49:55 +01:00
Christopher Baines
604880ae22
progress: Rate limit drawing in the progress-reporter/bar.
This helps smooth the output in cases where the bar is updated very quickly,
for example in guix weather where it's computing derivations.

* guix/progress.scm (progress-reporter/bar): Wrap the drawing code with the
rate-limited procedure.
2021-12-12 14:12:15 +00:00
Foo Chuan Wei
c12c7f1284
gnu: sbcl-geco: Update to 2.1.2.
* gnu/packages/lisp-xyz.scm (sbcl-geco): Update to 2.1.2.
  [home-page]: Update home page.
  [license]: Fix license.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-12-12 10:24:52 +01:00
Foo Chuan Wei
d1072f21ba
gnu: sbcl-aserve: Add HTML5 elements to htmlgen.
* gnu/patches/sbcl-aserve-add-HTML-5-elements.patch: New file.
* gnu/patches/sbcl-aserve-fix-rfe12668.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add them.
* gnu/packages/lisp-xyz.scm (sbcl-aserve)[source]: Use them.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-12-12 10:24:52 +01:00
gyara
8778ff2aec
gnu: dunst : Update to 1.7.3.
* gnu/packages/dunst.scm (dunst): Update to 1.7.3.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-12-12 10:24:52 +01:00
Efraim Flashner
5c3f5c1524
gnu: Use license prefix in (gnu packages sdl).
* gnu/packages/sdl.scm (sdl, sdl2, libmikmod, sdl-gfx, sdl-image,
sdl-mixer, sdl-net, sdl-pango, sdl-ttf, guile-sdl, guile-sdl2,
sdl2-cs) [license]: Use license prefix.
2021-12-12 11:21:02 +02:00
Efraim Flashner
70fba40048
gnu: serveez: Update to 0.3.0.
* gnu/packages/serveez.scm (serveez): Update to 0.3.0.
[source]: Download using lzip tarball.
[native-inputs]: Add lzip.
[inputs]: Replace guile-2.0 with guile-2.2.
2021-12-12 10:59:07 +02:00
Efraim Flashner
cec4b2dcbc
gnu: guile-sdl: Update to 0.5.3.
* gnu/packages/sdl.scm (guile-sdl): Update to 0.5.3.
[source]: Use lzip tarball.
[native-inputs]: Add lzip.
2021-12-12 10:59:07 +02:00
Artyom V. Poptsov
ab82bed5d1
gnu: guile-dsv: Update to 0.4.1
* gnu/packages/guile-xyz.scm (guile-dsv): Update to 0.4.1.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
2021-12-12 09:22:07 +01:00
Vinicius Monego
8bb6c7425d
gnu: python-moto: Honor #:tests? flag.
* gnu/packages/python-xyz.scm (python-moto)[arguments]: Adjust custom 'check
phase to honor the #:tests? flag.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:55 +01:00
Vinicius Monego
7a34e56dc8
gnu: python-moto: Update to 2.2.12.
* gnu/packages/python-xyz.scm (python-moto): Update to 2.2.12.
[arguments]: Make some cosmetic changes.
<#:phases>: Don't return #t. Support cross-compilation in
'patch-hardcoded-executable-names. Skip more tests and simplify the custom
'check phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:55 +01:00
Vinicius Monego
365260f4cd
gnu: Update awscli, python-boto3 and python-botocore.
awscli, botocore and boto3 work together and typically require matching
versions.

* gnu/packages/python-xyz.scm (python-botocore): Update to 1.22.11.
(python-boto3): Update to 1.19.11.
[native-inputs]: Add python-pytest.
* gnu/packages/python-web.scm (awscli): Update to 1.21.11.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:55 +01:00
Vinicius Monego
9660c2f158
gnu: python-s3transfer: Honor #:tests? flag.
* gnu/packages/python-web.scm (python-s3transfer)[arguments]: Adjust custom
'check phase to honor the #:tests? flag.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:55 +01:00
Vinicius Monego
32135392dd
gnu: python-s3transfer: Update to 0.5.0.
* gnu/packages/python-web.scm (python-s3transfer): Update to 0.5.0.
[arguments]<#:phases>: Remove 'patch phase because the issue was fixed
upstream. Don't return #t in custom 'check phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:54 +01:00
Vinicius Monego
dbf5d938c5
gnu: python-cfn-lint: Honor #:tests? flag.
* gnu/packages/python-web.scm (python-cfn-lint)[arguments]: Make some cosmetic
changes. Adjust custom 'check phase to honor the #:tests? flag.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:54 +01:00
Vinicius Monego
f3416ebc2e
gnu: python-cfn-lint: Update to 0.54.3.
* gnu/packages/python-web.scm (python-cfn-lint): Update to 0.54.3.
[home-page]: Follow redirect.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:54 +01:00
Vinicius Monego
589b9d6f29
gnu: python-aws-sam-translator: Update to 1.40.0.
* gnu/packages/python-web.scm (python-aws-sam-translator): Update to 1.40.0.
[arguments]<#:phases>: Don't return #t.
[home-page]: Follow redirect.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:54 +01:00
Giacomo Leidi
7e9720eca4
gnu: python-vcrpy: Update to 4.1.1.
* gnu/packages/python-xyz.scm (python-vcrpy): Update to 4.1.1.
[arguments]: Replace 'check phase to run unit tests.
[native-inputs]: Add required dependencies.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:54 +01:00
Giacomo Leidi
8a1de89432
gnu: Add python-ipaddress.
* gnu/packages/python-xyz.scm (python-ipaddress): New variable;
(python2-ipaddress): Use package-with-python2.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:54 +01:00
Foo Chuan Wei
ea18b4c529
gnu: Add ascii.
* gnu/packages/shellutils.scm (ascii): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-12-12 00:27:53 +01:00
Ludovic Courtès
cba0395c99
narinfo: Do not repeat slash when building nar URLs.
* guix/narinfo.scm (narinfo-maker): When one of URLS is relative, do not
repeat trailing slash if it's already present in CACHE-URL.
2021-12-12 00:27:53 +01:00
Ludovic Courtès
e68466de12
substitutes: Build correct narinfo URLs for cache URLs without trailing slash.
Fixes <https://issues.guix.gnu.org/51441>.
Reported by Z572 <873216071@qq.com> and Peng Mei Yu <pengmeiyu@riseup.net>.

Previously, passing '--substitute-urls=https://mirror.sjtu.edu.cn/guix',
without a trailing slash, would fail due to incorrectly constructed
narinfo URLs.  Users would have to explicitly add a trailing slash.

* guix/substitutes.scm (narinfo-request): Ensure BASE has a trailing
slash.
2021-12-12 00:27:53 +01:00
Ludovic Courtès
4dca1bae27
challenge: Store item contents are returned in canonical order.
This allows the 'delete-duplicates' call in 'differing-files' to have
the intended effect.

Before that, a "guix challenge" invocation with three builds of a store
item, two of which are identical, would lead 'differing-files' to not
print anything, as in this example:

  $ ./pre-inst-env guix challenge python-numpy
  /gnu/store/…-python-numpy-1.17.3 contents differ:
    local hash: 07var0wn8fywxchldz5pjqpnlavrlbc8s81aqwsqyi0i7qlh6ka7
    https://ci.guix.gnu.org/nar/lzip/…-python-numpy-1.17.3: 07var0wn8fywxchldz5pjqpnlavrlbc8s81aqwsqyi0i7qlh6ka7
    https://bordeaux.guix.gnu.org/nar/lzip/…-python-numpy-1.17.3: 0cbl3q19bshb6ddz8xkcrjzkcmillsqii4z852ybzixyp7rg40qa

  1 store items were analyzed:
    - 0 (0.0%) were identical
    - 1 (100.0%) differed
    - 0 (0.0%) were inconclusive

With this change, 'differing-files' prints additional info as intended:

    differing file:
      /lib/python3.8/site-packages/numpy/distutils/fcompiler/__pycache__/vast.cpython-38.pyc

* guix/scripts/challenge.scm (archive-contents): Add tail call to
'reverse'.
(store-item-contents): Rewrite to use 'scandir' and recursive calls
instead of 'file-system-fold'.
2021-12-12 00:27:53 +01:00
Ludovic Courtès
c6903e156f
challenge: Use SRFI-71 instead of SRFI-11.
* guix/scripts/challenge.scm (port-sha256*, call-with-nar): Use SRFI-71.
2021-12-12 00:27:53 +01:00
Julien Lepiller
d5cfca23e3
gnu: java-log4j-api: Add cpe-name.
* gnu/packages/java.scm (java-log4j-api)[properties]: Add cpe-name.
2021-12-12 00:00:35 +01:00
Julien Lepiller
8c989e92b0
gnu: java-log4j-api: Update to 2.15.0.
Includes fixes for CVE-2017-5645, CVE-2020-9488 and CVE-2021-44228.

* gnu/packages/java.scm (java-log4j-api): Update to 2.15.0.
(java-log4j-core, java-log4j-1.2-api)[inputs]: Adjust accordingly.
2021-12-12 00:00:31 +01:00
Julien Lepiller
514deaa8d4
gnu. java-lmax-disruptor: Update to 3.4.4.
* gnu/packages/java.scm (java-lmax-disruptor): Update to 3.4.4.
[source]: Use git-fetch instead of url-fetch.
2021-12-12 00:00:27 +01:00
Julien Lepiller
684e22dce2
gnu: Add java-conversant-disruptor.
* gnu/packages/java.scm (java-conversant-disruptor): New variable.
2021-12-12 00:00:22 +01:00
Julien Lepiller
b049f5bbea
gnu: Add java-jctools-core-1.
* gnu/packages/java.scm (java-jctools-core-1): New variable.
2021-12-12 00:00:18 +01:00
Julien Lepiller
5259513d5e
gnu: java-jansi: Update to 2.4.0.
* gnu/packages/java.scm (java-jansi): Update to 2.4.0.
(java-jansi-1): New variable.
[source]: Use git-fetch instead of url-fetch.
(java-jline-2)[inputs]: Use java-jansi-1.
* gnu/packages/groovy.scm (java-groovy-bootstrap)[inputs]: Use java-jansi-1.
2021-12-12 00:00:06 +01:00
Jonathan Brielmaier
8c6508b928
gnu: icedove: Update to 91.4.0 [fixes CVE-2021-43528].
* gnu/packages/gnuzilla.scm (icedove): Update to 91.4.0.
2021-12-11 17:28:59 +01:00
Andrew Tropin
2e28b450d5
gnu: emacs-telega: Update to 0.7.15-1.b4a5e20.
* gnu/packages/emacs-xyz.scm (emacs-telega-server): Update to
0.7.15-1.b4a5e20.
* gnu/packages/patches/emacs-telega-path-placeholder.patch: Match patch with
newer source code.
* gnu/packages/patches/emacs-telega-test-env.patch: Match patch with newer
source code.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2021-12-11 16:08:04 +01:00
Andrew Tropin
649ab3fe2d
gnu: tdlib: Update to 1.7.10.
* gnu/packages/messaging.scm (tdlib): Update to 1.7.10.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2021-12-11 16:07:36 +01:00
jgart via Guix-patches via
ebff268bfc
gnu: Add vivid.
* gnu/packages/rust-apps.scm (vivid): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2021-12-11 15:46:12 +01:00
Demis Balbach
c11c1080de
gnu: carla: Update to 2.4.1.
* gnu/packages/audio.scm (carla): Update to 2.4.1.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2021-12-11 15:37:51 +01:00
Petr Hodina
610645b175
gnu: i3status-rust: Add missing inputs.
* gnu/packages/rust-apps (i3status-rust)[inputs]: Add alsa-utils,
  bash-minmal, coreutils, ibus, iproute, kdeconnect, lm-sensors, setxkbmap,
  speedtest-cli, xdg-utils, xrandr.
  [arguments]: Add phase to wrap-program bin/i3status-rs.
* gnu/local.mk: Add patch (change not applied in
  575fcd3045)

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2021-12-11 15:35:44 +01:00
Nikolay Korotkiy
bf189fd2b5
gnu: gmnisrv: Update to 1.0.
* gnu/packages/web.scm (gmnisrv): Update to 1.0.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
2021-12-11 15:33:42 +01:00
Foo Chuan Wei
58dbf4c930
gnu: Add optionmatrix.
* gnu/packages/finance.scm (optionmatrix): New variable.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-12-11 14:37:33 +01:00
Foo Chuan Wei
f00690c0ed
gnu: Add s9fes.
* gnu/packages/scheme.scm (s9fes): New variable.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-12-11 14:37:33 +01:00
Nicolas Goaziou
0d8c801d83
gnu: pdfarranger: Update to 1.8.1.
* gnu/packages/pdf.scm (pdfarranger): Update to 1.8.1.
2021-12-11 14:27:37 +01:00
Nicolas Goaziou
60dc7a7925
gnu: emacs-webpaste: Update to 3.2.2.
* gnu/packages/emacs-xyz.scm (emacs-webpaste): Update to 3.2.2.
2021-12-11 14:25:31 +01:00
Jacob MacDonald
b3a801330e
gnu: sbcl-slime-swank: Update to 2.26.1.
* gnu/packages/lisp-xyz.scm (sbcl-slime-swank): Update to 2.26.1.

Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
2021-12-11 11:47:51 +01:00