Commit graph

75641 commits

Author SHA1 Message Date
Ludovic Courtès dbfc6a32bb
http-client: 'http-fetch' and 'http-fetch/cached' accept #:log-port.
* guix/http-client.scm (http-fetch, http-fetch/cached): Add #:log-port
and honor it.
2021-03-17 23:10:19 +01:00
Ludovic Courtès c81eeabb99
import: gnome: Exclude version numbers that do not start with a digit.
Fixes a bug whereby NetworkManager would be updated to version "rc2".

* guix/import/gnome.scm (latest-gnome-release)[even-minor-version?]:
Change catch-all case to return #f when the first part is not a digit.
2021-03-17 23:10:19 +01:00
Christopher Baines c37f78a9f5
scripts: weather: Provide more representative request statistics.
Previously, the "seconds per request" and "requests per second" statistics
really reported (cache lookups + requests) per second.  By looking at the
actual number of requests made within lookup-narinfos, a more representative
value can be reported.

* guix/scripts/weather.scm (let/time): Allow for multiple return values.
(report-server-coverage): Alter the reporting of request statistics.
2021-03-17 20:46:21 +00:00
Christopher Baines c5ab78f90b
substitutes: lookup-narinfos: Return the number of requests made.
As an additional value, in addition to the narinfos.  This value is useful in
the weather script for reporting how many requests to the substitute server
were made.

* guix/substitutes.scm (lookup-narinfos): Additionally return the number of
requests made.
2021-03-17 20:46:20 +00:00
Christopher Baines b48204259a
scripts: substitute: Tweak error reporting in process-substitution.
The call-with-connection-error-handling was added in
20c08a8a45, but that error handling was
previously inside of open-connection-for-uri/maybe, which is related
to (call-)with-cached-connection which was used in process-substitution, but
only actually used with call-with-cached-connection when used in
fetch-narinfos.

There's some handling for similar errors within with-networking, which is used
within process-substitution.

* guix/scripts/substitute.scm (process-substitution): Remove
call-with-connection-error-handling call.
2021-03-17 20:41:13 +00:00
Christopher Baines c37e3b92ad
scripts: substitute: Add back some error handling.
In f50f5751ff, the way fetch was called within
process-substitution was changed.  As call-with-cached-connection actually
includes important error handling for the opening of a HTTP request, this
change removed some error handling.  This commit adds that back.

Fixes <https://bugs.gnu.org/47157>.

* guix/scripts/substitute.scm (call-with-cached-connection): New procedure.
(with-cached-connection): New syntax rule.
(process-substitution): Retry once for some errors when making HTTP requests
to fetch substitutes.
2021-03-17 20:41:10 +00:00
Tobias Geerinckx-Rice 24f1ce9e71
gnu: scdoc: Cross-compile.
* gnu/packages/man.scm (scdoc)[arguments]: Use CC-FOR-TARGET.
2021-03-17 21:22:21 +01:00
Tobias Geerinckx-Rice 841e5fb4dd
gnu: scdoc: Don't use unstable tarball.
The autogenerated tarball was modified upstream.

* gnu/packages/man.scm (scdoc)[source]: Use GIT-FETCH and
GIT-FILE-NAME.
2021-03-17 21:22:20 +01:00
Christopher Baines d7b4ccefa9
gnu: libtirpc/hurd: Fix package source.
Amend the changes in 1a265842e6 to properly
access the origin patches from libtirpc.

I noticed this as guix weather didn't work for this package.

* gnu/packages/onc-rpc.scm (libtirpc/hurd)[source]: Call origin-patches
on (package-source libtirpc) rather than the libtirpc package.
2021-03-17 20:15:15 +00:00
Efraim Flashner f4f677f223
gnu: lua.scm: Sort package module imports alphabetically.
* gnu/packages/lua.scm: Sort package module imports alphabetically.
2021-03-17 21:33:01 +02:00
Léo Le Bouter 2691f57678
gnu: python-pygments: Update to 2.7.4 [fixes CVE-2021-27291].
* gnu/packages/python-xyz.scm (python-pygments/fixed): New variable.
(python-pygments)[replacement]: Graft.
2021-03-17 18:36:47 +01:00
Oleg Pykhalov cb424bad32
gnu: Add emacs-kotlin-mode.
* gnu/packages/emacs-xyz.scm (emacs-kotlin-mode): New variable.
2021-03-17 18:48:06 +03:00
Nicolas Goaziou d79d63e782
gnu: emacs-marginalia: Update to 0.4.
* gnu/packages/emacs-xyz.scm (emacs-marginalia): Update to 0.4.
2021-03-17 14:32:45 +01:00
Leo Prikler 284864df91
gnu: komikku: Update to 0.27.0.
* gnu/packages/gnome.scm (komikku): Update to 0.27.0.
[inputs]: Add python-brotli and webkitgtk.
2021-03-17 14:21:30 +01:00
Leo Prikler fef91c0cc8
gnu: Move lolcode to esolangs.
* gnu/packages/lolcode.scm (lci): Move from here...
* gnu/packages/esolangs.scm (lolcode-lci): ... to here.
* gnu/packages/lolcode.scm: Delete file.
* gnu/local.mk (GNU_SYSTEM_MODULES): Adjust accordingly.
2021-03-17 14:21:29 +01:00
Julien Lepiller bf6a1dbae1
news: Add 'fr' translation.
* etc/news.scm: Add missing French translations.
2021-03-17 13:31:43 +01:00
LibreMiami d45d779e2a
gnu: tig: Update to 2.5.3.
* gnu/packages/version-control.scm (tig): Update to 2.5.3.

