From 0fdf2b89100f1a86c88100600b7803bbab8cd77c Mon Sep 17 00:00:00 2001 From: Sam James Date: Tue, 22 Mar 2022 22:09:25 +0000 Subject: [PATCH] sys-process/cronie: fix cronie pidfile path cronie's build system is using runstatedir to determine where to place the PID file. On one of my systems, this path _happens_ to exist because of thermald, but it won't usually exist. We should set runstatedir to be "${EPREFIX}"/run to store the PID file in the place the init script expects (cronie hardcodes the value of runstatedir into the binary to find where its pidfile is). Closes: https://bugs.gentoo.org/835814 Bug: https://bugs.gentoo.org/685306 Signed-off-by: Sam James --- .../cronie/{cronie-1.6.0.ebuild => cronie-1.6.0-r1.ebuild} | 4 ++++ 1 file changed, 4 insertions(+) rename sys-process/cronie/{cronie-1.6.0.ebuild => cronie-1.6.0-r1.ebuild} (95%) diff --git a/sys-process/cronie/cronie-1.6.0.ebuild b/sys-process/cronie/cronie-1.6.0-r1.ebuild similarity index 95% rename from sys-process/cronie/cronie-1.6.0.ebuild rename to sys-process/cronie/cronie-1.6.0-r1.ebuild index 803851ce4c04d..d831d76473d31 100644 --- a/sys-process/cronie/cronie-1.6.0.ebuild +++ b/sys-process/cronie/cronie-1.6.0-r1.ebuild @@ -42,6 +42,10 @@ src_prepare() { src_configure() { local myeconfargs=( + # This path gets embedded into cronie and is used for pidfile + # bug #835814 + --runstatedir="${EPREFIX}"/run + $(use_with inotify) $(use_with pam) $(use_with selinux)