From tkato432@yahoo.com  Wed Dec  5 18:03:58 2012
Return-Path: <tkato432@yahoo.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id EF7D623F
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed,  5 Dec 2012 18:02:50 +0000 (UTC)
	(envelope-from tkato432@yahoo.com)
Received: from msa105lp.auone-net.jp (msa105lp.auone-net.jp [222.3.140.168])
	by mx1.freebsd.org (Postfix) with ESMTP id AE6C88FC13
	for <FreeBSD-gnats-submit@FreeBSD.org>; Wed,  5 Dec 2012 18:02:50 +0000 (UTC)
Received: from localhost.localdomain (ZT034046.ppp.dion.ne.jp [59.128.34.46])
	by msa105lp.auone-net.jp (au one net msa) with ESMTP id 98DD250036
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu,  6 Dec 2012 03:02:48 +0900 (JST)
Message-Id: <20121206023255.694f908e4a096b5c017415b3@yahoo.com>
Date: Thu, 6 Dec 2012 02:32:55 +0900
From: KATO Tsuguru <tkato432@yahoo.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: science/flounder: Fix build with clang

>Number:         174167
>Category:       ports
>Synopsis:       science/flounder: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    beech
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 05 18:10:03 UTC 2012
>Closed-Date:    Sun Dec 23 19:11:48 UTC 2012
>Last-Modified:  Sun Dec 23 19:11:48 UTC 2012
>Originator:     KATO Tsuguru
>Release:        FreeBSD 7.4-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Fix build with clang
- Support PLIST_FILES
- Strip binaries

Remove file:
pkg-plist

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/science/flounder/Makefile science/flounder/Makefile
--- /usr/ports/science/flounder/Makefile	2012-11-08 06:59:23.000000000 +0900
+++ science/flounder/Makefile	2012-12-03 23:58:13.000000000 +0900
@@ -1,14 +1,9 @@
-# ex:ts=8
-# Ports collection Makefile for:	flounder
-# Date created:			Oct 14, 2002
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD: head/science/flounder/Makefile 302037 2012-08-04 22:52:02Z kwm $
-#
 
 PORTNAME=	flounder
 PORTVERSION=	0.40
-PORTREVISION=	14
+PORTREVISION=	15
 CATEGORIES=	science
 MASTER_SITES=	http://www.enel.ucalgary.ca/People/vigmond/flounder/
 EXTRACT_SUFX=	.tgz
@@ -16,35 +11,52 @@
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	A quick way to visualize regularly spaced 4D data
 
-LIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk \
-		gif:${PORTSDIR}/graphics/giflib \
-		png15:${PORTSDIR}/graphics/png
+LIB_DEPENDS=	gif:${PORTSDIR}/graphics/giflib \
+		png15:${PORTSDIR}/graphics/png \
+		fltk:${PORTSDIR}/x11-toolkits/fltk
+
+OPTIONS_DEFINE=	GNUPLOT GRACE
+OPTIONS_DEFAULT=GNUPLOT GRACE
+GRACE_DESC=	Plotting via GRACE
 
 USE_GL=		glut
-GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lstdc++
 USE_GMAKE=	yes
+GNU_CONFIGURE=	yes
+MAKE_JOBS_SAFE=	yes
+
+CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
+LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
+
+PLIST_FILES=	bin/flounder bin/igbhead
 
-.if !defined(WITHOUT_PLOT)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGNUPLOT}
 BUILD_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
 RUN_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
 CONFIGURE_ARGS+=	--enable-gnuplot
 .endif
 
-.if !defined(WITHOUT_GRACE)
+.if ${PORT_OPTIONS:MGRACE}
 BUILD_DEPENDS+=	xmgrace:${PORTSDIR}/math/grace
 RUN_DEPENDS+=	xmgrace:${PORTSDIR}/math/grace
 CONFIGURE_ARGS+=	--enable-grace
 .endif
 
 post-patch:
