diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2024-05-29 11:43:31 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2024-05-29 11:56:06 -0700 |
commit | 2575dc7c05a83eeb1ae28e32d7067173861b3785 (patch) | |
tree | 5eccc3f95492980b2bbaab455b42e6c68ba782db | |
parent | dev-java/xz-java: add github upstream metadata (diff) | |
download | gentoo-2575dc7c05a83eeb1ae28e32d7067173861b3785.tar.gz gentoo-2575dc7c05a83eeb1ae28e32d7067173861b3785.tar.bz2 gentoo-2575dc7c05a83eeb1ae28e32d7067173861b3785.zip |
sys-power/nut: fix systemd-analyze sandbox violation
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://bugs.gentoo.org/932962
-rw-r--r-- | sys-power/nut/files/systemd_notify.patch (renamed from sys-power/nut/files/systemd_notify.path) | 0 | ||||
-rw-r--r-- | sys-power/nut/nut-2.8.2.ebuild | 5 | ||||
-rw-r--r-- | sys-power/nut/nut-9999.ebuild | 5 |
3 files changed, 6 insertions, 4 deletions
diff --git a/sys-power/nut/files/systemd_notify.path b/sys-power/nut/files/systemd_notify.patch index 657e0075420c..657e0075420c 100644 --- a/sys-power/nut/files/systemd_notify.path +++ b/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 fbd9812f3c08..9a6702956acb 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 fbd9812f3c08..9a6702956acb 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 |