From sunpoet@sunpoet.net  Fri Dec 22 22:28:09 2006
Return-Path: <sunpoet@sunpoet.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id E389416A415
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Dec 2006 22:28:09 +0000 (UTC)
	(envelope-from sunpoet@sunpoet.net)
Received: from sunpoet.net (sunpoet.net [203.204.205.212])
	by mx1.freebsd.org (Postfix) with ESMTP id 86D4B13C448
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Dec 2006 22:28:09 +0000 (UTC)
	(envelope-from sunpoet@sunpoet.net)
Received: by sunpoet.net (Postfix, from userid 1000)
	id 138701701D; Sat, 23 Dec 2006 05:58:58 +0800 (CST)
Message-Id: <20061222215858.138701701D@sunpoet.net>
Date: Sat, 23 Dec 2006 05:58:58 +0800 (CST)
From: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
Reply-To: Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [MAINTAINER] science/netcdf: Fix build on upcoming GCC 4.1 for 7-CURRENT. 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         107117
>Category:       ports
>Synopsis:       [MAINTAINER] science/netcdf: Fix build on upcoming GCC 4.1 for 7-CURRENT.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 22 22:30:25 GMT 2006
>Closed-Date:    Sat Dec 23 22:23:03 GMT 2006
>Last-Modified:  Sat Dec 23 22:30:15 GMT 2006
>Originator:     Sunpoet Po-Chuan Hsieh
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
SUNPOET.net
>Environment:
System: FreeBSD IRIS.sunpoet.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #12: Wed Nov 22 22:10:47 CST 2006 root@IRIS.sunpoet.net:/usr/obj/usr/src/sys/sunpoet i386

	
>Description:
1. Fix build on upcoming GCC 4.1 for 7-CURRENT.
2. Make portlint happy.

	
>How-To-Repeat:
	
>Fix:
Apply this patch with -E option.

--- Makefile	Fri Jun  2 01:30:47 2006
+++ Makefile	Sat Dec 23 05:48:03 2006
@@ -8,7 +8,8 @@
 PORTNAME=	netcdf
 PORTVERSION=	3.6.1
 CATEGORIES=	science
-MASTER_SITES=	ftp://ftp.unidata.ucar.edu/pub/netcdf/%SUBDIR%/
+MASTER_SITES=	ftp://ftp.unidata.ucar.edu/pub/netcdf/%SUBDIR%/ \
+		http://sunpoet.net/distfiles/
 MASTER_SITE_SUBDIR=	. old
 
 MAINTAINER=	sunpoet@sunpoet.net
@@ -18,10 +19,10 @@
 
 CONFLICTS=	hdf-4.*
 
-GNU_CONFIGURE=	yes
-CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	CPPFLAGS="-fPIC -DPIC -Df2cFortran"
-INSTALLS_SHLIB=	yes
+CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+GNU_CONFIGURE=	yes
+USE_LDCONFIG=	yes
 
 MAN1=	ncdump.1 ncgen.1
 MAN3=	netcdf.3 netcdf.3f
--- files/patch-Makefile	Thu Jan  1 08:00:00 1970
+++ files/patch-Makefile	Sat Dec 23 05:34:01 2006
@@ -0,0 +1,20 @@
+--- Makefile.orig	Mon Feb 27 00:43:59 2006
++++ Makefile	Sat Dec 23 05:33:43 2006
+@@ -117,6 +117,8 @@
+ ncgen/distclean	\
+ cxx/clean	\
+ cxx/distclean	\
++fortran/install	\
++fortran/uninstall	\
+ :
+ 	@subdir=`echo $@ | sed 's,/.*,,'`; \
+ 	target=`echo $@ | sed 's,.*/,,'`; \
+@@ -124,8 +126,6 @@
+ 
+ fortran/all	\
+ fortran/test	\
+-fortran/install	\
+-fortran/uninstall	\
+ nf_test/all	\
+ nf_test/test	\
+ :
--- files/patch-aa	Sun Jan  9 00:36:45 2005
+++ files/patch-aa	Thu Jan  1 08:00:00 1970
@@ -1,19 +0,0 @@
---- rules.make.orig	Sat Dec 18 05:34:48 2004
-+++ rules.make	Thu Jan  6 15:12:59 2005
-@@ -145,14 +145,8 @@
- 	$(INSTALL) $(MANUAL) $@
- $(MANDIR)/man3/$(MANUAL):	$(MANDIR)/man3 $(MANUAL)
- 	$(INSTALL) $(MANUAL) $@
--$(MANDIR)/man3f/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL) \
--				$(MANDIR)/man3f
--	rm -f $@
--	ln -s $(MANDIR)/man3/$(MANUAL) $@
--$(MANDIR)/man3f90/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL) \
--				$(MANDIR)/man3f90
--	rm -f $@
--	ln -s $(MANDIR)/man3/$(MANUAL) $@
-+$(MANDIR)/man3f/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL)
-+$(MANDIR)/man3f90/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL)
- 
- ################################################################################
- # Cleanup:
--- files/patch-rules.make	Thu Jan  1 08:00:00 1970
+++ files/patch-rules.make	Sun Jan  9 00:36:45 2005
@@ -0,0 +1,19 @@
+--- rules.make.orig	Sat Dec 18 05:34:48 2004
++++ rules.make	Thu Jan  6 15:12:59 2005
+@@ -145,14 +145,8 @@
+ 	$(INSTALL) $(MANUAL) $@
+ $(MANDIR)/man3/$(MANUAL):	$(MANDIR)/man3 $(MANUAL)
+ 	$(INSTALL) $(MANUAL) $@
+-$(MANDIR)/man3f/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL) \
+-				$(MANDIR)/man3f
+-	rm -f $@
+-	ln -s $(MANDIR)/man3/$(MANUAL) $@
+-$(MANDIR)/man3f90/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL) \
+-				$(MANDIR)/man3f90
+-	rm -f $@
+-	ln -s $(MANDIR)/man3/$(MANUAL) $@
++$(MANDIR)/man3f/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL)
++$(MANDIR)/man3f90/$(MANUAL):	$(MANDIR)/man3 $(MANDIR)/man3/$(MANUAL)
+ 
+ ################################################################################
+ # Cleanup:
	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Fri Dec 22 22:33:01 UTC 2006 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107117 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Sat Dec 23 22:23:01 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107117 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/107117: commit references a PR
Date: Sat, 23 Dec 2006 22:22:51 +0000 (UTC)

 miwi        2006-12-23 22:22:45 UTC
 
   FreeBSD ports repository
 
   Modified files:
     science/netcdf       Makefile 
   Added files:
     science/netcdf/files patch-Makefile patch-rules.make 
   Removed files:
     science/netcdf/files patch-aa 
   Log:
   - Update MASTER_SITES
   - Fix build with gcc 4.X
   
   PR:             ports/107117
   Submitted by:   Sunpoet Po-Chuan Hsieh <sunpoet@sunpoet.net> (maintainer)
   
   Revision  Changes    Path
   1.27      +5 -4      ports/science/netcdf/Makefile
   1.1       +20 -0     ports/science/netcdf/files/patch-Makefile (new)
   1.3       +0 -19     ports/science/netcdf/files/patch-aa (dead)
   1.1       +19 -0     ports/science/netcdf/files/patch-rules.make (new)
 _______________________________________________
 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"
 
>Unformatted:
