aboutsummaryrefslogtreecommitdiff
;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016-2020, 2023 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2023 Bruno Victal <mirai@makinata.eu> ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. (define-module (gnu services mcron) #:use-module (gnu services) #:use-module ((gnu services configuration) #:select (define-configuration/no-serialization)) #:use-module (gnu services shepherd) #:use-module (gnu system privilege) #:use-module (gnu packages guile-xyz) #:use-module ((guix packages) #:select (package?)) #:use-module (guix records) #:use-module (guix gexp) #:use-module (srfi srfi-1) #:use-module (ice-9 match) #:use-module (ice-9 vlist) #:export (mcron-configuration mcron-configuration? mcron-configuration-mcron mcron-configuration-jobs mcron-configuration-log? mcron-configuration-log-file mcron-configuration-log-format mcron-configuration-date-format mcron-configuration-home-service? mcron-service-type cron-daemon-configuration cron-daemon-configuration-cron cron-daemon-configuration- cron-daemon-service-type)) ;;; Commentary: ;;; ;;; This module implements a service that to run instances of GNU mcron, a ;;; periodic job execution daemon. Example of a service: ;; ;; (service mcron-service-type ;; (mcron-configuration ;; (jobs (list #~(job next-second-from ;; (lambda () ;; (call-with-output-file "/dev/console" ;; (lambda (port) ;; (display "hello!\n" port))))))))) ;;; ;;; Code: ;; Configuration of mcron. ;; XXX: 'define-configuration' cannot be used here due to the need for ;; 'thunked' and 'innate' fields as well as 'this-mcron-configuration'. (define-record-type* <mcron-configuration> mcron-configuration make-mcron-configuration mcron-configuration? this-mcron-configuration (mcron mcron-configuration-mcron ;file-like (default mcron)) (jobs mcron-configuration-jobs ;list of gexps (default '())) (log? mcron-configuration-log? ;Boolean (default #t))
2018-03-20Merge branch 'staging'Marius Bakke
2018-03-20gnu: fontconfig: Update to 2.13.0.Marius Bakke
* gnu/packages/patches/fontconfig-remove-debug-printf.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. * gnu/packages/fontutils.scm (fontconfig): Update to 2.13.0. [source](patches): Remove. [propagated-inputs]: Add UTIL-LINUX.
2018-03-20Merge branch 'master' into core-updatesMark H Weaver
2018-03-19gnu: libtirpc: Update to 1.0.3.Tobias Geerinckx-Rice
* gnu/packages/onc-rpc.scm (libtirpc): Update to 1.0.3. [source]: Remove patch. * gnu/packages/patches/libtirpc-missing-headers.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it.
2018-03-18gnu: guile-gdbm-ffi: Add support for gdbm-1.14.Mark H Weaver
* gnu/packages/patches/guile-gdbm-ffi-support-gdbm-1.14.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/guile.scm (guile-gdbm-ffi)[inputs]: Move above arguments. Add the patch, and the 'patch' program. [propagated-inputs]: Move above arguments. [arguments]: In the builder, add code to apply the patch.
2018-03-18Merge branch 'master' into stagingMarius Bakke
2018-03-17gnu: Add terraform-docs.Christopher Baines
* gnu/packages/terraform.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
2018-03-18gnu: java-simple-xml: Fix java8 test failures.Gábor Boskovits
* gnu/packages/patches/javas-simple-xml-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/java.scm (java-simple-xml)[source](patches): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2018-03-17gnu: libvorbis: Ungraft.Mark H Weaver
* gnu/packages/xiph.scm (libvorbis): Update to 1.3.6. [replacement]: Remove field. [source]: Remove patches. (libvorbis-1.3.6): Remove variable.
2018-03-17Merge branch 'master' into core-updatesMark H Weaver
2018-03-16gnu: binutils: Update to 2.30.Marius Bakke
* gnu/packages/patches/binutils-ld-new-dtags.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. * gnu/packages/base.scm (binutils): Update to 2.30. [source](patches): Remove obsolete patch. [arguments]: Add "--enable-new-dtags" in #:configure-flags.
2018-03-16gnu: util-linux: Fix CVE-2018-7738.Leo Famulari
* gnu/packages/patches/util-linux-CVE-2018-7738.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/linux.scm (util-linux)[replacement]: New field. (util-linux/fixed): New variable.
2018-03-16gnu: tar: Fix sparse file detection on Btrfs file systems.Mark H Weaver
* gnu/packages/patches/tar-remove-wholesparse-check.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/base.scm (tar)[source]: Add patch.
2018-03-15gnu: shadow: Fix CVE-2018-7169.Leo Famulari
* gnu/packages/patches/shadow-CVE-2018-7169.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/admin.scm (shadow)[source]: Use it.
2018-03-15gnu: glib: Update to 2.56.0.Marius Bakke
* gnu/packages/glib.scm (glib): Update to 2.56.0. [source](patches): Remove obsolete patch. [arguments]: Disable new MIME test. * gnu/packages/patches/glib-respect-datadir.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it.
2018-03-14Merge branch 'master' into core-updatesRicardo Wurmus
2018-03-14gnu: Add ada.scm to GNU_SYSTEM_MODULES.Ricardo Wurmus
This is a follow-up to commit ebd43a2a45f9ac0ce702ef5810eddafd0830db5f. * gnu/local.mk (GNU_SYSTEM_MODULES): Add ada.scm.
2018-03-12gnu: Add debian-archive-keyring.Efraim Flashner
* gnu/packages/debian.scm (debian-archive-keyring): New variable. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
2018-03-12Merge branch 'staging-next' into stagingMarius Bakke
2018-03-12gnu: lrzip: Fix CVE-2017-8842.Tobias Geerinckx-Rice
* gnu/packages/compression.scm (lrzip)[source]: Add patch. * gnu/packages/patches/lrzip-CVE-2017-8842.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it.
2018-03-11gnu: java-jeromq: Fix tests.Gábor Boskovits
* gnu/packages/patches/java-jeromq-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/java.scm (java-jeromq)[source](patches): Add it. [arguments](#test-exclude): Disable more failing tests.
2018-03-10gnu: zsh: Fix CVE-2018-{7548,7549}.Leo Famulari
* gnu/packages/patches/zsh-CVE-2018-7548.patch, gnu/packages/patches/zsh-CVE-2018-7549.patch: New files. * gnu/local.mk (dist_patch_DATA): Add them. * gnu/packages/shells.scm (zsh)[source]: Use them.
2018-03-08Merge branch 'master' into stagingMarius Bakke
2018-03-08gnu: libxcb: Update to 1.13.Marius Bakke
* gnu/packages/xorg.scm (libxcb): Update to 1.13. [source](patches): Remove. * gnu/packages/patches/libxcb-python-3.5-compat.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly.
2018-03-08gnu: xcb-proto: Update to 1.13.Marius Bakke
* gnu/packages/xorg.scm (xcb-proto): Update to 1.13. [source](patches): Remove. * gnu/packages/patches/xcb-proto-python3-print.patch, gnu/packages/patches/xcb-proto-python3-whitespace.patch: Delete files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly.
2018-03-08gnu: graphite2: Update to 1.3.11.Marius Bakke
* gnu/packages/patches/graphite2-ffloat-store.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. * gnu/packages/fontutils.scm (graphite2): Update to 1.3.11. [source](patches): Remove.
2018-03-08gnu: giflib: Make "reallocarray" private, solve glibc@2.26 conflict.Hartmut Goebel
Rename the function and move the declaration from gif_lib.h to gif_lib_private.h to solve conflicts when some .c-file #includes both stdlib.h and gif_lib.h. See also https://sourceforge.net/p/giflib/bugs/110/ * gnu/packages/patches/giflib-make-reallocarray-private.patch: New file * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/image.scm(giflib)[source](patches): New field.
2018-03-07gnu: gnome-todo: Fix compatibility with libical >= 3.0.Marius Bakke
* gnu/packages/patches/gnome-todo-libical-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/gnome.scm (gnome-todo)[source](patches): Use it.
2018-03-06gnu: Add maven-resolver-api.Julien Lepiller
* gnu/packages/maven.scm: New file. (maven-resolver-api): New variable. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
2018-03-06Merge branch 'master' into stagingLeo Famulari
2018-03-04gnu: ceph: Update to 12.2.4.Marius Bakke
* gnu/packages/patches/ceph-disable-cpu-optimizations.patch: Adjust to upstream changes. * gnu/packages/patches/ceph-disable-unittest-throttle.patch: Delete file. * gnu/packages/patches/ceph-rocksdb-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/storage.scm (ceph): Update to 12.2.4. [source](patches): Adjust. [arguments]: Add "-DWITH_BABELTRACE=OFF" in #:configure-flags. Build with CMAKE-3.11. Adjust file substitutions. Wrap 'ceph' executable. [native-inputs]: Add GPERF. [inputs]: Replace BOOST with BOOST-1.66. Add PYTHON2-PRETTYTABLE.
2018-03-04gnu: antlr3-3.3: Fix java8 issue.Gábor Boskovits
* gnu/packages/java.scm (antlr3-3.3)[source]: Add patch. * gnu/packages/patches/antlr3-3_3-fix-java8-compilation.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
2018-03-04gnu: antlr3-3.1: Fix java8 issue.Gábor Boskovits
* gnu/packages/java.scm (antlr3-3.1)[source]: Add patch. * gnu/packages/patches/antlr3-3_1-fix-java8-compilation.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
2018-03-02gnu: Add r-hpar.Ricardo Wurmus
* gnu/packages/bioconductor.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
2018-03-02gnu: icecat: Update to 52.6.0-gnu1.Mark H Weaver
* gnu/packages/gnuzilla.scm (icecat): Update to 52.6.0-gnu1. [source]: Remove patches that are no longer needed. * gnu/packages/patches/icecat-bug-1348660-pt5.patch, gnu/packages/patches/icecat-bug-1414945.patch, gnu/packages/patches/icecat-bug-1415133.patch, gnu/packages/patches/icecat-bug-1424373-pt2.patch: Delete files. * gnu/local.mk (dist_patch_DATA): Remove them.
2018-03-01gnu: php: Fix test failure.Julien Lepiller
* gnu/packages/php.scm (php)[inputs]: Use gd-for-php. (gd-for-php): New private variable. * gnu/packages/patches/gd-CVE-2018-5711.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it.
2018-03-01gnu: Graft glibc to allow execution on Linux 2.6.32.Ricardo Wurmus
* gnu/packages/patches/glibc-allow-kernel-2.6.32.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/base.scm (glibc/linux)[replacement]: New field. (glibc-2.26-patched): New variable.
2018-03-01Merge branch 'master' into stagingMarius Bakke
2018-02-28gnu: dovecot: Update to 2.3.0.1 [fixes CVE-2017-14461].Tobias Geerinckx-Rice
* gnu/packages/mail.scm (dovecot): Update to 2.3.0.1. [source]: Remove upstreamed patch. * gnu/packages/patches/dovecot-CVE-2017-15132.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it.
2018-02-28gnu: wavpack: Fix CVE-2018-6767.Marius Bakke
* gnu/packages/patches/wavpack-CVE-2018-6767.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/audio.scm (wavpack)[source](patches): Add it.
2018-02-28gnu: pcre2: Update to 10.31.Tobias Geerinckx-Rice
* gnu/packages/pcre.scm (pcre2): Update to 10.31. [source]: Remove upstreamed patches. * gnu/packages/patches/pcre2-CVE-2017-7186.patch: Delete this file... * gnu/packages/patches/pcre2-CVE-2017-8786.patch: ...and this one. * gnu/local.mk (dist_patch_DATA): Remove them.
2018-02-28gnu: python-mox3: Update to 0.24.0.Marius Bakke
* gnu/packages/openstack.scm (python-mox3): Update to 0.24.0. [source](patches): New field. [arguments]: Remove. [native-inputs]: Add PYTHON-OPENSTACKDOCSTHEME and PYTHON-SUBUNIT. Replace PYTHON-SPHINX with PYTHON-SPHINX-1.6. Move PYTHON-PBR and PYTHON-FIXTURES ... [propagated-inputs]: ... here. New field. [description]: Don't mention explicit Python versions. * gnu/packages/patches/python-mox3-python3.6-compat.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
2018-02-28gnu: dblatex: Update to 0.3.10.Tobias Geerinckx-Rice
* gnu/packages/docbook.scm (dblatex): Update to 0.3.10. [source]: Remove patch. * gnu/packages/patches/dblatex-remove-multirow.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it.
2018-02-28services: cgit: Add more configuration fields.Oleg Pykhalov
* gnu/services/version-control.scm (cgit-service-type): Move to separate file. * gnu/services/cgit.scm: New file. * gnu/local.mk (GNU_SYSTEM_MODULES): Add this. * gnu/tests/version-control.scm: Add this. * doc/guix.texi (Cgit Service): Document this.
2018-02-27gnu: perl-gd: Update to 2.68.Tobias Geerinckx-Rice
* gnu/packages/gd.scm (perl-gd): Update to 2.68. [source]: Remove obsolete patch. [native-inputs]: Remove perl-module-build. [inputs]: Use canonical package names and order alphabetically. [arguments]: Replace #:module-build-flags with fewer #:make-maker-flags, enable #:tests?, and remove ‘clear-autogenerated-files’ phase. * gnu/packages/patches/perl-gd-options-passthrough-and-fontconfig.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it.
2018-02-26gnu: python-parse: Update to 1.8.2.Marius Bakke
* gnu/packages/patches/python-parse-too-many-fields.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. * gnu/packages/python.scm (python-parse): Update to 1.8.2. [source](patches): Remove. [arguments]: Use INVOKE instead of SYSTEM*.