commit:     a05d2535777027dd8d43197b865768da4baf2126
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 21 19:51:35 2022 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Mon Nov 21 19:51:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a05d2535

sys-fs/lvm2: fix build with USE="sanlock -systemd"

Closes: https://bugs.gentoo.org/822054
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-fs/lvm2/lvm2-2.03.14-r4.ebuild | 1 +
 sys-fs/lvm2/lvm2-2.03.16-r2.ebuild | 1 +
 sys-fs/lvm2/lvm2-2.03.17.ebuild    | 1 +
 3 files changed, 3 insertions(+)

diff --git a/sys-fs/lvm2/lvm2-2.03.14-r4.ebuild 
b/sys-fs/lvm2/lvm2-2.03.14-r4.ebuild
index b8512c8bc5ce..b991a1ef1218 100644
--- a/sys-fs/lvm2/lvm2-2.03.14-r4.ebuild
+++ b/sys-fs/lvm2/lvm2-2.03.14-r4.ebuild
@@ -103,6 +103,7 @@ src_prepare() {
        # Users without systemd get no auto-activation of any logical volume
        if ! use systemd ; then
                eapply "${FILESDIR}"/${PN}-2.03.14-dm_lvm_rules_no_systemd.patch
+               sed -i -e '/^USE_SD_NOTIFY=yes$/s/yes/no/' 
daemons/lvmlockd/Makefile.in || die
        fi
 
        sed -i \

diff --git a/sys-fs/lvm2/lvm2-2.03.16-r2.ebuild 
b/sys-fs/lvm2/lvm2-2.03.16-r2.ebuild
index dca72ccfd4a0..4b49e8d27e66 100644
--- a/sys-fs/lvm2/lvm2-2.03.16-r2.ebuild
+++ b/sys-fs/lvm2/lvm2-2.03.16-r2.ebuild
@@ -108,6 +108,7 @@ src_prepare() {
        # Users without systemd get no auto-activation of any logical volume
        if ! use systemd ; then
                eapply "${FILESDIR}"/${PN}-2.03.16-dm_lvm_rules_no_systemd.patch
+               sed -i -e '/^USE_SD_NOTIFY=yes$/s/yes/no/' 
daemons/lvmlockd/Makefile.in || die
        fi
 
        sed -i \

diff --git a/sys-fs/lvm2/lvm2-2.03.17.ebuild b/sys-fs/lvm2/lvm2-2.03.17.ebuild
index 01f3f1dd4f90..91f4b5074807 100644
--- a/sys-fs/lvm2/lvm2-2.03.17.ebuild
+++ b/sys-fs/lvm2/lvm2-2.03.17.ebuild
@@ -107,6 +107,7 @@ src_prepare() {
        # Users without systemd get no auto-activation of any logical volume
        if ! use systemd ; then
                eapply "${FILESDIR}"/${PN}-2.03.16-dm_lvm_rules_no_systemd.patch
+               sed -i -e '/^USE_SD_NOTIFY=yes$/s/yes/no/' 
daemons/lvmlockd/Makefile.in || die
        fi
 
        sed -i -e "s:/usr/bin/true:$(type -P true):" 
scripts/blk_availability_systemd_red_hat.service.in || die #517514

Reply via email to