From tkato@prontomail.com  Fri Feb  6 05:02:51 2004
Return-Path: <tkato@prontomail.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 29F2F16A4D0
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri,  6 Feb 2004 05:02:39 -0800 (PST)
Received: from hfep02.dion.ne.jp (hfep02.dion.ne.jp [203.181.105.68])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F071343D45
	for <FreeBSD-gnats-submit@FreeBSD.org>; Fri,  6 Feb 2004 05:02:35 -0800 (PST)
	(envelope-from tkato@prontomail.com)
Received: from localhost ([61.198.241.213]) by hfep02.dion.ne.jp with SMTP
          id <20040206130233271.XKBB@hfep02.dion.ne.jp>
          for <FreeBSD-gnats-submit@FreeBSD.org>;
          Fri, 6 Feb 2004 22:02:33 +0900
Message-Id: <20040206220023.3f74ecd2.tkato@prontomail.com>
Date: Fri, 6 Feb 2004 22:00:23 +0900
From: KATO Tsuguru <tkato@prontomail.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: Update port: math/netcdf

>Number:         62431
>Category:       ports
>Synopsis:       Update port: math/netcdf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 06 05:10:10 PST 2004
>Closed-Date:    Fri Feb 06 06:16:35 PST 2004
>Last-Modified:  Fri Feb 06 06:16:35 PST 2004
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.9-RELEASE-p1 i386
>Organization:
>Environment:
>Description:
- Fix build on -current

New file:
files/patch-ncvalues.h

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/math/netcdf/Makefile math/netcdf/Makefile
--- /usr/ports/math/netcdf/Makefile	Thu Feb  5 18:29:44 2004
+++ math/netcdf/Makefile	Thu Feb  5 20:55:35 2004
@@ -24,12 +24,6 @@
 MAN1=	ncdump.1 ncgen.1
 MAN3=	netcdf.3 netcdf.3f
 
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 502000
-BROKEN=		"Does not compile"
-.endif
-
 post-build:
 	@(cd ${WRKSRC}/libsrc && \
 		${SETENV} ${MAKE_ENV} ${MAKE} linux_shared_library)
@@ -42,4 +36,4 @@
 	${INSTALL_DATA} ${WRKSRC}/cxx/libnetcdf_c++.so ${PREFIX}/lib/libnetcdf_c++.so.1
 	${LN} -sf libnetcdf_c++.so.1 ${PREFIX}/lib/libnetcdf_c++.so
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/math/netcdf/files/patch-ncvalues.h math/netcdf/files/patch-ncvalues.h
--- /usr/ports/math/netcdf/files/patch-ncvalues.h	Thu Jan  1 09:00:00 1970
+++ math/netcdf/files/patch-ncvalues.h	Thu Feb  5 20:53:00 2004
@@ -0,0 +1,20 @@
+--- cxx/ncvalues.h.orig	Thu Oct 29 02:10:16 1998
++++ cxx/ncvalues.h	Thu Feb  5 20:51:02 2004
+@@ -14,7 +14,7 @@
+ #ifdef STRSTREAM_H_SPEC
+ #   include STRSTREAM_H_SPEC
+ #else
+-#   include <strstream.h>
++#   include <strstream>
+ #endif
+ #include <limits.h>
+ #include <string.h>
+@@ -220,7 +220,7 @@
+ char* NcVal(TYPE)::as_string( long n ) const				      \
+ {									      \
+     char* s = new char[32];						      \
+-    ostrstream ostr(s, sizeof(s));                                            \
++    std::ostrstream ostr(s, sizeof(s));                                      \
+     ostr << the_values[n] << ends;              			      \
+     return s;								      \
+ }
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->krion 
Responsible-Changed-By: krion 
Responsible-Changed-When: Fri Feb 6 05:13:34 PST 2004 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62431 
State-Changed-From-To: open->closed 
State-Changed-By: krion 
State-Changed-When: Fri Feb 6 06:16:28 PST 2004 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=62431 
>Unformatted:
