diff --git a/srcpkgs/lvm2/template b/srcpkgs/lvm2/template index 771360eb12d..dcb08649245 100644 --- a/srcpkgs/lvm2/template +++ b/srcpkgs/lvm2/template @@ -26,6 +26,11 @@ license="GPL-2, LGPL-2.1" distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz" checksum=d0700c7000ff6375c1c36cb2a89b97b9ae6757f4219fa9ec65f313d13d71e51e +pre_build() { + # Fix for readline>=6.3 + sed -e 's,(CPPFunction \*),,' -i tools/lvm.c +} + post_install() { vinstall ${FILESDIR}/lvm2.tmpfiles 644 usr/lib/tmpfiles.d lvm2.conf vinstall ${FILESDIR}/lvm-monitoring.service 644 usr/lib/systemd/system