Co-authored-by: jgart <jgart@dismail.de>
Co-authored-by: donotshake <donotshake:matrix.org>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2021-03-17 12:03:25 +01:00
Ludovic Courtès 728c90862e
gnu-maintenance: Add a timeout on FTP connection establishment.
* guix/gnu-maintenance.scm (latest-ftp-release): Pass #:timeout to
'ftp-open'.
2021-03-17 12:03:25 +01:00
Ludovic Courtès 29330b57e2
gnu-maintenance: Remove unused parameters of 'latest-ftp-release'.
* guix/gnu-maintenance.scm (latest-ftp-release): Remove #:ftp-open, #:ftp-close,
and #:keep-file?.
2021-03-17 12:03:25 +01:00
Ludovic Courtès fe96f64110
gnu: hwloc: Add 'release-monitoring-url' property.
* gnu/packages/mpi.scm (hwloc-1)[properties]: New field.
2021-03-17 12:03:25 +01:00
Ludovic Courtès af9af2180e
gnu-maintenance: Add 'generic-html' updater.
This brings total updater coverage, as reported by 'guix refresh
--list-updaters', from 78% to 88.3%.  Among many other things, it covers
freedesktop.org packages.

* guix/gnu-maintenance.scm (html-updatable-package?)
(latest-html-updatable-release): New procedures.
(%generic-html-updater): New variable.
* doc/guix.texi (Invoking guix refresh): Document it.
2021-03-17 12:03:24 +01:00
Ludovic Courtès 1d5a946ce5
gnu-maintenance: 'latest-html-release' better computes version number.
* guix/gnu-maintenance.scm (latest-html-release): Use 'tarball->version'
rather than 'package-name->name+version' to extract the version number.
This fixes problems with packages like 'netsurf' and 'libdom' that have
"-src" in their tarball name, where "src" would be taken as the new
version number.
2021-03-17 12:03:24 +01:00
Ludovic Courtès 99f42e14d4
gnu-maintenance: 'latest-html-release' can determine signature file name.
* guix/gnu-maintenance.scm (latest-html-release): #:file->signature
defaults to #f.
[file->signature/guess]: New procedure.
[url->release]: Use it when FILE->SIGNATURE is #f.
Introduce 'links' variable.
(url-prefix-rewrite): Check whether URL is true before calling
'string-prefix?'.
(latest-savannah-release): Adjust comment about detached signatures.
2021-03-17 12:03:24 +01:00
Ludovic Courtès 9e75b31b39
gnu-maintenance: 'release-file?' rejects checksum files.
* guix/gnu-maintenance.scm (release-file?): Reject ".md5sum",
".sha1sum", and ".sha256sum".
2021-03-17 12:03:24 +01:00
Ludovic Courtès db69ebb9de
gnu-maintenance: 'latest-html-release' considers non-relative URLs.
* guix/gnu-maintenance.scm (latest-html-release): Allow for URL to be an
arbitrary URL rather than a relative URL reference.
2021-03-17 12:03:24 +01:00
Ludovic Courtès 71f6acd28d
gnu-maintenance: Use (htmlprag) for 'latest-html-release'.
* guix/gnu-maintenance.scm (html->sxml): Remove.  Autoload (htmlprag)
instead.
* doc/guix.texi (Requirements): Mention 'guix refresh' for the Guile-Lib
dependency.
2021-03-17 12:03:24 +01:00
Ludovic Courtès 62a091368d
maint: Check whether Guile-zlib is recent enough.
This is a followup to a04aef2430.

* m4/guix.m4 (GUIX_CHECK_GUILE_ZLIB): New macro.
* configure.ac: Use it when checking for Guile-zlib.
2021-03-17 12:03:23 +01:00
Ludovic Courtès 0571aa7abf
doc: Define the term "profile".
Fixes <https://bugs.gnu.org/46803>.
Reported by Luis Felipe <luis.felipe.la@protonmail.com>.

