ports/110334: clamav-0.90.1 does not compile under FreeBSD 4.X
Laurent Frigault
lfrigault at agneau.org
Thu Mar 15 14:30:03 UTC 2007
>Number: 110334
>Category: ports
>Synopsis: clamav-0.90.1 does not compile under FreeBSD 4.X
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Mar 15 14:30:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Laurent Frigault
>Release: 4.11-STABLE
>Organization:
>Environment:
# uname -a
FreeBSD cabale.XXX 4.11-STABLE FreeBSD 4.11-STABLE #0: Fri Apr 8 10:29:07 CEST 2005 lolo at cabale.XXX:/usr/src/sys/compile/CABALE i386
>Description:
The new port of clamav does not compile under FreeBSD 4.X because it forces the use of libthr which does not exist before 5.X
>How-To-Repeat:
cd /usr/ports/security/clamav
make
>Fix:
Don't use libthr under 4.X
--- Makefile.orig Thu Mar 15 15:19:33 2007
+++ Makefile Thu Mar 15 15:20:03 2007
@@ -30,9 +30,14 @@
USE_LDCONFIG= yes
USE_RC_SUBR= clamav-clamd clamav-freshclam
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 500000
# This port has a problem with -pthread,
# force to use -lthr until it's not fixed.
PTHREAD_LIBS= -lthr
+.endif
+
PORTDOCS= *
@@ -99,8 +104,6 @@
PLIST_SUB+= CLAMAVUSER=${CLAMAVUSER} \
CLAMAVGROUP=${CLAMAVGROUP}
-
-.include <bsd.port.pre.mk>
.if ${OSVERSION} == 502010
PTHREAD_LIBS= -pthread
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list