GNU bug report logs -
#65413
[PATCH] services: mcron: Add module for %user-log-dir.
Previous Next
Reported by: Hilton Chain <hako <at> ultrarare.space>
Date: Mon, 21 Aug 2023 04:36:01 UTC
Severity: normal
Tags: patch
Done: Hilton Chain <hako <at> ultrarare.space>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65413 in the body.
You can then email your comments to 65413 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
ludo <at> gnu.org, guix-patches <at> gnu.org
:
bug#65413
; Package
guix-patches
.
(Mon, 21 Aug 2023 04:36:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Hilton Chain <hako <at> ultrarare.space>
:
New bug report received and forwarded. Copy sent to
ludo <at> gnu.org, guix-patches <at> gnu.org
.
(Mon, 21 Aug 2023 04:36:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/services/mcron.scm (mcron-shepherd-services)[modules]: Add
(shepherd support) for home service.
---
This patch fixes the following error:
Loading /gnu/store/...-shepherd.conf.
herd: error: exception caught while executing 'load' on service 'root':
Unbound variable: %user-log-dir
I wasn't fully sure to report the issue in #65119 since the error didn't occur
in a home container, sorry for my hesitation.
gnu/services/mcron.scm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gnu/services/mcron.scm b/gnu/services/mcron.scm
index db8b539ff5..efb7465549 100644
--- a/gnu/services/mcron.scm
+++ b/gnu/services/mcron.scm
@@ -165,6 +165,9 @@ (define (mcron-shepherd-services config)
(ice-9 popen) ;for the 'schedule' action
(ice-9 rdelim)
(ice-9 match)
+ ,(if home-service?
+ '(shepherd support) ;for '%user-log-dir'
+ '())
,@%default-modules))
(start #~(make-forkexec-constructor
(list #$(file-append mcron "/bin/mcron")
base-commit: 7cad70566322262f6acdbbb965e867e34010eb55
--
2.41.0
Reply sent
to
Hilton Chain <hako <at> ultrarare.space>
:
You have taken responsibility.
(Tue, 22 Aug 2023 12:49:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Hilton Chain <hako <at> ultrarare.space>
:
bug acknowledged by developer.
(Tue, 22 Aug 2023 12:49:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 65413-done <at> debbugs.gnu.org (full text, mbox):
On Mon, 21 Aug 2023 12:33:22 +0800,
Hilton Chain wrote:
>
> * gnu/services/mcron.scm (mcron-shepherd-services)[modules]: Add
> (shepherd support) for home service.
> ---
Pushed as 552d0703776c532f25498d5cb852c3c497cb9252.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#65413
; Package
guix-patches
.
(Tue, 22 Aug 2023 15:22:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 65413 <at> debbugs.gnu.org (full text, mbox):
On Tue, 22 Aug 2023 20:47:51 +0800,
Hilton Chain wrote:
>
> On Mon, 21 Aug 2023 12:33:22 +0800,
> Hilton Chain wrote:
> >
> > * gnu/services/mcron.scm (mcron-shepherd-services)[modules]: Add
> > (shepherd support) for home service.
> > ---
>
> Pushed as 552d0703776c532f25498d5cb852c3c497cb9252.
Fixup pushed as 0c4fb8f43f8aba2dcabe1bc97a8f6d8d41057704...
--8<---------------cut here---------------start------------->8---
1 file changed, 1 insertion(+), 3 deletions(-)
gnu/services/mcron.scm | 4 +---
modified gnu/services/mcron.scm
@@ -165,9 +165,7 @@ (define (mcron-shepherd-services config)
(ice-9 popen) ;for the 'schedule' action
(ice-9 rdelim)
(ice-9 match)
- ,(if home-service?
- '((shepherd support) #:select (%user-log-dir))
- '())
+ ((shepherd support) #:select (%user-log-dir))
,@%default-modules))
(start #~(make-forkexec-constructor
(list #$(file-append mcron "/bin/mcron")
--8<---------------cut here---------------end--------------->8---
Information forwarded
to
guix-patches <at> gnu.org
:
bug#65413
; Package
guix-patches
.
(Tue, 22 Aug 2023 16:12:01 GMT)
Full text and
rfc822 format available.
Message #16 received at 65413 <at> debbugs.gnu.org (full text, mbox):
Hilton Chain <hako <at> ultrarare.space> skribis:
> * gnu/services/mcron.scm (mcron-shepherd-services)[modules]: Add
> (shepherd support) for home service.
> ---
>
> This patch fixes the following error:
> Loading /gnu/store/...-shepherd.conf.
> herd: error: exception caught while executing 'load' on service 'root':
> Unbound variable: %user-log-dir
>
> I wasn't fully sure to report the issue in #65119 since the error didn't occur
> in a home container, sorry for my hesitation.
I tested the changes in ‘guix home container’ and didn’t notice the
error; I wonder what’s going on, would be worth investigating.
Anyway, thanks for the quick fix!
Ludo’.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 20 Sep 2023 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 270 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.