From nobody@FreeBSD.org  Sun May 25 19:13:21 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 6C9F7C13
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 May 2014 19:13:21 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 598A42940
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 May 2014 19:13:21 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s4PJDKKg019232
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 25 May 2014 19:13:20 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s4PJDKk5019231;
	Sun, 25 May 2014 19:13:20 GMT
	(envelope-from nobody)
Message-Id: <201405251913.s4PJDKk5019231@cgiserv.freebsd.org>
Date: Sun, 25 May 2014 19:13:20 GMT
From: Milan Obuch <bsd@dino.sk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] unbreak mail/courier build for FreeBSD 10 and HEAD
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         190209
>Category:       ports
>Synopsis:       [PATCH] unbreak mail/courier build for FreeBSD 10 and HEAD
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 25 19:20:00 UTC 2014
>Closed-Date:    
>Last-Modified:  Sun May 25 21:17:18 UTC 2014
>Originator:     Milan Obuch
>Release:        8.4-STABLE, 9.2-STABLE, 10.0-STABLE, 11-CURRENT
>Organization:
>Environment:
>Description:
Currently building mail/courier on releases with default compiler switched to clang fails. Attached simple patch is a workaround for that.
>How-To-Repeat:
Try to build mail/courier on 10.0-RELEASE or newer
>Fix:
--- Makefile	2014-05-25 21:03:59.000000000 +0200
+++ Makefile.new	2014-05-25 21:03:07.000000000 +0200
@@ -60,7 +60,6 @@
 USE_AUTOTOOLS=	libtool aclocal automake
 AUTOMAKE_ARGS=	--add-missing
 USE_BZIP2=	yes
-USE_GCC=	any
 USES=		fam gettext gmake perl5 pkgconfig
 USE_OPENSSL=	yes
 USE_SUBMAKE=	yes
@@ -138,6 +137,10 @@
 .include "${.CURDIR}/Makefile.man"
 .include "${.CURDIR}/Makefile.own"
 
+.if ${OSVERSION} >= 1000000
+USE_GCC=       4.6
+.endif
+
 .if ${PORT_OPTIONS:MLDAP}
 USE_OPENLDAP=	yes
 WITH_AUTH_LDAP=	yes


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: pi 
State-Changed-When: Sun May 25 21:17:17 UTC 2014 
State-Changed-Why:  
Please provide a patch that also fixes staging. And 0.73.1 instead of 
0.65 would be very nice 8-) 

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