svn commit: r419990 - head/security/clamav

Dima Panov fluffy at FreeBSD.org
Wed Aug 10 07:10:32 UTC 2016


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


More information about the svn-ports-all mailing list