• Bug#1052666: lvm2 FTBFS when systemd.pc changes systemdsystemunitdir

    From Helmut Grohne@21:1/5 to Helmut Grohne on Mon Jan 1 23:10:02 2024
    On Mon, Sep 25, 2023 at 10:29:14PM +0200, Helmut Grohne wrote:
    We want to change the value of systemdsystemunitdir in systemd.pc to
    point below /usr. lvm2's upstream build system consumes this variable,
    but its packaging hard codes the current value. Consequently, lvm2 FTBFS
    when it is changed. Consider applying the attached patch to avoid that failure.

    The earlier patch no longer works. In the patch, I mistakenly assumed
    that lvm2 would also consider udevdir and "fixed" that as well. It
    really does not and now that udevdir has been moved, the patch makes
    lvm2 FTBFS. I propose honoring udevdir as well and attach an updated
    patch. The only difference to the earlier patch is the hunk changing
    configure arguments.

    Helmut

    diff --minimal -Nru lvm2-2.03.16/debian/dmeventd.install lvm2-2.03.16/debian/dmeventd.install
    --- lvm2-2.03.16/debian/dmeventd.install 2022-10-19 21:37:31.000000000 +0200
    +++ lvm2-2.03.16/debian/dmeventd.install 2024-01-01 22:34:41.000000000 +0100
    @@ -1,5 +1,5 @@
    lib/*/libdevmapper-event-*
    lib/*/device-mapper/libdevmapper-event-*
    -lib/systemd/system/dm-event*
    +${env:systemdsystemunitdir}/dm-event*
    sbin/dmeventd
    usr/share/man/man8/dmeventd.8
    diff --minimal -Nru lvm2-2.03.16/debian/dmsetup.install lvm2-2.03.16/debian/dmsetup.install
    --- lvm2-2.03.16/debian/dmsetup.install 2022-10-19 21:37:31.000000000 +0200
    +++ lvm2-2.03.16/debian/dmsetup.install 2024-01-01 22:34:41.000000000 +0100
    @@ -1,5 +1,5 @@
    ../../initramfs-tools/dmsetup/* usr/share/initramfs-tools -lib/udev/rules.d/*-dm*.rules
    +${env:udevdir}/rules.d/*-dm*.rules
    sbin/blkdeactivate
    sbin/dmsetup
    sbin/dmstats
    diff --minimal -Nru lvm2-2.03.16/debian/lvm2-dbusd.install lvm2-2.03.16/debian/lvm2-dbusd.install
    --- lvm2-2.03.16/debian/lvm2-dbusd.install 2022-10-19 21:37:31.000000000 +0200
    +++ lvm2-2.03.16/debian/lvm2-dbusd.ins