-	${REINPLACE_CMD} -e "s|-lungif|-lgif|" ${WRKSRC}/configure
-
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "alpha"
-BROKEN=		Does not compile on alpha
-.endif
+	@${REINPLACE_CMD} -e \
+		's|-lungif|-lgif|' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e \
+		's|cmdline.o.*|cmdline.o| ; \
+		 /getopt.o/d ; \
+		 /getopt1.o/d ; \
+		 s|g++ |$$(CXX) | ; \
+		 s|-g | |' ${WRKSRC}/utils/Makefile
+	@${REINPLACE_CMD} -e \
+		's|^main(|int main(|' ${WRKSRC}/utils/igbhead.cc
+
+do-install:
+	cd ${WRKSRC}/src && ${INSTALL_PROGRAM} flounder ${PREFIX}/bin
+	cd ${WRKSRC}/utils && ${INSTALL_PROGRAM} igbhead ${PREFIX}/bin
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/science/flounder/files/patch-Fl_Gnuplot.cc science/flounder/files/patch-Fl_Gnuplot.cc
--- /usr/ports/science/flounder/files/patch-Fl_Gnuplot.cc	2012-11-08 06:59:22.000000000 +0900
+++ science/flounder/files/patch-Fl_Gnuplot.cc	2012-10-23 23:23:04.000000000 +0900
@@ -1,6 +1,11 @@
---- src/Fl_Gnuplot.cc.orig	Tue Oct 15 03:59:41 2002
-+++ src/Fl_Gnuplot.cc	Tue Oct 15 04:02:05 2002
-@@ -44,6 +44,7 @@
+--- src/Fl_Gnuplot.cc.orig	2002-12-20 03:56:35.000000000 +0900
++++ src/Fl_Gnuplot.cc	2012-10-23 23:22:44.000000000 +0900
+@@ -39,11 +39,11 @@
+ 
+ #include <stdlib.h>
+ #include <stdio.h>
+-#include <fstream.h>
+ #include <unistd.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <fcntl.h>
@@ -8,7 +13,7 @@
  
  #include "FL/fl_draw.H"
  #include "FL/fl_ask.H"
-@@ -53,12 +54,14 @@
+@@ -53,12 +53,14 @@
  
  #define N_ENTRIES 8192
  
diff -urN /usr/ports/science/flounder/files/patch-RenderEPS.h science/flounder/files/patch-RenderEPS.h
--- /usr/ports/science/flounder/files/patch-RenderEPS.h	2012-11-08 06:59:22.000000000 +0900
+++ science/flounder/files/patch-RenderEPS.h	2012-10-23 23:23:54.000000000 +0900
@@ -1,11 +1,10 @@
---- src/RenderEPS.h.orig	Tue Oct 15 00:35:11 2002
-+++ src/RenderEPS.h	Tue Oct 15 00:35:26 2002
-@@ -23,6 +23,8 @@
+--- src/RenderEPS.h.orig	2002-12-19 13:37:24.000000000 +0900
++++ src/RenderEPS.h	2012-10-23 23:23:41.000000000 +0900
+@@ -20,6 +20,7 @@
+ #include <math.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
  #include <GL/gl.h>
  #include <string>
