From nobody@FreeBSD.org  Thu Sep 26 16:26:21 2013
Return-Path: <nobody@FreeBSD.org>
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 ESMTP id C53906AE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2013 16:26:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id B2772274A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2013 16:26:21 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r8QGQLV6057180
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 26 Sep 2013 16:26:21 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r8QGQL90057177;
	Thu, 26 Sep 2013 16:26:21 GMT
	(envelope-from nobody)
Message-Id: <201309261626.r8QGQL90057177@oldred.freebsd.org>
Date: Thu, 26 Sep 2013 16:26:21 GMT
From: Gustau Prez i Querol <gustau.perez@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] Fix build of games/brutalchess with clang
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182415
>Category:       ports
>Synopsis:       [PATCH] Fix build of games/brutalchess with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 26 16:30:00 UTC 2013
>Closed-Date:    Sat Oct 05 10:55:33 UTC 2013
>Last-Modified:  Sat Oct 05 10:55:33 UTC 2013
>Originator:     Gustau Prez i Querol
>Release:        FreeBSD HED r255411
>Organization:
>Environment:
FreeBSD hast16 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r255411+a9b6160
>Description:
The build of games/brutalchess fails after the removal of gcc in base. The full URL of the build fail is: 

http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2013-09-26_00h44m15s/logs/brutalchess-0.5.2_10.log

The attached shar file contains two patches that fix the build.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	patch-src-xboardplayer.cpp
#	patch-src-faileplayer.cpp
#
echo x - patch-src-xboardplayer.cpp
sed 's/^X//' >patch-src-xboardplayer.cpp << '1f075925c8dc060960afdf3397e1380f'
X--- src/xboardplayer.cpp.orig	2013-09-26 17:56:11.459895168 +0000
X+++ src/xboardplayer.cpp	2013-09-26 17:56:28.541896823 +0000
X@@ -14,6 +14,7 @@
X #include <cassert>
X #include <sstream>
X #include <string>
X+#include <unistd.h>
X 
X using namespace std;
X 
1f075925c8dc060960afdf3397e1380f
echo x - patch-src-faileplayer.cpp
sed 's/^X//' >patch-src-faileplayer.cpp << 'f77d845599e8454183b837b34570fa8f'
X--- src/faileplayer.cpp.orig	2013-09-26 17:56:03.930896577 +0000
X+++ src/faileplayer.cpp	2013-09-26 17:56:21.336893851 +0000
X@@ -14,6 +14,7 @@
X #include <cassert>
X #include <sstream>
X #include <string>
X+#include <unistd.h>
X 
X using namespace std;
X 
f77d845599e8454183b837b34570fa8f
exit



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: marino 
State-Changed-When: Sat Oct 5 10:55:32 UTC 2013 
State-Changed-Why:  
Independently fixed.  FYI, patches should not be provided in shar format 
per the porters handbook, thanks. 

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