From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id cDBABupju2ZQYgAA62LTzQ:P1 (envelope-from ) for ; Tue, 13 Aug 2024 13:47:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id cDBABupju2ZQYgAA62LTzQ (envelope-from ) for ; Tue, 13 Aug 2024 15:47:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=iXSyML0G; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1723556842; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=H9Y4LNblxPHlyGdR6SdYqYIq1izesNiZZ9gUGTICaFI=; b=VvgCeDMiAHTE7OJR79/UGZHCFbMJ0wrGkxfg0P4+ZVTdKwneFsaIhbPjACA76Bwlabpy0z 0N5/JFAFHjbLIsTK23Ti7rtllcIt+UIG+OUKDBqrMp6nUgv4VOCXuK4xVcUWfGuBtN0NK6 X4pmp4rVylYzE55PHZ4lQlBAjbJv6RDfpkyD0/qlu6cZP33dBIMCa0ZQByIXDkYNlwpV1q JXyahqYjfLQiNmM1iN0Wkswd6jl1ILBLW2df7+Tb6mN/Zzv135TFnwQ59DJsUVcQ0I9fCq zIh6hJ7rCL5pRA48wRGEWrOgHPFTEaeGw1pLEz3+9gbLyME6mG+TqmoN+ZtJPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=iXSyML0G; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723556842; a=rsa-sha256; cv=none; b=QqHiwA1ZVhlURHW0//UhQvId67TYxlHITl0Cki9GnP6kUr1fg8cd5n8BOZTcJhKxzYuyk7 Cq0daXchNg0x9TyS11loFAMgCizydfZfY8NF8JZcW8OYqlaXVrZTwGBN7um2Luoblj3uKv KugpnbZS4JiyZHNVHYQNqneQxMjCkgVn0AbxL5TW7SdxFMukAlzUh9PUTYtPGkKj7JYO54 t6n1Vp/7oRDJWBX9ztzlEV/M12YCW4qXbHW9+d2DOBu31P0oMMTPSagfgGtgajPPMHd3E3 ciGxt7GkfwOEz80U/D2X3QLG+CAHJl5lfcnQhw1soiqVLLZYl0q3dKe/ewVG+Q== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E87116EE6B for ; Tue, 13 Aug 2024 15:47:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdrrB-0005Wu-SN; Tue, 13 Aug 2024 09:46:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdrrA-0005KJ-3c for guix-devel@gnu.org; Tue, 13 Aug 2024 09:46:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sdrr8-0006RT-BV; Tue, 13 Aug 2024 09:46:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=H9Y4LNblxPHlyGdR6SdYqYIq1izesNiZZ9gUGTICaFI=; b=iXSyML0G2rT5hh8CZPmR JA7hynu1RdKnZ6xdCnxBTUZ+fyeKvyermo2eU0f/WdLWj1CuZSKuLIVoJuuy3rE4kE7uYn5eeD3jC RK8eoBto44Y6096fy9r0aMlzvL4awFKGZ4GzdzRwWp+o9lJa3wTcNRjKApTYh5UA1K0nYjS1ShH+d 1rh6vY674PqRIGdMv3G3hxxtidaDZrO7vgi1m5sH5cDxgyrgTPbFx0wL0EHOlkaCctxSMbflgKfhX jt796ePmYbe8d1KW4RwG9TkF8od36Rg4sotV3AujN8vkNJLY8ovXtamRl5R670rMAb8eZ52wPoZMC +TV0oxGx4j8N9Q==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Felix Lechner Cc: Attila Lendvai , Maya , guix-devel@gnu.org Subject: Shepherd calendar event bug In-Reply-To: <87v805bbwm.fsf@lease-up.com> (Felix Lechner's message of "Mon, 12 Aug 2024 15:43:05 -0700") References: <87a5je77f8.fsf@zenmaya.xyz> <877cea7cvf.fsf@gnu.org> <874j9el2r1.fsf@zenmaya.xyz> <8734oxw0yy.fsf@lease-up.com> <7bBOkABsh2UGPl3R44IG9ReG-7b5Cgp6oh4l-exc7kU948GaaYpzXSI4GoDhYEBrCy3xNlwATA07IUagy5nnWzb2hd4wvN0ebe058AEwkkY=@lendvai.name> <87v805bbwm.fsf@lease-up.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Septidi 27 Thermidor an 232 de la =?utf-8?Q?R=C3=A9v?= =?utf-8?Q?olution=2C?= jour du Colza X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 13 Aug 2024 15:46:31 +0200 Message-ID: <87v804a62w.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -11.19 X-Migadu-Queue-Id: E87116EE6B X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -11.19 X-TUID: 70R/lqwSiLNj Felix Lechner skribis: > Okay, then there is still another problem. I am unable to reconfigure > my systems via 'guix deploy' when a timer is enabled already. I am > trying to add a second timer. [...] > (start #~(make-timer-constructor > ;; Every first Sunday of the month at 1 AM. > (calendar-event #:days-of-month '(1 2 3 4 5 6 7) > #:days-of-week '(sunday) > #:hours '(1)) I was able to reproduce the issue with current =E2=80=98devel=E2=80=99: --8<---------------cut here---------------start------------->8--- scheme@(shepherd service timer)> (next-calendar-event (calendar-event #:day= s-of-month '(1 2 3 4 5 6 7) #:days-of-week '(sunday) #:hours '(1)) (time-utc->date (current-time time-utc))) ice-9/boot-9.scm:1676:22: In procedure raise-exception: Throw to key `match-error' with args `("match" "no matching pattern" ())'. Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(shepherd service timer) [1]> ,bt In shepherd/service/timer.scm: 327:8 2 (next-calendar-event #< seconds: (0) minutes: = (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 = 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 = 53 54 55 56 57 58 59) hours: (1) days-of-month: (1 2 3 4 5 6 7) months: (1 = 2 3 4 5 6 7 8 9 10 11 12) days-of-week: (0)> _) 252:4 1 (fit-day _ _ _) In ice-9/boot-9.scm: 1676:22 0 (raise-exception _ #:continuable? _) --8<---------------cut here---------------end--------------->8--- Note that this is asking for a Sunday 1st, or 2nd, etc. until 7th, contrary to what the comment says. It should be able to find Sunday, Sept. 1st at least. I=E2=80=99ll investigate but in the meantime maybe what you want is to remo= ve #:days-of-month? Ludo=E2=80=99.