GNU bug report logs - #75270
[PATCH 0/3] services: greetd: Improve greeter configurations.

Previous Next

Package: guix-patches;

Reported by: muradm <mail <at> muradm.net>

Date: Wed, 1 Jan 2025 22:49:02 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: muradm <mail <at> muradm.net>
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: 75270 <at> debbugs.gnu.org
Subject: [bug#75270] [PATCH v6 1/3] services: greetd: Improve greeter configurations.
Date: Thu, 06 Feb 2025 17:02:33 +0300
[Message part 1 (text/plain, inline)]
Hello,

>> +@item @code{extra-shepherd-requirement} (default: @code{'()})
>> +This option can be used to provide a list of additional 
>> symbols naming Shepherd
>> +services that this service will depend on, such as 
>> @code{'seatd} or
>> +@code{'elogind} when terminal session is graphical greeter.
>
> Neat!  According to git-grep, the most common name for this 
> field is
> 'shepherd-requirement', followed by 'shepherd-requirements'.  I 
> think we
> should standardize on the former (shepherd-requirement), as this 
> gets
> passed as the 'requirement' field value of the underlying
> `shepherd-service' record.

I explicitly named field 'extra-shepherd-requirement' due to its 
implementation. Other places you mention about configure whole 
list of requirements, for instance:

--8<---------------cut here---------------start------------->8---
 (shepherd-requirement 
 mingetty-configuration-shepherd-requirement
                       ;; Since the login prompt shows the host 
                       name, wait
                       ;; for the 'host-name' service to be done. 
                       Also wait
                       ;; for udev essentially so that the tty 
                       text is not
                       ;; lost in the middle of kernel messages 
                       (XXX).
                       (default '(user-processes host-name udev
                                                 virtual-terminal))))

 ;; .... skipped

   (list
    (shepherd-service
     (documentation "Run mingetty on an tty.")
     (provision (list (symbol-append 'term- (string->symbol 
     tty))))

     (requirement shepherd-requirement)
--8<---------------cut here---------------end--------------->8---

Compared to what 'extra-shepherd-requirement' means:

--8<---------------cut here---------------start------------->8---
+  (extra-shepherd-requirement greetd-extra-shepherd-requirement 
(default '()))

-          (greetd-vt (greetd-terminal-vt tc)))
+          (greetd-vt (greetd-terminal-vt tc))
+          (greetd-requirement (greetd-extra-shepherd-requirement 
tc)))
       (shepherd-service
        (documentation "Minimal and flexible login manager 
        daemon")
-        (requirement '(pam user-processes host-name udev 
        virtual-terminal))
+        (requirement `(pam user-processes host-name udev 
virtual-terminal
+                           ,@greetd-requirement))
--8<---------------cut here---------------end--------------->8---

We add to requrements, thus 'extra-shepherd-requirement', compared 
to other overriding requirements.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 161 days ago.

Previous Next


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