clamav: fix gcc6 build

Building the shipped llvm with gcc6 fails. On the other hand clamav
does not want to work with our system llvm because it's too new (needs < 3.7).
This commit is contained in:
Juergen Buchmueller 2016-12-18 19:29:56 +01:00
parent d699471a77
commit 639688ad79

View file

@ -1,9 +1,11 @@
# Template file for 'clamav'
pkgname=clamav
version=0.99.2
revision=3
revision=4
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --libdir=/usr/lib --with-pcre=/usr"
# XXX: system llvm is too new (< 3.7 required)
# Shipped llvm does not build with gcc6
configure_args="--sbindir=/usr/bin --libdir=/usr/lib --with-pcre=/usr --disable-llvm"
conf_files="/etc/clamd.conf /etc/freshclam.conf"
system_accounts="clamav"
clamav_homedir="/var/lib/${pkgname}"
@ -34,6 +36,7 @@ esac
do_configure() {
# Disable detection of sys/cdefs.h (it's obsolete)
sed -i configure -e 's; sys/cdefs\.h$;;'
sed -i configure -e 's;3\.7;3.9;'
# Need to set PCRE_HOME to make --with-pcre=/usr work
PCRE_HOME=/usr ./configure ${configure_args}
}