GNU bug report logs - #67649
shepherd: (shepherd support) is visible for start GEXP

Previous Next

Package: guix;

Reported by: Attila Lendvai <attila <at> lendvai.name>

Date: Tue, 5 Dec 2023 20:12:01 UTC

Severity: normal

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Attila Lendvai <attila <at> lendvai.name>
Subject: bug#67649: closed (Re: bug#67649: shepherd: (shepherd support) is
 visible for start GEXP)
Date: Sun, 31 Mar 2024 14:21:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#67649: shepherd: (shepherd support) is visible for start GEXP

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 67649 <at> debbugs.gnu.org.

-- 
67649: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67649
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ludovic Courtès <ludo <at> gnu.org>
To: Attila Lendvai <attila <at> lendvai.name>
Cc: 67649-done <at> debbugs.gnu.org
Subject: Re: bug#67649: shepherd: (shepherd support) is visible for start GEXP
Date: Sun, 31 Mar 2024 16:20:31 +0200
Hi,

Ludovic Courtès <ludo <at> gnu.org> skribis:

> This is a Guix bug we can fix by loading each service file in a fresh
> module:

[...]

> I’ll push the patch soonish.

Pushed as 6f9d844d2ece7b369d17bbe678978462425f869c last week.

Thanks!

Ludo’.

[Message part 3 (message/rfc822, inline)]
From: Attila Lendvai <attila <at> lendvai.name>
To: "bug-guix <at> gnu.org" <bug-guix <at> gnu.org>
Subject: shepherd: (shepherd support) is visible for start GEXP
Date: Tue, 05 Dec 2023 20:10:19 +0000
[Message part 4 (text/plain, inline)]
the facts:
----------

start GEXP's of services are loaded into unnamed modules. the definitions from (shepherd support) are visible in these unnamed modules. see the attached rerpoducer.

it can be run with:

$(guix system --no-graphic vm reproducer.scm)

and in the VM (must use fold, because it's a dumb terminal):

cat /var/log/messages | fold -150

and observe that (shepherd support) is listed.


questions:
----------

is this indended? i.e. part of the shepherd API?

if not, then this is probably a bug. looking at the public definitions in (shepherd support), it's not obvious that those are meant to be available for the users of shepherd. either way, this should probably be documented with at least a comment at the top of the file.

if this is intended, then where is this module imported? i looked all around, and i can't seem to find what mechanism imports this support module into the unnamed module that are used for the GEXPs.


my ultimate issue:
------------------

my service code has conflicting definitions with (shepherd support), and i need to know the intent in the shepherd API to decide on the proper fix.

-- 
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Tact is a skill that can turn brutal honesty into just honesty. It's a skill that develops with practice, and one that's harder to use when emotions are running high. But you can't go towards someone with a verbal fist and expect a hug in return. When method matches intention, outcomes are much more peaceful.”
	— Doe Zantamata
[reproducer.scm (text/x-scheme, attachment)]

This bug report was last modified 1 year and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.