clamav: Disable llvm support.

Message ID 20190704134405.28913-1-stefan.schantl@ipfire.org
State Accepted
Commit f2234b33d7d5159cd3aedfec22752f688a5ebd99
Headers
Series clamav: Disable llvm support. |

Commit Message

Stefan Schantl July 4, 2019, 11:44 p.m. UTC
  When enabled, LLVM provides the capability to just-in-time compile ClamAV bytecode signatures.
Without LLVM, ClamAV uses a built-in bytecode interpreter to execute bytecode signatures.
The mechanism is different, but the results are same and the performance overall is comparable.

At present only LLVM versions up to LLVM 3.6.2 are supported by ClamAV, and LLVM 3.6.2 is old enough
that newer distributions no longer provide it. Therefore, the ClamAV Devs recommend using the
--disable-llvm configure option.

Fixes #11601.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 clamav/clamav.nm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
  

Comments

Michael Tremer July 5, 2019, 4:33 a.m. UTC | #1
Thanks for doing this research. Merged.

> On 4 Jul 2019, at 14:44, Stefan Schantl <stefan.schantl@ipfire.org> wrote:
> 
> When enabled, LLVM provides the capability to just-in-time compile ClamAV bytecode signatures.
> Without LLVM, ClamAV uses a built-in bytecode interpreter to execute bytecode signatures.
> The mechanism is different, but the results are same and the performance overall is comparable.
> 
> At present only LLVM versions up to LLVM 3.6.2 are supported by ClamAV, and LLVM 3.6.2 is old enough
> that newer distributions no longer provide it. Therefore, the ClamAV Devs recommend using the
> --disable-llvm configure option.
> 
> Fixes #11601.
> 
> Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
> ---
> clamav/clamav.nm | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/clamav/clamav.nm b/clamav/clamav.nm
> index 9a550544e..9abe6c40e 100644
> --- a/clamav/clamav.nm
> +++ b/clamav/clamav.nm
> @@ -5,7 +5,7 @@
> 
> name       = clamav
> version    = 0.101.2
> -release    = 1
> +release    = 2
> 
> groups     = System Environment/Daemons
> url        = http://www.clamav.net
> @@ -49,6 +49,7 @@ build
> 		--with-user=clamupdate \
> 	        --with-group=clamupdate \
> 		--disable-rpath \
> +		--disable-llvm \
> 		have_cv_ipv6=yes
> 
> 	# User and group have to exist to compile the source code,
> -- 
> 2.21.0
>
  

Patch

diff --git a/clamav/clamav.nm b/clamav/clamav.nm
index 9a550544e..9abe6c40e 100644
--- a/clamav/clamav.nm
+++ b/clamav/clamav.nm
@@ -5,7 +5,7 @@ 
 
 name       = clamav
 version    = 0.101.2
-release    = 1
+release    = 2
 
 groups     = System Environment/Daemons
 url        = http://www.clamav.net
@@ -49,6 +49,7 @@  build
 		--with-user=clamupdate \
 	        --with-group=clamupdate \
 		--disable-rpath \
+		--disable-llvm \
 		have_cv_ipv6=yes
 
 	# User and group have to exist to compile the source code,