From 6f2da7dee0861fd32f3b740272892a07dd99b3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 13 May 2020 00:28:38 +0200 Subject: [PATCH] clamav: enable IPv6 for cross builds --- srcpkgs/clamav/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/clamav/template b/srcpkgs/clamav/template index 051dacfa7b9..86f4e602aa4 100644 --- a/srcpkgs/clamav/template +++ b/srcpkgs/clamav/template @@ -1,7 +1,7 @@ # Template file for 'clamav' pkgname=clamav version=0.102.3 -revision=1 +revision=2 build_style=gnu-configure # XXX: system llvm is too new (< 3.7 required) # Shipped llvm does not build with gcc6 @@ -37,6 +37,10 @@ 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;' + # Enable IPv6 for cross builds + if [ "$CROSS_BUILD" ]; then + configure_args+=" have_cv_ipv6=yes" + fi # Need to set PCRE_HOME to make --with-pcre=/usr work PCRE_HOME=/usr ./configure ${configure_args} }