From 2575dc7c05a83eeb1ae28e32d7067173861b3785 Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Wed, 29 May 2024 11:43:31 -0700 Subject: [PATCH] sys-power/nut: fix systemd-analyze sandbox violation Signed-off-by: Robin H. Johnson Closes: https://bugs.gentoo.org/932962 --- .../nut/files/{systemd_notify.path => systemd_notify.patch} | 0 sys-power/nut/nut-2.8.2.ebuild | 5 +++-- sys-power/nut/nut-9999.ebuild | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) rename sys-power/nut/files/{systemd_notify.path => systemd_notify.patch} (100%) diff --git a/sys-power/nut/files/systemd_notify.path b/sys-power/nut/files/systemd_notify.patch similarity index 100% rename from sys-power/nut/files/systemd_notify.path rename to sys-power/nut/files/systemd_notify.patch diff --git a/sys-power/nut/nut-2.8.2.ebuild b/sys-power/nut/nut-2.8.2.ebuild index fbd9812f3c086..9a6702956acbf 100644 --- a/sys-power/nut/nut-2.8.2.ebuild +++ b/sys-power/nut/nut-2.8.2.ebuild @@ -69,8 +69,9 @@ RDEPEND=" PATCHES=( "${FILESDIR}/${PN}-2.6.2-lowspeed-buffer-size.patch" - "${FILESDIR}/systemd_notify.path" + "${FILESDIR}/systemd_notify.patch" ) +PATCH_NEEDS_AUTOGEN=1 pkg_pretend() { if use i2c; then @@ -102,7 +103,7 @@ pkg_setup() { src_prepare() { default - if [[ ${PV} == *9999 ]] ; then + if [[ ${PV} == *9999 ]] || [[ ${PATCH_NEEDS_AUTOGEN} == 1 ]] ; then ./autogen.sh || die fi diff --git a/sys-power/nut/nut-9999.ebuild b/sys-power/nut/nut-9999.ebuild index fbd9812f3c086..9a6702956acbf 100644 --- a/sys-power/nut/nut-9999.ebuild +++ b/sys-power/nut/nut-9999.ebuild @@ -69,8 +69,9 @@ RDEPEND=" PATCHES=( "${FILESDIR}/${PN}-2.6.2-lowspeed-buffer-size.patch" - "${FILESDIR}/systemd_notify.path" + "${FILESDIR}/systemd_notify.patch" ) +PATCH_NEEDS_AUTOGEN=1 pkg_pretend() { if use i2c; then @@ -102,7 +103,7 @@ pkg_setup() { src_prepare() { default - if [[ ${PV} == *9999 ]] ; then + if [[ ${PV} == *9999 ]] || [[ ${PATCH_NEEDS_AUTOGEN} == 1 ]] ; then ./autogen.sh || die fi