1. Let's make uuidd optional. Seems it is not widely used: nobody requested openrc script for it yet and some distributions (e.g. rhel) even ships uuidd in a separate package. 2. Add openrc script for uuidd. 3. Systemd units are instaled automagically if systemd is installed. Use systemd.eclass to always install systemd units if USE=uuidd.
Created attachment 348850 [details] files/uuidd.initd
Created attachment 348852 [details, diff] util-linux-2.22.2.ebuild.patch
(In reply to comment #1) > Created attachment 348850 [details] > files/uuidd.initd depend() should be changed: "after clock" -> "need localmount clock"
For uuidd to actually work with the shipped uuidd service files, uuidd has to be compiled with socket activation support. The man page even states that this is only used in combination with systemd. So maybe add a systemd useflag which compiles uuidd with socket activation support. If you still want to make uuidd optional, there should probably be a use constraint like "systemd? (uuid)". Having a use flag like systemd sounds more logical to me than implementing suggestion number 3 from the bug description.
eroyf: Can you bump this patch with acct-{user,group}/uuidd?
Looks like util-linux is now installing a tmpfiles snippet. From IRC: Mai 10 20:17:26 lucy systemd[1]: Starting Cleanup of Temporary Directories... Mai 10 20:17:26 lucy systemd-tmpfiles[3498]: /usr/lib/tmpfiles.d/uuidd-tmpfiles.conf:5: Failed to resolve user 'uuidd': No such process Mai 10 20:17:26 lucy systemd-tmpfiles[3498]: /usr/lib/tmpfiles.d/uuidd-tmpfiles.conf:6: Failed to resolve user 'uuidd': No such process Mai 10 20:17:26 lucy systemd[1]: systemd-tmpfiles-clean.service: Deactivated successfully. Mai 10 20:17:26 lucy systemd[1]: Finished Cleanup of Temporary Directories.
commit 3d914ed6943fa80ad9a615d58e4b5257665a9a66 Author: Mike Gilbert <floppym@gentoo.org> Date: Sat May 11 12:22:38 2024 -0400 uid-gid.txt: assign 540 to uuidd Signed-off-by: Mike Gilbert <floppym@gentoo.org>
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bdea3071842b04cc1c183856c7af4ce8a118154 commit 8bdea3071842b04cc1c183856c7af4ce8a118154 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2024-05-11 17:18:07 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2024-05-11 17:19:19 +0000 sys-apps/util-linux: wire up uuidd properly Closes: https://bugs.gentoo.org/470910 Closes: https://bugs.gentoo.org/931303 Signed-off-by: Mike Gilbert <floppym@gentoo.org> sys-apps/util-linux/files/uuidd.initd | 10 ++++++++++ sys-apps/util-linux/metadata.xml | 1 + ...ux-2.40.1.ebuild => util-linux-2.40.1-r1.ebuild} | 21 +++++++++++++++++++-- sys-apps/util-linux/util-linux-9999.ebuild | 21 +++++++++++++++++++-- 4 files changed, 49 insertions(+), 4 deletions(-)