Fixing gcc 3.3 compile failures -- fix for math/freefem

Simon Barner barner at in.tum.de
Sun Jul 20 15:48:45 PDT 2003


Hi,

> > -    ifstream fin( path );
> > +    std::ifstream fin( path );

> A much smaller patch could be produced with
> 
>   using namespace std;
> 
> as appropriate.
> 
> Have you checked with the upstream author to see which approach is
> likely to be rolled into the distribution?

Actually, upgrading the port to the lastest freefem version would have
been enough *doh* :o) (patch attached)

To answer your question: the freefem authors decided not to use the
'using namespace std' approach.

Cheers,
 Simon
-------------- next part --------------
--- Makefile.orig	Thu Jun  5 01:41:14 2003
+++ Makefile	Mon Jul 21 00:42:53 2003
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	freefem
-PORTVERSION=	3.5.4
+PORTVERSION=	3.5.7
 CATEGORIES=	math cad
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	kfem
@@ -24,10 +24,6 @@
 MAN1=		freefem.1
 
 .include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN=         "Does not compile (bad C++ code)"
-.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|-O3 |\$$CXXFLAGS |g' ${WRKSRC}/configure
--- distinfo.orig	Tue Mar 26 17:04:16 2002
+++ distinfo	Mon Jul 21 00:38:13 2003
@@ -1 +1 @@
-MD5 (freefem-3.5.4.tar.gz) = 746fe6487085011493a805e23507ae30
+MD5 (freefem-3.5.7.tar.gz) = e8f22515ab56f8e79fb789a11f8d4bef
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20030721/7ae0959b/attachment.bin


More information about the freebsd-ports mailing list