sys-power/nut: fix systemd-analyze sandbox violation

Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://bugs.gentoo.org/932962
This commit is contained in:
Robin H. Johnson
2024-05-29 11:43:31 -07:00
parent 5ade51c6e5
commit 2575dc7c05
3 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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