Commit graph

74443 commits

Author SHA1 Message Date
Christopher Baines
8116cc6673
substitute: Inline fetch in to process-substitutes.
As it's only called in one place, and this should make the code easier to
read.

* guix/scripts/substitute.scm (fetch): Move procedure inside…
(process-substitution): …here.
2021-02-22 20:43:11 +00:00
Christopher Baines
b9d058e3f7
substitute: Remove redundant fetch arguments.
It's just called in one place, with hardcoded argument values, so just inline
them.

* guix/scripts/substitute.scm (fetch): Remove arguments that don't vary, copy
the values from the call site in process-substitution.
(process-substitution): Remove unnecessary argument values from fetch call.
2021-02-22 20:43:11 +00:00
Christopher Baines
7c85877fdf
substitute: Remove now redundant connection caching helpers.
Failures now should be handled where they occur, and if there's a problem
that's symptomatic of an issue with the connection, the port should be closed.

* guix/scripts/substitute.scm (call-with-cached-connection): Remove procedure.
(with-cached-connection): Remove syntax rule.
2021-02-22 20:43:11 +00:00
Christopher Baines
f50f5751ff
substitute: Change connection cache handling in process-substitution.
Just pass open-connection-for-uri/maybe to http-fetch, this removes the need
for with-cached-connection and passing the port in.

* guix/scripts/substitute.scm (fetch): Don't take a port as an argument, and
pass open-connection-for-uri/maybe to http-fetch.
(process-substitution): Don't call fetch with with-cached-connection.
2021-02-22 20:43:11 +00:00
Christopher Baines
05f38ca8dc
http-client: Accept #:open-connection in http-fetch.
So that an alternative procedure can be passed in, perhaps to perform
connection caching.

* guix/http-client.scm (http-fetch): Add an #:open-connection keyword
argument.
2021-02-22 20:43:10 +00:00
Christopher Baines
7b812f7c84
substitute: Stop using call-with-cached-connection in fetch-narinfos.
Instead, just pass open-connection-for-uri/maybe to http-multiple-get. This
code should be functionaly similar to the previous code. The eventual aim of
this is to make the connection caching not mandatory in fetch-narinfos.

* guix/scripts/substitute.scm (fetch-narinfos): Remove use of
call-with-cached-connection.
2021-02-22 20:43:10 +00:00
Christopher Baines
f50b501a74
substitute: open-connection-for-uri/maybe add #:verify-certificate?.
As this is used by http-fetch and http-multiple-get when they call the
specified open connection procedure.

* guix/scripts/substitute.scm (open-connection-for-uri/maybe): Support
 #:verify-certificate?.
2021-02-22 20:43:10 +00:00
Christopher Baines
205833b72c
http-client: Add error handling to http-multiple-get.
Making sure to close the port if it looks to be unusable. This closing of the
port will allow for caching connections, without caching broken connections,
as the cache can avoid handing out closed ports.

* guix/http-client.scm (http-multiple-get): Try to catch exceptions that
happen if the port is unusable, this is a adaptation of code within the (guix
scripts substitute) module.
2021-02-22 20:43:10 +00:00
Christopher Baines
e2e853ddb0
guix: Move http-multiple-get to (guix http-client).
From (guix scripts substitute). This will make it easier to reuse this code.

* guix/scripts/substitute.scm (http-multiple-get): Remove, and move to…
* guix/http-client.scm (http-multiple-get): …here.
2021-02-22 20:43:09 +00:00
Christopher Baines
87734503a4
substitute: Remove redundant let block from fetch.
* guix/scripts/substitute.scm (fetch): Remove redundant let block.
2021-02-22 20:43:09 +00:00
Christopher Baines
08acee2f98
substitute: Remove connection handling from fetch.
http-fetch does this, so just use that code instead.

* guix/scripts/substitute.scm (fetch): Remove connection handling when the
port is closed.
2021-02-22 20:43:09 +00:00
Christopher Baines
fbd61b5d3d
substitute: Remove buffer handling from fetch.
http-fetch does this, so just set the right option.

* guix/scripts/substitute.scm (fetch): Remove buffering code, and pass
 #:buffered? to http-fetch.
2021-02-22 20:43:09 +00:00
Ricardo Wurmus
f1f6e49190
gnu: star: Update to 2.7.8a.
* gnu/packages/bioinformatics.scm (star): Update to 2.7.8a.
2021-02-22 21:16:19 +01:00
Stefan Reichör
515f561370
gnu: Add dstask.
* gnu/packages/task-management.scm (dstask): New variable.

Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
2021-02-22 19:58:13 +01:00
Léo Le Bouter
9fe7106452
gnu: gnome-keyring: Propagate gcr to fix unlock prompts.
On desktop environments other than GNOME, it is not obvious gcr package needs
to be installed in the profile for gnome-keyring unlock prompts to
work. Propagating it ensures no one will need to figure this out in the future.

