diff options
author | Mike Gilbert <floppym@gentoo.org> | 2024-05-20 11:03:48 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2024-05-20 11:06:06 -0400 |
commit | c41f012f4b8aa5b7fc231a2da8a0dd8a5af72ec1 (patch) | |
tree | d0a2d4fbe5491bb3b1157924d05110a8019468f9 /sys-apps/util-linux | |
parent | net-vpn/ocserv: depend on ipcalc unconditionally (diff) | |
download | gentoo-c41f012f4b8aa5b7fc231a2da8a0dd8a5af72ec1.tar.gz gentoo-c41f012f4b8aa5b7fc231a2da8a0dd8a5af72ec1.tar.bz2 gentoo-c41f012f4b8aa5b7fc231a2da8a0dd8a5af72ec1.zip |
sys-apps/util-linux: uuidd fixes for OpenRC
The build system only installs the tmpfiles.d file when systemd is
enabled. Compensate by calling checkpath in the init script.
Closes: https://bugs.gentoo.org/932276
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'sys-apps/util-linux')
-rw-r--r-- | sys-apps/util-linux/files/uuidd.initd | 5 | ||||
-rw-r--r-- | sys-apps/util-linux/util-linux-2.40.1-r2.ebuild (renamed from sys-apps/util-linux/util-linux-2.40.1-r1.ebuild) | 4 | ||||
-rw-r--r-- | sys-apps/util-linux/util-linux-9999.ebuild | 4 |
3 files changed, 9 insertions, 4 deletions
diff --git a/sys-apps/util-linux/files/uuidd.initd b/sys-apps/util-linux/files/uuidd.initd index 329929e9a9ab..b1e7e563b297 100644 --- a/sys-apps/util-linux/files/uuidd.initd +++ b/sys-apps/util-linux/files/uuidd.initd @@ -8,3 +8,8 @@ pidfile=/run/uuidd/uuidd.pid depend() { need clock localmount } + +start_pre() { + checkpath -d -m 2755 -o uuidd:uuidd /run/uuidd && + checkpath -d -m 0755 -o uuidd:uuidd /var/lib/libuuid +} diff --git a/sys-apps/util-linux/util-linux-2.40.1-r1.ebuild b/sys-apps/util-linux/util-linux-2.40.1-r2.ebuild index c112b4749522..a9980ed89514 100644 --- a/sys-apps/util-linux/util-linux-2.40.1-r1.ebuild +++ b/sys-apps/util-linux/util-linux-2.40.1-r2.ebuild @@ -87,7 +87,7 @@ RDEPEND+=" ) uuidd? ( acct-user/uuidd - virtual/tmpfiles + systemd? ( virtual/tmpfiles ) ) !net-wireless/rfkill " @@ -426,7 +426,7 @@ pkg_postinst() { elog "might want to add --noclear to your /etc/inittab lines." fi - if use uuidd; then + if use systemd && use uuidd; then tmpfiles_process uuidd-tmpfiles.conf fi } diff --git a/sys-apps/util-linux/util-linux-9999.ebuild b/sys-apps/util-linux/util-linux-9999.ebuild index 053f45a99077..f3ea42edeeff 100644 --- a/sys-apps/util-linux/util-linux-9999.ebuild +++ b/sys-apps/util-linux/util-linux-9999.ebuild @@ -87,7 +87,7 @@ RDEPEND+=" ) uuidd? ( acct-user/uuidd - virtual/tmpfiles + systemd? ( virtual/tmpfiles ) ) !net-wireless/rfkill " @@ -425,7 +425,7 @@ pkg_postinst() { elog "might want to add --noclear to your /etc/inittab lines." fi - if use uuidd; then + if use systemd && use uuidd; then tmpfiles_process uuidd-tmpfiles.conf fi } |