diff options
Diffstat (limited to 'gkbuilds/lvm.gkbuild')
-rw-r--r-- | gkbuilds/lvm.gkbuild | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/gkbuilds/lvm.gkbuild b/gkbuilds/lvm.gkbuild index 05fd087..3006381 100644 --- a/gkbuilds/lvm.gkbuild +++ b/gkbuilds/lvm.gkbuild @@ -1,8 +1,8 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 src_configure() { - + # devicemapper needs to find udev append-ldflags -Wl,-rpath-link,${BROOT}/usr/lib export ac_cv_header_security_pam_misc_h=no @@ -23,10 +23,20 @@ src_configure() { --with-thin=internal --with-cache=internal --disable-udev-systemd-background-jobs - --disable-udev_sync - --disable-udev_rules + --enable-udev_sync + --enable-udev_rules ) + local texec + for texec in check dump repair restore + do + myconf+=( --with-thin-${texec}=/usr/sbin/thin_${texec} ) + myconf+=( --with-cache-${texec}=/usr/sbin/cache_${texec} ) + done + + # Hard-wire this to bash as some shells (dash) don't know + # "-o pipefail" #682404, #716496 + CONFIG_SHELL="/bin/bash" \ gkconf "${myconf[@]}" } @@ -53,11 +63,12 @@ src_install() { ln -s dmsetup "${D}"/usr/sbin/dmstats \ || die "Failed to create symlink '${D}/usr/sbin/dmstats' to '${D}/usr/sbin/dmsetup'!" - # For backward compatibility + # For backward compatibility (packages like multipath-tools are + # expecting /sbin/dmsetup in udev rules). mkdir "${D}"/sbin || die "Failed to create '${D}/sbin'!" ln -s ../usr/sbin/dmsetup "${D}"/sbin/dmsetup \ - || die "Failed to create symlink '${D}/sbin/dmstats' to '${D}/usr/sbin/dmstats'!" + || die "Failed to create symlink '${D}/sbin/dmsetup' to '${D}/usr/sbin/dmsetup'!" ln -s ../usr/sbin/dmstats "${D}"/sbin/dmstats \ || die "Failed to create symlink '${D}/sbin/dmstats' to '${D}/usr/sbin/dmstats'!" |