ports/145435: [patch] security/clamav: make LLVM JIT compiler optional
Alexander Wittig
alexander at wittig.name
Tue Apr 6 17:20:05 UTC 2010
>Number: 145435
>Category: ports
>Synopsis: [patch] security/clamav: make LLVM JIT compiler optional
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Apr 06 17:20:04 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Alexander Wittig
>Release: 8-stable
>Organization:
>Environment:
FreeBSD hotzenplotz.wittig.name 8.0-STABLE FreeBSD 8.0-STABLE #1: Wed Mar 31 03:25:54 CEST 2010 root at hotzenplotz.wittig.name:/usr/obj/usr/src/sys/ALEX amd64
>Description:
Thanks for the update to 0.96 and the inclusion of the subversion patch!
Starting with 0.96, clamav includes LLVM to build a JIT to interpret byte code signature checks. While providing best scanning performance, this takes very long to compile and test. So some people may rather want to go without the JIT and just use the interpreter instead.
The attached patch makes the LLVM JIT optional (defaults to on, so the package behaviour is not changed).
>How-To-Repeat:
>Fix:
see attached patch
Patch attached with submission follows:
--- ../clamav/Makefile 2010-04-06 14:50:32.000000000 +0200
+++ Makefile 2010-04-06 19:00:49.000000000 +0200
@@ -20,6 +20,7 @@
LHA "Enable lha archives support" On \
UNZOO "Enable zoo archives support" On \
UNRAR "Enable rar archives support" On \
+ LLVM "Enable JIT byte code compiler" On \
MILTER "Compile the milter interface" Off \
LDAP "libmilter was built with LDAP" Off \
ICONV "Enable ICONV support" Off \
@@ -53,8 +54,7 @@
--enable-readdir_r \
--enable-gethostbyname_r \
--disable-dependency-tracking \
- --enable-clamdtop \
- --enable-llvm
+ --enable-clamdtop
CPPFLAGS+= -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib \
@@ -142,6 +142,11 @@
PLIST_SUB+= UNRAR="@comment "
CONFIGURE_ARGS+= --disable-unrar
.endif
+.if defined(WITH_LLVM)
+CONFIGURE_ARGS+=--enable-llvm
+.else
+CONFIGURE_ARGS+=--disable-llvm
+.endif
.if defined(WITH_ICONV)
CONFIGURE_ARGS+=--with-iconv
USE_ICONV= yes
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list