* doc/guix.texi (Getting Started): Introduce the term "profile".
(Invoking guix package): Likewise.
2021-03-17 12:03:23 +01:00
Ludovic Courtès bc3896db25
daemon: Correctly handle '--discover' with no value.
Previously, we'd get:

  $ guix-daemon --discover
  error: basic_string::_M_construct null not valid

* nix/nix-daemon/guix-daemon.cc (parse_opt): Change second argument to
'settings.set' to properly handle case where ARG is NULL.
2021-03-17 12:03:23 +01:00
Léo Le Bouter f194fbf50e
gnu: gnome-autoar: Update to 0.3.1 [fixes CVE-2021-28650].
* gnu/packages/gnome.scm (gnome-autoar): Update to 0.3.1.
2021-03-17 11:39:01 +01:00
Léo Le Bouter b26f958620
gnu: pzstd: Update to 1.4.9 [fixes CVE-2021-24032].
* gnu/packages/compression.scm (pzstd): Use 'package/inherit' over zstd so any
graft applied to zstd cascades onto pzstd which is built from the same
source.
2021-03-17 10:58:29 +01:00
Mark H Weaver 1a265842e6
gnu: Use PACKAGE/INHERIT in more places.
* gnu/packages/algebra.scm (fftwf, fftw-openmpi),
gnu/packages/audio.scm (ztoolkit-rsvg),
gnu/packages/bioinformatics.scm (python2-dendropy),
gnu/packages/boost.scm (boost-with-python2),
gnu/packages/check.scm (python2-mock, python2-pytest-mock),
gnu/packages/cups.scm (hplip-minimal),
gnu/packages/freedesktop.scm (libinput-minimal),
gnu/packages/gettext.scm (gnu-gettext),
gnu/packages/glib.scm (python2-pygobject),
gnu/packages/gnome.scm (gdl-minimal, libsoup-minimal, python2-pyatspi),
gnu/packages/groff.scm (groff-minimal),
gnu/packages/jami.scm (ffmpeg-jami),
gnu/packages/libcanberra.scm (libcanberra/gtk+-2),
gnu/packages/lirc.scm (python2-lirc),
gnu/packages/llvm.scm (clang-runtime-3.5),
gnu/packages/mpi.scm (java-openmpi, openmpi-thread-multiple),
gnu/packages/node.scm (libnode),
gnu/packages/onc-rpc.scm (libtirpc/hurd),
gnu/packages/python-compression.scm (bitshuffle-for-snappy),
gnu/packages/python-crypto.scm (python2-pycrypto, python2-cryptography)
(python2-cryptography, python2-m2crypto),
gnu/packages/python-web.scm (python2-html2text, python2-tornado)
(python2-terminado, python2-ndg-httpsclient, python2-websocket-client)
(python2-rauth, python2-url, python2-s3transfer),
gnu/packages/python-xyz.scm (python2-psutil, python2-serpent)
(python2-humanfriendly, python2-empy, python2-parse-type, python2-polib)
(python2-jsonschema, python2-pystache, python2-cython, python2-numpydoc)
(python2-ipyparallel, python2-traitlets, python2-dbus)
(python2-beautifulsoup4, python2-pep517, python2-flake8, python2-llfuse)
(python2-tlsh, python-file, python2-notebook, python-jupyter-console-minimal)
(python2-contextlib2, python2-promise, python2-anyjson, python2-amqp)
(python2-kombu, python2-billiard, python2-celery, python2-whoosh)
(python2-jellyfish, python-rope, ptpython-2, python2-binaryornot)
(python2-setproctitle, python2-argcomplete, python2-xopen, python2-isort)
(python2-radon, python2-rfc6555, python2-activepapers, python2-send2trash)
(python2-cloudpickle, python2-reparser),
gnu/packages/python.scm (python2-called-python),
gnu/packages/qt.scm (python2-sip, python-pyqt-without-qtwebkit, python2-pyqt)
(python-qscintilla, python-pyqt+qscintilla),
gnu/packages/scanner.scm (sane-backends),
gnu/packages/sdl.scm (guile3.0-sdl2),
gnu/packages/selinux.scm (checkpolicy, libselinux, libsemanage, secilc)
(python-sepolgen, policycoreutils),
gnu/packages/serialization.scm (lua5.1-libmpack, lua5.2-libmpack),
gnu/packages/simulation.scm (fenics),
gnu/packages/statistics.scm (python2-statsmodels),
gnu/packages/texinfo.scm (info-reader),
gnu/packages/wxwidgets.scm (wxwidgets-gtk2, wxwidgets-gtk2-3.1),
gnu/packages/xml.scm (xmlsec-nss),
gnu/packages/xorg.scm (uim-gtk, uim-qt),
guix/build-system/python.scm (package-with-explicit-python)
(strip-python2-variant): Use PACKAGE/INHERIT.
2021-03-17 03:58:10 -04:00
Mark H Weaver d9f501b619
gnu: gvfs: Add 'lint-hidden-cve' property.
* gnu/packages/gnome.scm (gvfs)[properties]: New field, marking
CVE-2019-12447, CVE-2019-12448, and CVE-2019-12449 as fixed.
2021-03-16 22:38:18 -04:00
Mark H Weaver c3fe23d0de
gnu: gnome-shell: Add 'lint-hidden-cve' property.
* gnu/packages/gnome.scm (gnome-shell)[properties]: New field, marking
CVE-2019-3820 as fixed.
2021-03-16 22:38:12 -04:00
Maxim Cournoyer 15423d38c5
gnu: qemu: Enable reproducible builds.
Fixes <https://issues.guix.gnu.org/47176>.  The solution was suggested by
bonzini on OFTC's #qemu channel.

