lvm2: fix build with readline>=6.3.

This commit is contained in:
Juan RP 2014-02-27 16:00:59 +01:00
parent a418e7ab3c
commit e6a588ae64
1 changed files with 5 additions and 0 deletions

View File

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