Date: Tue, 6 Apr 2010 17:15:36 GMT From: Alexander Wittig <alexander@wittig.name> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/145435: [patch] security/clamav: make LLVM JIT compiler optional Message-ID: <201004061715.o36HFaa7057624@www.freebsd.org> Resent-Message-ID: <201004061720.o36HK5Wq041554@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004061715.o36HFaa7057624>