* gnu/packages/virtualization.scm (qemu)[snippet]: Delete bundled meson copy.
[native-inputs]: Add meson-next.
2021-03-16 16:21:28 -04:00
Maxim Cournoyer f4259f93ea
gnu: Add meson-next.
* gnu/packages/build-tools.scm (meson-next): New variable.
2021-03-16 16:21:27 -04:00
Kei Kebreau 109f58444b
gnu: mpg321: Fix CVE-2019-14247.
* gnu/packages/patches/mpg321-CVE-2019-14247.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/mp3.scm (mpg321)[source]: Apply it.

Signed-off-by: Léo Le Bouter <lle-bout@zaclys.net>
Signed-off-by: Leo Famulari <leo@famulari.name>
2021-03-16 19:12:36 +01:00
Léo Le Bouter 82a9538ea0
gnu: varnish-modules: Update to 0.17.1 [fixes CVE-2021-28543].
* gnu/packages/web.scm (varnish-modules): Update to 0.17.1.
2021-03-16 18:41:41 +01:00
Florian Pelz 9ed2a26d04
news: Add ‘de’ translation. 2021-03-16 13:43:32 +00:00
Efraim Flashner 09b5cdf80d
gnu: tor: Update to 0.4.5.7 [security fixes].
* gnu/packages/tor.scm (tor): Update to 0.4.5.7.
2021-03-16 15:26:33 +02:00
Ricardo Wurmus 4f02c4c4a9
gnu: snakemake: Add missing inputs.
* gnu/packages/python-xyz.scm (snakemake)[propagated-inputs]: Add
python-nbformat, python-pulp, and python-toposort.
2021-03-16 14:17:48 +01:00
Ricardo Wurmus 08447ab7cd
gnu: Add python-toposort.
* gnu/packages/python-xyz.scm (python-toposort): New variable.
2021-03-16 14:17:48 +01:00
Ricardo Wurmus fa0a18522d
gnu: Add python-pulp.
* gnu/packages/python-xyz.scm (python-pulp): New variable.
2021-03-16 14:17:47 +01:00
Ricardo Wurmus c9006a0ee1
gnu: Add python-amply.
* gnu/packages/python-xyz.scm (python-amply): New variable.
2021-03-16 14:17:47 +01:00
Nicolas Goaziou 55ef497479
gnu: emacs-easy-kill: Update to 0.9.4.
* gnu/packages/emacs-xyz.scm (emacs-easy-kill): Update to 0.9.4.
2021-03-16 14:11:14 +01:00
Nicolas Goaziou 2724f1b231
gnu: emacs-leaf: Update to 4.4.0.
* gnu/packages/emacs-xyz.scm (emacs-leaf): Update to 4.4.0.
2021-03-16 14:10:17 +01:00
Nicolas Goaziou c954f795f9
gnu: python-pikepdf: Update to 2.9.0.
* gnu/packages/python-xyz.scm (python-pikepdf): Update to 2.9.0.
2021-03-16 14:09:06 +01:00
Nicolas Goaziou 335af327cd
gnu: asymptote: Update to 2.70.
* gnu/packages/plotutils.scm (asymptote): Update to 2.70.
2021-03-16 14:06:40 +01:00
Efraim Flashner 451f23df5e
gnu: b4: Fix setup.py version incompatibility.
* gnu/packages/version-control.scm (b4)[source]: Add snippet to not
require too specific of a version.

Reported-by: Kyle Meyer <kyle@kyleam.com>
2021-03-16 14:28:25 +02:00
Maxim Cournoyer 9bab0950f7
gnu: libmemcached: Disable test suite.
* gnu/packages/databases.scm (libmemcached): Disable test suite.  Removing
trailing #t.
[phases]{fix-configure}: Remove useless group in pattern.
{disable-failing-tests}: Remove phase.
{build-and-install-html-doc}: Order after the build phase.
[home-page]: Please 'guix lint'.

Reported-by: Simon Tournier <zimon.toutoune@gmail.com>
2021-03-16 07:46:20 -04:00