commit:     80a8fff52c054ef4fac175414a7440b03d21134d
Author:     Joh Matsuura <gh.cions <AT> gmail <DOT> com>
AuthorDate: Sun Apr 10 08:59:06 2022 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Sun Apr 10 13:32:49 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80a8fff5

sys-power/thermald: Fix tdrundir

Use /run instead of /var/lib/run for runtime state directory

Closes: https://github.com/gentoo/gentoo/pull/24970
Signed-off-by: Joh Matsuura <gh.cions <AT> gmail.com>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 .../thermald/{thermald-2.4.8.ebuild => thermald-2.4.8-r1.ebuild}      | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sys-power/thermald/thermald-2.4.8.ebuild 
b/sys-power/thermald/thermald-2.4.8-r1.ebuild
similarity index 89%
rename from sys-power/thermald/thermald-2.4.8.ebuild
rename to sys-power/thermald/thermald-2.4.8-r1.ebuild
index 2a2134ef6d2f..608411e5ceb4 100644
--- a/sys-power/thermald/thermald-2.4.8.ebuild
+++ b/sys-power/thermald/thermald-2.4.8-r1.ebuild
@@ -32,6 +32,9 @@ src_prepare() {
        sed -i -e "/group=/s/power/wheel/g" \
                data/org.freedesktop.thermald.conf || die
 
+       sed -i -e '/tdrundir/s@\$localstatedir/run@\$runstatedir@' \
+               configure.ac || die
+
        default
        eautoreconf
 }
@@ -39,6 +42,7 @@ src_prepare() {
 my_src_configure() {
        ECONF_SOURCE="${S}" econf \
                --disable-werror \
+               --runstatedir="${EPREFIX}"/run \
                --with-systemdsystemunitdir="$(systemd_get_systemunitdir)"
 }
 

Reply via email to