Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2007 14:26:07 GMT
From:      Laurent Frigault<lfrigault@agneau.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/110334: clamav-0.90.1 does not compile under FreeBSD 4.X
Message-ID:  <200703151426.l2FEQ7oI042228@www.freebsd.org>
Resent-Message-ID: <200703151430.l2FEU3p4054416@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



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