From tijl@coosemans.org  Sun Feb  2 20:41:48 2014
Return-Path: <tijl@coosemans.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 E734A939
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  2 Feb 2014 20:41:48 +0000 (UTC)
Received: from mailrelay003.isp.belgacom.be (mailrelay003.isp.belgacom.be [195.238.6.53])
	by mx1.freebsd.org (Postfix) with ESMTP id 82CDF1CD9
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  2 Feb 2014 20:41:48 +0000 (UTC)
Received: from 78.170-241-81.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([81.241.170.78])
  by relay.skynet.be with ESMTP; 02 Feb 2014 21:41:41 +0100
Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1])
	by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id s12KfdRH008854
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 2 Feb 2014 21:41:40 +0100 (CET)
	(envelope-from tijl@kalimero.tijl.coosemans.org)
Received: (from tijl@localhost)
	by kalimero.tijl.coosemans.org (8.14.7/8.14.7/Submit) id s12Kfd0L008853;
	Sun, 2 Feb 2014 21:41:39 +0100 (CET)
	(envelope-from tijl)
Message-Id: <201402022041.s12Kfd0L008853@kalimero.tijl.coosemans.org>
Date: Sun, 2 Feb 2014 21:41:39 +0100 (CET)
From: Tijl Coosemans <tijl@FreeBSD.org>
Reply-To: Tijl Coosemans <tijl@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] net-im/licq: fix build on FreeBSD 10+
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         186389
>Category:       ports
>Synopsis:       [patch] net-im/licq: fix build on FreeBSD 10+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    dinoex
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 02 20:50:03 UTC 2014
>Closed-Date:    Thu Feb 06 05:09:11 CET 2014
>Last-Modified:  Thu Feb 06 05:09:11 CET 2014
>Originator:     Tijl Coosemans
>Release:        FreeBSD 11.0-CURRENT i386
>Organization:
>Environment:
>Description:
Fix this build error:
http://beefy2.isc.freebsd.org/bulk/head-amd64-default/2014-01-29_19h07m40s/logs/errors/licq-base-1.8.0_1.log

By removing USE_GCC and building with clang/libc++ which works just fine
if you define -DGTEST_USE_OWN_TR1_TUPLE.  This makes GTest use its own
copy of std::tr1::tuple.  Clang/libc++ doesn't have the std::tr1 namespace.
>How-To-Repeat:
>Fix:

--- licq.patch begins here ---
Index: net-im/licq/Makefile
===================================================================
--- net-im/licq/Makefile	(revision 342362)
+++ net-im/licq/Makefile	(working copy)
@@ -3,7 +3,7 @@
 
 PORTNAME=	base
 PORTVERSION=	${LICQ_VER}
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net-im
 PKGNAMESUFFIX=	${SOCKS_SUFFIX}${PKGNAMESUFFIX2}
 
@@ -14,7 +14,6 @@ LIB_DEPENDS=	libboost_regex.so:${PORTSDI
 
 LICENSE=	GPLv2
 
-USE_GCC=	yes
 USES=		cmake iconv
 WRKSRC=		${WRKDIR}/${DISTNAME}
 LICQ_PORT?=	net-im/licq
@@ -23,7 +22,7 @@ LICQ_PORT?=	net-im/licq
 LDFLAGS+=	${PTHREAD_LIBS} -L${LOCALBASE}/lib ${ICONV_LIB} -Wl,--export-dynamic
 CPPFLAGS+=	-I${LOCALBASE}/include
 CFLAGS+=	-I${LOCALBASE}/include
-CXXFLAGS+=	-Wl,--export-dynamic
+CXXFLAGS+=	-Wl,--export-dynamic -DGTEST_USE_OWN_TR1_TUPLE
 
 OPTIONS_DEFINE=	OPENSSL
 OPTIONS_DEFAULT=OPENSSL
--- licq.patch ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->dinoex 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Feb 2 20:50:11 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/186389: commit references a PR
Date: Wed,  5 Feb 2014 06:50:50 +0000 (UTC)

 Author: dinoex
 Date: Wed Feb  5 06:50:43 2014
 New Revision: 342634
 URL: http://svnweb.freebsd.org/changeset/ports/342634
 QAT: https://qat.redports.org/buildarchive/r342634/
 
 Log:
   - fix build with clang
   PR:		186389
   Submitted by:	Tijl Coosemans
 
 Modified:
   head/net-im/licq/Makefile
 
 Modified: head/net-im/licq/Makefile
 ==============================================================================
 --- head/net-im/licq/Makefile	Wed Feb  5 05:41:01 2014	(r342633)
 +++ head/net-im/licq/Makefile	Wed Feb  5 06:50:43 2014	(r342634)
 @@ -14,7 +14,6 @@ LIB_DEPENDS=	libboost_regex.so:${PORTSDI
  
  LICENSE=	GPLv2
  
 -USE_GCC=	yes
  USES=		cmake iconv
  WRKSRC=		${WRKDIR}/${DISTNAME}
  LICQ_PORT?=	net-im/licq
 @@ -23,7 +22,7 @@ LICQ_PORT?=	net-im/licq
  LDFLAGS+=	${PTHREAD_LIBS} -L${LOCALBASE}/lib ${ICONV_LIB} -Wl,--export-dynamic
  CPPFLAGS+=	-I${LOCALBASE}/include
  CFLAGS+=	-I${LOCALBASE}/include
 -CXXFLAGS+=	-Wl,--export-dynamic
 +CXXFLAGS+=	-Wl,--export-dynamic -DGTEST_USE_OWN_TR1_TUPLE
  
  OPTIONS_DEFINE=	OPENSSL
  OPTIONS_DEFAULT=OPENSSL
 _______________________________________________
 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"
 
State-Changed-From-To: open->closed 
State-Changed-By: dinoex 
State-Changed-When: Thu Feb 6 05:08:48 CET 2014 
State-Changed-Why:  


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