Bug 110334 - clamav-0.90.1 does not compile under FreeBSD 4.X
Summary: clamav-0.90.1 does not compile under FreeBSD 4.X
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-15 14:30 UTC by Laurent Frigault
Modified: 2007-03-16 12:30 UTC (History)
0 users

See Also:


Attachments
file.diff (566 bytes, patch)
2007-03-15 14:30 UTC, Laurent Frigault
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laurent Frigault 2007-03-15 14:30:02 UTC
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

Fix: Don't use libthr under 4.X
How-To-Repeat: cd /usr/ports/security/clamav
make
Comment 1 Laurent Frigault 2007-03-15 15:16:48 UTC
On Thu, Mar 15, 2007 at 02:30:03PM +0000, FreeBSD-gnats-submit@FreeBSD.org wrote:
> Thank you very much for your problem report.
> It has the internal identification `ports/110334'.
> The individual assigned to look at your
> report is: freebsd-ports-bugs. 
> 
> You can access the state of your problem report at any time
> via this link:
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=110334
> 
> >Category:       ports
> >Responsible:    freebsd-ports-bugs
> >Synopsis:       clamav-0.90.1 does not compile under FreeBSD 4.X
> >Arrival-Date:   Thu Mar 15 14:30:02 GMT 2007

There seems to be an other problem with libthr under FreeBSD 5.X .
clamd locks when using this lib (at least on my home system) :

% uname -a
FreeBSD obelix.bergerie.agneau.org 5.5-STABLE FreeBSD 5.5-STABLE #0: Tue Oct  3 10:54:54 CEST 2006 lolo@obelix.bergerie.agneau.org:/usr/src/sys/i386/compile/OBELIX  i386

I've modified the previous patch to only use libthr under OSVERSION >= 6.X :

--- Makefile.orig       Thu Mar 15 16:09:03 2007
+++ Makefile    Thu Mar 15 15:58:53 2007
@@ -30,9 +30,14 @@
 USE_LDCONFIG=  yes
 USE_RC_SUBR=   clamav-clamd clamav-freshclam

+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} >= 600000
 # 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


-- 
Laurent Frigault | <url:http://www.agneau.org/>
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-03-16 12:20:51 UTC
mbr         2007-03-16 12:20:45 UTC

  FreeBSD ports repository

  Modified files:
    security/clamav      Makefile 
  Log:
  And unbreak support for older FreeBSDs where libthr/libpthread did not exist.
  
  PR:     110334
  
  Revision  Changes    Path
  1.94      +9 -5      ports/security/clamav/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Martin Blapp freebsd_committer freebsd_triage 2007-03-16 12:21:36 UTC
State Changed
From-To: open->closed

Fixed, thanks.