From cmt@elch.exwg.net  Sat Dec  7 17:04:48 2013
Return-Path: <cmt@elch.exwg.net>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 2B610A6D
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Dec 2013 17:04:48 +0000 (UTC)
Received: from smtp.burggraben.net (base.exwg.net [IPv6:2a01:4f8:140:50a2::2])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id DD3A719F3
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Dec 2013 17:04:47 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
	by smtp.burggraben.net (Postfix) with ESMTP id 8733760008B
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Dec 2013 18:04:46 +0100 (CET)
Received: from smtp.burggraben.net ([127.0.0.1])
	by localhost (ns.burggraben.net [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id IYgVYRzNS-RH for <FreeBSD-gnats-submit@freebsd.org>;
	Sat,  7 Dec 2013 18:04:46 +0100 (CET)
Received: from elch.exwg.net (elch.exwg.net [IPv6:2001:470:7b43:1:6a05:caff:fe01:aae9])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "elch.exwg.net", Issuer "Christoph Moench-Tegeder" (verified OK))
	by smtp.burggraben.net (Postfix) with ESMTPS
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  7 Dec 2013 18:04:46 +0100 (CET)
Received: by elch.exwg.net (Postfix, from userid 1000)
	id E9B3431016; Sat,  7 Dec 2013 18:04:44 +0100 (CET)
Message-Id: <20131207170444.E9B3431016@elch.exwg.net>
Date: Sat,  7 Dec 2013 18:04:44 +0100 (CET)
From: Christoph Moench-Tegeder <cmt@burggraben.net>
Reply-To: Christoph Moench-Tegeder <cmt@burggraben.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: textproc/ctpp2 : fix build with gcc47
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         184575
>Category:       ports
>Synopsis:       textproc/ctpp2 : fix build with gcc47
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    vg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 07 17:10:00 UTC 2013
>Closed-Date:    Tue Jan 07 22:56:53 UTC 2014
>Last-Modified:  Tue Jan  7 23:30:02 UTC 2014
>Originator:     Christoph Moench-Tegeder
>Release:        FreeBSD 9.2-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD elch.exwg.net 9.2-RELEASE FreeBSD 9.2-RELEASE #11 r255911: Fri Sep 27 17:09:40 CEST 2013 cmt@elch.exwg.net:/usr/obj/usr/src/sys/ELCH amd64

lang/gcc47		gcc47-4.7.4.20131130
textproc/ctpp2	ctpp2-2.8.3_1

>Description:
Hi,

in an effort towards upgrading lang/gcc to gcc 4.7, I'm helping gerald@
in making ports gcc47-safe.
Please consider the following patch to your port. If you approve of the
patch, gerald@ has offered his help in commiting it.
If you're commiting yourself or have someone else commit this (or
another patch to the same effect), can you please add an additional
reference to ports/183342 in the commit message?
In my test environment, the port built successfully with lang/gcc47.

>How-To-Repeat:

>Fix:

GCC 4.7 dows not include unistd.h on it's own anymore, so add it
explicitly.

# add unistd.h
$ svn status
A       files/patch-src-CTPP2FileSourceLoader.cpp

Index: files/patch-src-CTPP2FileSourceLoader.cpp
===================================================================
--- files/patch-src-CTPP2FileSourceLoader.cpp	(revision 0)
+++ files/patch-src-CTPP2FileSourceLoader.cpp	(working copy)
@@ -0,0 +1,10 @@
+--- src/CTPP2FileSourceLoader.cpp.orig	2013-11-16 14:26:59.000000000 +0100
++++ src/CTPP2FileSourceLoader.cpp	2013-11-16 14:27:17.000000000 +0100
+@@ -38,6 +38,7 @@
+ #include <errno.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <unistd.h>
+ 
+ #ifdef WIN32
+     #include <direct.h> /* getcwd */


Regards,
Christoph
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->vg 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Dec 7 17:10:20 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: Gerald Pfeifer <gerald@pfeifer.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: ports/184575: textproc/ctpp2 : fix build with gcc47
Date: Sun, 8 Dec 2013 00:06:48 +0100 (CET)

 Apologies, the PR to reference should have been 182136.
 
 Gerald
State-Changed-From-To: open->closed 
State-Changed-By: mat 
State-Changed-When: Tue Jan 7 22:56:52 UTC 2014 
State-Changed-Why:  
Committed, thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184575: commit references a PR
Date: Tue,  7 Jan 2014 22:57:44 +0000 (UTC)

 Author: mat
 Date: Tue Jan  7 22:57:37 2014
 New Revision: 339046
 URL: http://svnweb.freebsd.org/changeset/ports/339046
 
 Log:
   Fix build with gcc47
   
   maintainer timeout
   
   PR:		ports/184575
   Submitted by:	Christoph Moench-Tegeder
 
 Added:
   head/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp   (contents, props changed)
 
 Added: head/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ head/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp	Tue Jan  7 22:57:37 2014	(r339046)
 @@ -0,0 +1,10 @@
 +--- src/CTPP2FileSourceLoader.cpp.orig	2013-11-16 14:26:59.000000000 +0100
 ++++ src/CTPP2FileSourceLoader.cpp	2013-11-16 14:27:17.000000000 +0100
 +@@ -38,6 +38,7 @@
 + #include <errno.h>
 + #include <stdio.h>
 + #include <stdlib.h>
 ++#include <unistd.h>
 + 
 + #ifdef WIN32
 +     #include <direct.h> /* getcwd */
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/184575: commit references a PR
Date: Tue,  7 Jan 2014 23:25:21 +0000 (UTC)

 Author: mat
 Date: Tue Jan  7 23:25:12 2014
 New Revision: 339053
 URL: http://svnweb.freebsd.org/changeset/ports/339053
 
 Log:
   MFH: r339046
   
   Fix build with gcc47
   
   maintainer timeout
   
   PR:		ports/184575
   Submitted by:	Christoph Moench-Tegeder
   Approved by:	portmgr (implicit)
 
 Added:
   branches/2014Q1/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp
      - copied unchanged from r339046, head/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp
 Modified:
 Directory Properties:
   branches/2014Q1/   (props changed)
 
 Copied: branches/2014Q1/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp (from r339046, head/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp)
 ==============================================================================
 --- /dev/null	00:00:00 1970	(empty, because file is newly added)
 +++ branches/2014Q1/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp	Tue Jan  7 23:25:12 2014	(r339053, copy of r339046, head/textproc/ctpp2/files/patch-src-CTPP2FileSourceLoader.cpp)
 @@ -0,0 +1,10 @@
 +--- src/CTPP2FileSourceLoader.cpp.orig	2013-11-16 14:26:59.000000000 +0100
 ++++ src/CTPP2FileSourceLoader.cpp	2013-11-16 14:27:17.000000000 +0100
 +@@ -38,6 +38,7 @@
 + #include <errno.h>
 + #include <stdio.h>
 + #include <stdlib.h>
 ++#include <unistd.h>
 + 
 + #ifdef WIN32
 +     #include <direct.h> /* getcwd */
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
