Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2016 07:10:31 +0000 (UTC)
From:      Dima Panov <fluffy@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419990 - head/security/clamav
Message-ID:  <201608100710.u7A7AVJm026792@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fluffy
Date: Wed Aug 10 07:10:30 2016
New Revision: 419990
URL: https://svnweb.freebsd.org/changeset/ports/419990

Log:
  - security/clamav: Unbroke Jit engine
  
  Buldled LLVM is very limited/outdated and produce the broken code on recent FreeBSD releases,
  so unconditionally rely on latest supported (3.6) LLVM framework from ports to build ClamAV Jit parser
  
  PR:		211683
  Reported by:	many
  Submitted by:	myself
  Approved by:	garga (maintainer)
  MFH:		2016Q3

Modified:
  head/security/clamav/Makefile

Modified: head/security/clamav/Makefile
==============================================================================
--- head/security/clamav/Makefile	Wed Aug 10 03:57:56 2016	(r419989)
+++ head/security/clamav/Makefile	Wed Aug 10 07:10:30 2016	(r419990)
@@ -3,6 +3,7 @@
 
 PORTNAME=	clamav
 PORTVERSION=	0.99.2
+PORTREVISION=	1
 CATEGORIES=	security
 MASTER_SITES=	http://www.clamav.net/downloads/production/
 
@@ -134,7 +135,10 @@ GROUPS=	clamav mail
 .endif
 
 .if ${PORT_OPTIONS:MLLVM} && ( ${ARCH} == "i386" || ${ARCH} == "amd64" )
-CONFIGURE_ARGS+=--enable-llvm
+CONFIGURE_ARGS+=--enable-llvm --with-system-llvm=${LOCALBASE}/llvm${LLVMVER}
+BUILD_DEPENDS+=	llvm${LLVMVER}>=0:devel/llvm${LLVMVER}
+# Beware: ClamAV doesn't support LLVM 3.7 or higher yet
+LLVMVER=	36
 . if ${PORT_OPTIONS:MTESTS}
 USES+=		python:build
 . endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608100710.u7A7AVJm026792>