- 
-+using namespace std;
-+
- #define FB_BUFSIZE 1000000
- 
- class RenderEPS {
+ using namespace std;
diff -urN /usr/ports/science/flounder/pkg-plist science/flounder/pkg-plist
--- /usr/ports/science/flounder/pkg-plist	2012-11-08 06:59:23.000000000 +0900
+++ science/flounder/pkg-plist	1970-01-01 09:00:00.000000000 +0900
@@ -1,2 +0,0 @@
-bin/flounder
-bin/igbhead
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->beech 
Responsible-Changed-By: beech 
Responsible-Changed-When: Mon Dec 10 07:43:31 UTC 2012 
Responsible-Changed-Why:  
I'll take it 

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

From: Beech Rintoul <beech@freebsdnorth.com>
To: KATO Tsuguru <tkato432@yahoo.com>
Cc: Bug Followup <bug-followup@freebsd.org>,
 Beech Rintoul <beech@freebsdnorth.com>
Subject: Re: ports/174167: science/flounder: Fix build with clang
Date: Tue, 11 Dec 2012 19:15:51 -0900

 Does not build with either clang or gcc, exits with the following error:
 
 flguppy.cc: In constructor 'GlAreaUI::GlAreaUI()':
 flguppy.cc:1720: warning: deprecated conversion from string constant to 
 'char*'
 gmake[1]: *** [Glarea.o] Error 1
 
 http://tom1.akherb.com/tb/errors/9-FreeBSD/flounder-0.40_15.log
 
 Beech

From: KATO Tsuguru <tkato432@yahoo.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/174167: science/flounder: Fix build with clang
Date: Thu, 13 Dec 2012 03:00:01 +0900

 This is a multi-part message in MIME format.
 
 --Multipart=_Thu__13_Dec_2012_03_00_01_+0900_Qgd11ePI6LFid0Gj
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 
 Here is the corrected patch.
 
 --Multipart=_Thu__13_Dec_2012_03_00_01_+0900_Qgd11ePI6LFid0Gj
 Content-Type: text/x-diff;
  name="science_flounder.diff"
 Content-Disposition: attachment;
  filename="science_flounder.diff"
 Content-Transfer-Encoding: 7bit
 
 diff -urN /usr/ports/science/flounder/Makefile science/flounder/Makefile
 --- /usr/ports/science/flounder/Makefile	2012-11-08 06:59:23.000000000 +0900
 +++ science/flounder/Makefile	2012-12-03 23:58:13.000000000 +0900
 @@ -1,14 +1,9 @@
 -# ex:ts=8
 -# Ports collection Makefile for:	flounder
 -# Date created:			Oct 14, 2002
 -# Whom:				ijliao
 -#
 +# Created by: ijliao
  # $FreeBSD: head/science/flounder/Makefile 302037 2012-08-04 22:52:02Z kwm $
 -#
  
  PORTNAME=	flounder
  PORTVERSION=	0.40
 -PORTREVISION=	14
 +PORTREVISION=	15
  CATEGORIES=	science
  MASTER_SITES=	http://www.enel.ucalgary.ca/People/vigmond/flounder/
  EXTRACT_SUFX=	.tgz
 @@ -16,35 +11,52 @@
  MAINTAINER=	ports@FreeBSD.org
  COMMENT=	A quick way to visualize regularly spaced 4D data
  
 -LIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk \
 -		gif:${PORTSDIR}/graphics/giflib \
 -		png15:${PORTSDIR}/graphics/png
 +LIB_DEPENDS=	gif:${PORTSDIR}/graphics/giflib \
 +		png15:${PORTSDIR}/graphics/png \
 +		fltk:${PORTSDIR}/x11-toolkits/fltk
 +
 +OPTIONS_DEFINE=	GNUPLOT GRACE
 +OPTIONS_DEFAULT=GNUPLOT GRACE
 +GRACE_DESC=	Plotting via GRACE
  
  USE_GL=		glut
 -GNU_CONFIGURE=	yes
 -CPPFLAGS+=	-I${LOCALBASE}/include
 -LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lstdc++
  USE_GMAKE=	yes
 +GNU_CONFIGURE=	yes
 +MAKE_JOBS_SAFE=	yes
 +
 +CPPFLAGS+=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
 +LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
 +
 +PLIST_FILES=	bin/flounder bin/igbhead
  
 -.if !defined(WITHOUT_PLOT)
 +.include <bsd.port.options.mk>
 +
 +.if ${PORT_OPTIONS:MGNUPLOT}
  BUILD_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
  RUN_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot
  CONFIGURE_ARGS+=	--enable-gnuplot
  .endif
  
 -.if !defined(WITHOUT_GRACE)
 +.if ${PORT_OPTIONS:MGRACE}
  BUILD_DEPENDS+=	xmgrace:${PORTSDIR}/math/grace
  RUN_DEPENDS+=	xmgrace:${PORTSDIR}/math/grace
  CONFIGURE_ARGS+=	--enable-grace
  .endif
  
  post-patch:
 -	${REINPLACE_CMD} -e "s|-lungif|-lgif|" ${WRKSRC}/configure
 -
 -.include <bsd.port.pre.mk>
 -
 -.if ${ARCH} == "alpha"
 -BROKEN=		Does not compile on alpha
 -.endif
 +	@${REINPLACE_CMD} -e \
 +		's|-lungif|-lgif|' ${WRKSRC}/configure
 +	@${REINPLACE_CMD} -e \
 +		's|cmdline.o.*|cmdline.o| ; \
 +		 /getopt.o/d ; \
 +		 /getopt1.o/d ; \
 +		 s|g++ |$$(CXX) | ; \
 +		 s|-g | |' ${WRKSRC}/utils/Makefile
 +	@${REINPLACE_CMD} -e \
 +		's|^main(|int main(|' ${WRKSRC}/utils/igbhead.cc
 +
 +do-install:
 +	cd ${WRKSRC}/src && ${INSTALL_PROGRAM} flounder ${PREFIX}/bin
 +	cd ${WRKSRC}/utils && ${INSTALL_PROGRAM} igbhead ${PREFIX}/bin
  
 -.include <bsd.port.post.mk>
 +.include <bsd.port.mk>
 diff -urN /usr/ports/science/flounder/files/patch-Fl_Gnuplot.cc science/flounder/files/patch-Fl_Gnuplot.cc
 --- /usr/ports/science/flounder/files/patch-Fl_Gnuplot.cc	2012-11-08 06:59:22.000000000 +0900
 +++ science/flounder/files/patch-Fl_Gnuplot.cc	2012-10-23 23:23:04.000000000 +0900
 @@ -1,6 +1,11 @@
 ---- src/Fl_Gnuplot.cc.orig	Tue Oct 15 03:59:41 2002
 -+++ src/Fl_Gnuplot.cc	Tue Oct 15 04:02:05 2002
 -@@ -44,6 +44,7 @@
 +--- src/Fl_Gnuplot.cc.orig	2002-12-20 03:56:35.000000000 +0900
 ++++ src/Fl_Gnuplot.cc	2012-10-23 23:22:44.000000000 +0900
 +@@ -39,11 +39,11 @@
 + 
 + #include <stdlib.h>
 + #include <stdio.h>
 +-#include <fstream.h>
 + #include <unistd.h>
   #include <sys/types.h>
   #include <sys/stat.h>
   #include <fcntl.h>
 @@ -8,7 +13,7 @@
   
   #include "FL/fl_draw.H"
   #include "FL/fl_ask.H"
 -@@ -53,12 +54,14 @@
 +@@ -53,12 +53,14 @@
   
   #define N_ENTRIES 8192
   
 diff -urN /usr/ports/science/flounder/files/patch-Glarea.cc science/flounder/files/patch-Glarea.cc
 --- /usr/ports/science/flounder/files/patch-Glarea.cc	1970-01-01 09:00:00.000000000 +0900
 +++ science/flounder/files/patch-Glarea.cc	2012-12-12 23:17:17.000000000 +0900
 @@ -0,0 +1,11 @@
 +--- src/Glarea.cc.orig	2002-12-20 03:56:35.000000000 +0900
 ++++ src/Glarea.cc	2012-12-12 23:16:47.000000000 +0900
 +@@ -918,7 +918,7 @@
 + 			igbname = fname + ".gz";
 + 			if( (in=gzopen( igbname.c_str(), "r" )) == NULL ) {
 + 				igbname = fname + ".igb.gz"; 
 +-				if( (in=fopen( igbname.c_str(), "rb" )) == NULL ) 
 ++				if( (in=(gzFile)fopen( igbname.c_str(), "rb" )) == NULL ) 
 + 					return 1;
 + 			}
 + 		}
 diff -urN /usr/ports/science/flounder/files/patch-IGBheader.cc science/flounder/files/patch-IGBheader.cc
 --- /usr/ports/science/flounder/files/patch-IGBheader.cc	2012-11-08 06:59:22.000000000 +0900
 +++ science/flounder/files/patch-IGBheader.cc	2012-12-12 23:20:15.000000000 +0900
 @@ -1,13 +1,52 @@
  --- src/IGBheader.cc.orig	Tue Oct 15 02:15:19 2002
  +++ src/IGBheader.cc	Tue Oct 15 02:15:44 2002
 -@@ -17,7 +17,10 @@
 +@@ -17,8 +17,11 @@
       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   */
   #include<stdlib.h>
  +#include <iostream>
   #include "IGBheader.h"
 -+
 -+using namespace std;
   
 ++using namespace std;
 ++
   /* -------------- Bits de statut pour Header_Read et Header_Write ------ */
   
 + #define     MOT_CLEF_INV    2
 +@@ -756,7 +759,7 @@
 + 	if (bool_comment) {
 + 		comment = v_comment;
 + 		while (*comment != NULL) {
 +-			n_car = gzprintf(file, "#%.80s\r\n", *comment++); 
 ++			n_car = gzprintf((gzFile)file, "#%.80s\r\n", *comment++); 
 + 			if (n_car==0) { 
 + 				if (!Header_Quiet) {
 + 					fprintf(stderr, "\nHeader_Write: Erreur a l'ecriture \n");
 +@@ -861,7 +864,7 @@
 + 			}
 + 
 + 			/* --- lit le caractere suivant --- */
 +-			in = gzgetc( file ) ;
 ++			in = gzgetc( (gzFile)file ) ;
 + 
 + 			/* --- (EOF dans l'entete) --> erreur --- */
 + 			if ( in == -1 ) {
 +@@ -1318,8 +1321,8 @@
 + 		}
 + 	}
 + 
 +-	if (gztell(file)!=1024) { 
 +-	    gzseek( file, 1024, SEEK_SET );
 ++	if (gztell((gzFile)file)!=1024) { 
 ++	    gzseek( (gzFile)file, 1024, SEEK_SET );
 + 		if (!Header_Quiet) {
 + 			fprintf(stderr,
 + 					"\nATTENTION: etiquette de grandeur non-standard \n");
 +@@ -1335,7 +1338,7 @@
 + 
 + 	if (bool_vect_z) {
 + 		v_vect_z = (float *)malloc(v_z*sizeof(float));
 +-		gzread(file, v_vect_z, sizeof(float)*v_z);
 ++		gzread((gzFile)file, v_vect_z, sizeof(float)*v_z);
 + 	}
 + 
 + 	return( statut ) ;
 diff -urN /usr/ports/science/flounder/files/patch-RenderEPS.h science/flounder/files/patch-RenderEPS.h
 --- /usr/ports/science/flounder/files/patch-RenderEPS.h	2012-11-08 06:59:22.000000000 +0900
 +++ science/flounder/files/patch-RenderEPS.h	2012-10-23 23:23:54.000000000 +0900
 @@ -1,11 +1,10 @@
 ---- src/RenderEPS.h.orig	Tue Oct 15 00:35:11 2002
 -+++ src/RenderEPS.h	Tue Oct 15 00:35:26 2002
 -@@ -23,6 +23,8 @@
 +--- src/RenderEPS.h.orig	2002-12-19 13:37:24.000000000 +0900
 ++++ src/RenderEPS.h	2012-10-23 23:23:41.000000000 +0900
 +@@ -20,6 +20,7 @@
 + #include <math.h>
 + #include <stdio.h>
 + #include <stdlib.h>
 ++#include <string.h>
   #include <GL/gl.h>
   #include <string>
 - 
 -+using namespace std;
 -+
 - #define FB_BUFSIZE 1000000
 - 
 - class RenderEPS {
 + using namespace std;
 diff -urN /usr/ports/science/flounder/pkg-plist science/flounder/pkg-plist
 --- /usr/ports/science/flounder/pkg-plist	2012-11-08 06:59:23.000000000 +0900
 +++ science/flounder/pkg-plist	1970-01-01 09:00:00.000000000 +0900
 @@ -1,2 +0,0 @@
 -bin/flounder
 -bin/igbhead
 
 --Multipart=_Thu__13_Dec_2012_03_00_01_+0900_Qgd11ePI6LFid0Gj--

From: Beech Rintoul <beech@freebsdnorth.com>
To: KATO Tsuguru <tkato432@yahoo.com>
Cc: Beech Rintoul <beech@freebsdnorth.com>,
 Bug Followup <bug-followup@freebsd.org>
Subject: Re: ports/174167: science/flounder: Fix build with clang
Date: Sat, 22 Dec 2012 20:10:28 -0900

 On Thursday 13 December 2012 01:57:53 KATO Tsuguru wrote:
 > Beech Rintoul (beech@freebsdnorth.com) wrote:
 > > Now the new patch fails:
 > > 
 > > ===>  Patching for flounder-0.40_15
 > > ===>  Applying FreeBSD patches for flounder-0.40_15
 > > 1 out of 1 hunks failed--saving rejects to src/Glarea.cc.rej
 > > => Patch patch-Glarea.cc failed to apply cleanly.
 > 
 > Perhaps "-p" (pathname strip count) option for patch command would
 > be wrong. This can cause problems when patch tries to create files
 > into subdirectory.
 > 
 > The patch would be applied cleanly by following either of the
 > examples below:
 > 
 > % cat science_flounder.diff | patch -p -d $PORTSDIR
 > % cat science_flounder.diff | patch -p1 -d $PORTSDIR/science
 > % cat science_flounder.diff | patch -p2 -d $PORTSDIR/science/flounder
 
 Please send the latest patches (attach, not inline). Mail may be corrupting 
 the patch.
 
 Beech

From: Beech Rintoul <beech@freebsdnorth.com>
To: KATO Tsuguru <tkato432@yahoo.com>
Cc: beech@freebsdnorth.com,
 Bug Followup <bug-followup@freebsd.org>
Subject: Re: ports/174167: science/flounder: Fix build with clang
Date: Sat, 22 Dec 2012 20:05:30 -0900

 On Thursday 13 December 2012 01:57:53 KATO Tsuguru wrote:
 > Beech Rintoul (beech@freebsdnorth.com) wrote:
 > > Now the new patch fails:
 > > 
 > > ===>  Patching for flounder-0.40_15
 > > ===>  Applying FreeBSD patches for flounder-0.40_15
 > > 1 out of 1 hunks failed--saving rejects to src/Glarea.cc.rej
 > > => Patch patch-Glarea.cc failed to apply cleanly.
 > 
 > Perhaps "-p" (pathname strip count) option for patch command would
 > be wrong. This can cause problems when patch tries to create files
 > into subdirectory.
 > 
 > The patch would be applied cleanly by following either of the
 > examples below:
 > 
 > % cat science_flounder.diff | patch -p -d $PORTSDIR
 > % cat science_flounder.diff | patch -p1 -d $PORTSDIR/science
 > % cat science_flounder.diff | patch -p2 -d $PORTSDIR/science/flounder
 
 Please send me the latest patches (attach, not inline). The mail may be 
 corrupting the patch.
 
 Beech
State-Changed-From-To: open->closed 
State-Changed-By: beech 
State-Changed-When: Sun Dec 23 19:11:33 UTC 2012 
State-Changed-Why:  
Committed, Thanks! 

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