* gnu/packages/gnome.scm (gnome-keyring)[propagated-inputs]: Add "gcr".
2021-02-22 19:42:20 +01:00
Stefan Reichör
c0c652e015
gnu: gita: Update to 0.12.9.
* gnu/packages/version-control.scm (gita): Update to 0.12.9.

Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
2021-02-22 19:39:50 +01:00
Leo Famulari
a821818fb7
gnu: python-sane: Correct the license.
This is a followup to commit f500905ce1.

* gnu/packages/python-xyz.scm (python-sane)[license]: Describe the
license.
2021-02-22 13:26:14 -05:00
Alexandros Theodotou
ad06c29b37
gnu: Add python-screenkey.
* gnu/packages/python-xyz.scm (python-screenkey): New variable.

Co-authored-by: Léo Le Bouter <lle-bout@zaclys.net>
2021-02-22 18:51:33 +01:00
Mathieu Othacehe
2cc169f8f9
doc: Fix build.
This is a follow-up of b309a28678.

* doc/guix.texi (Tor): Fix build.
2021-02-22 16:32:05 +01:00
Mathieu Othacehe
108e2c6116
gnu: cuirass: Add missing dependency.
* gnu/packages/ci.scm (cuirass)[inputs]: Add gnutls.
[arguments]: Adapt accordingly.
2021-02-22 16:25:40 +01:00
Mathieu Othacehe
8163f74542
services: postgresql: Define a default value.
* gnu/services/databases.scm (postgresql-service-type): Define a default value.
2021-02-22 16:24:34 +01:00
Mathieu Othacehe
3bcfd41620
services: cuirass: Instantiate postgresql service.
* gnu/services/cuirass.scm (cuirass-service-type): Instantiate postgresql
service when missing.
2021-02-22 16:24:34 +01:00
Christopher Lemmer Webber
b309a28678
services: tor: Add control-socket? option.
* doc/guix.texi (Networking Services): Document new `control-socket?'
option for `tor-configuration`.
* gnu/services/networking.scm (<tor-configuration>):
(tor-configuration->torrc):
2021-02-22 10:03:02 -05:00
Efraim Flashner
51b3ea8d5b
gnu: ruby-omniauth-oauth2: Update to 1.7.1.
* gnu/packages/ruby.scm (ruby-omniauth-oauth2): Update to 1.7.1.
2021-02-22 16:49:43 +02:00
Efraim Flashner
984d64388d
gnu: ruby-omniauth: Update to 2.0.3.
* gnu/packages/ruby.scm (ruby-omniauth): Update to 2.0.3.
[arguments]: Don't skip tests.
[propagated-inputs]: Add ruby-rack-protector.
[native-inputs]: Add ruby-rspec.
2021-02-22 16:49:41 +02:00
Mathieu Othacehe
dbc10e7474
gnu: cuirass: Update to 0.0.1-72.543e26a.
* gnu/packages/ci.scm (guile-mastodon-dev): New variable.
(guile-mastodon-dev): Update to 0.0.1-72.543e26a.
[inputs]: Use guile-mastodon-dev instead of guile-mastodon.
2021-02-22 14:47:26 +01:00
Ludovic Courtès
011ec41c25
gnu: Fix "license:" prefix in scanner.scm.
* gnu/packages/scanner.scm: Change "licence:" to "license:".
2021-02-22 12:08:32 +01:00
Andy Tai
f500905ce1
gnu: Add python-sane.
* gnu/packages/python-xyz.scm (python-sane): New variable

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-02-22 12:08:30 +01:00
Jack Hill
d70b0f92e9
gnu: guile-dsv: Update to 0.4.0.
* gnu/packages/guile-xyz.scm (guile-dsv): Update to 0.4.0
[arguments]: Remove phase "configure-support-guile3.0".

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-02-22 12:07:46 +01:00
Zhu Zihao
a4458eb0ea
news: Add 'zh' translation.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-02-22 12:07:45 +01:00
Ludovic Courtès
9a38bed2cf
packages: 'package-field-location' handles 'search-path' returning #f.
Fixes <https://bugs.gnu.org/46390>.
Reported by zimoun <zimon.toutoune@gmail.com>.

This is similar to the fix in d10474c38d.

* guix/packages.scm (package-field-location): Handle FILE not in %LOAD-PATH.
* tests/guix-lint.sh: Add test.
2021-02-22 12:07:45 +01:00
Nicolas Goaziou
03235402df
gnu: emacs-selectrum: Update to 3.1.
* gnu/packages/emacs-xyz.scm (emacs-selectrum): Update to 3.1.
2021-02-22 11:44:59 +01:00
Mathieu Othacehe
3c674b5734
gnu: cuirass: Update to 0.0.1-71.3e65617.
* gnu/packages/ci.scm (cuirass): Update to 0.0.1-71.3e65617.
2021-02-22 11:25:09 +01:00
Nicolas Goaziou
79d5005612
gnu: nixfmt: Fix name.
* gnu/packages/haskell-apps.scm (nixfmt): Fix name.
2021-02-22 11:05:47 +01:00
Nicolas Goaziou
b4bbf3d1e9
gnu: Rename ghc-nixfmt into nixfmt
* gnu/packages/haskell-xyz.scm (ghc-nixfmt): Move to...
* gnu/packages/haskell-apps.scm (nixfmt): ... here.

This is a followup to 703ccd5836.
2021-02-22 10:41:16 +01:00
Mathieu Othacehe
0e5bc144f3
gnu: cuirass: Update dependencies.
* gnu/packages/ci.scm (cuirass)[inputs]: Add "guile-mastodon" and "mailutils".
[arguments]: Adapt accordingly.
2021-02-22 10:23:04 +01:00
Mathieu Othacehe
bbd26d60ed
gnu: guile-mastodon: Build with Guile 3.0.
* gnu/packages/guile-xyz.scm (guile-mastodon)[source]: Modify configure.ac to
add Guile 3.0 support.
[native-inputs]: Add "emacs" and "texinfo".
[inputs]: Use Guile 3.0 and Guile Json 4.0.
2021-02-22 10:23:04 +01:00
Mathieu Othacehe
1443e2dd98
services: cuirass: Add parameters support.
* gnu/services/cuirass.scm (<cuirass-configuration>)[parameters]: New field.
[zabbix-uri]: Remove it.
(cuirass-shepherd-service): Honor it.
2021-02-22 10:23:04 +01:00
Mathieu Othacehe
61a5305b39
gnu: cuirass: Update to 0.0.1-70.342c5ed
* gnu/packages/ci.scm (cuirass): Update to 0.0.1-70.342c5ed.
2021-02-22 10:23:03 +01:00
Efraim Flashner
e4959cd5d4
gnu: autoconf-archive: Update to 2021.02.19.
* gnu/packages/autotools.scm (autoconf-archive): Update to 2021.02.19.
2021-02-22 10:10:16 +02:00
Léo Le Bouter
c53ee79c4c
gnu: git: Add credential-libsecret output.
* gnu/packages/version-control.scm (git)[native-inputs]: Add pkg-config.
[inputs]: Add glib and libsecret.
[outputs]: Add "credential-libsecret".
[arguments]: Add 'install-credential-libsecret phase to #:phases to build and
install "git-credential-libsecret" to "credential-libsecret" output.
(git-minimal)[arguments]: Delete the 'install-credential-libsecret phase.

Signed-off-by: Chris Marusich <cmmarusich@gmail.com>
2021-02-21 17:04:29 -08:00
Vagrant Cascadian
90ccb46a55
gnu: diffoscope: Update to 167.
* gnu/packages/diffoscope.scm (diffoscope): Update to 167.
2021-02-21 15:31:18 -08:00
Gerd Heber
f601cdc698
gnu: Add HDF5 1.12.0.
* gnu/packages/maths.scm (hdf5-1.12): New variable.

Signed-off-by: Leo Famulari <leo@famulari.name>
2021-02-21 16:03:40 -05:00
Vincent Legoll
e89c1dd4fb
gnu: ffmpeg: Update to 4.3.2.
* gnu/packages/video.scm (ffmpeg): Update to 4.3.2.

Signed-off-by: Leo Famulari <leo@famulari.name>
2021-02-21 16:02:40 -05:00
Marius Bakke
4ac9db0d75
image: Add rock64 support.
* gnu/system/images/rock64.scm: New file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
2021-02-21 21:39:38 +01:00
Marius Bakke
182d2ef510
gnu: ungoogled-chromium: Update default preferences.
* gnu/packages/aux-files/chromium/master-preferences.json: Adjust for upstream
changes.
2021-02-21 21:39:38 +01:00
Marius Bakke
a58f9966a5
gnu: ungoogled-chromium: Update to 88.0.4324.182-0.b98f2d5.
* gnu/packages/chromium.scm (%chromium-version): Set to -88.0.4324.182.
(%ungoogled-revision): Set to 27c9e9fabd38001b32d148f7b3f99b4d31e67277.
(%ungoogled-origin, ungoogled-chromium): Update hashes.
2021-02-21 21:39:38 +01:00
Pierre Neidhardt
f099c3b3bd
gnu: emacs-helm-pass: Update to 0.4.
* gnu/packages/emacs-xyz.scm (emacs-helm-pass): Update to 0.4.
2021-02-21 18:16:21 +01:00
Alexandros Theodotou
869c416cee
gnu: ir: Remove whitespace at end of line.
* gnu/packages/audio.scm (ir): Remove whitespace at end of line.

Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
2021-02-21 16:26:43 +01:00
Efraim Flashner
d51c11fea3
gnu: ruby-rack-protection: Update to 2.0.8.1.
* gnu/packages/ruby.scm (ruby-rack-protection): Update to 2.0.8.1.
2021-02-21 14:55:11 +02:00