mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 08:22:56 +02:00
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:
parent
d699471a77
commit
639688ad79
1 changed files with 5 additions and 2 deletions
|
@ -1,9 +1,11 @@
|
||||||
# Template file for 'clamav'
|
# Template file for 'clamav'
|
||||||
pkgname=clamav
|
pkgname=clamav
|
||||||
version=0.99.2
|
version=0.99.2
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
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"
|
conf_files="/etc/clamd.conf /etc/freshclam.conf"
|
||||||
system_accounts="clamav"
|
system_accounts="clamav"
|
||||||
clamav_homedir="/var/lib/${pkgname}"
|
clamav_homedir="/var/lib/${pkgname}"
|
||||||
|
@ -34,6 +36,7 @@ esac
|
||||||
do_configure() {
|
do_configure() {
|
||||||
# Disable detection of sys/cdefs.h (it's obsolete)
|
# Disable detection of sys/cdefs.h (it's obsolete)
|
||||||
sed -i configure -e 's; sys/cdefs\.h$;;'
|
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
|
# Need to set PCRE_HOME to make --with-pcre=/usr work
|
||||||
PCRE_HOME=/usr ./configure ${configure_args}
|
PCRE_HOME=/usr ./configure ${configure_args}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue