Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470910 - sys-apps/util-linux - uuidd: make optional, add openrc script
Summary: sys-apps/util-linux - uuidd: make optional, add openrc script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: systemd-consumers 462058
  Show dependency tree
 
Reported: 2013-05-21 19:28 UTC by Alexander Tsoy
Modified: 2024-05-11 17:19 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
files/uuidd.initd (uuidd.initd,573 bytes, text/plain)
2013-05-21 19:28 UTC, Alexander Tsoy
Details
util-linux-2.22.2.ebuild.patch (util-linux-2.22.2.ebuild.patch,1.66 KB, patch)
2013-05-21 19:29 UTC, Alexander Tsoy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2013-05-21 19:28:16 UTC
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.
Comment 1 Alexander Tsoy 2013-05-21 19:28:47 UTC
Created attachment 348850 [details]
files/uuidd.initd
Comment 2 Alexander Tsoy 2013-05-21 19:29:07 UTC
Created attachment 348852 [details, diff]
util-linux-2.22.2.ebuild.patch
Comment 3 Alexander Tsoy 2013-05-21 22:31:19 UTC
(In reply to comment #1)
> Created attachment 348850 [details]
> files/uuidd.initd

depend() should be changed:
"after clock" -> "need localmount clock"
Comment 4 Kai Krakow 2013-12-09 13:49:41 UTC
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.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-04-03 23:12:43 UTC
eroyf:
Can you bump this patch with acct-{user,group}/uuidd?
Comment 6 Mike Gilbert gentoo-dev 2024-05-11 16:10:18 UTC
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.
Comment 7 Mike Gilbert gentoo-dev 2024-05-11 16:29:40 UTC
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>
Comment 8 Larry the Git Cow gentoo-dev 2024-05-11 17:19:40 UTC
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(-)