Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2014 21:41:39 +0100 (CET)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/186389: [patch] net-im/licq: fix build on FreeBSD 10+
Message-ID:  <201402022041.s12Kfd0L008853@kalimero.tijl.coosemans.org>
Resent-Message-ID: <201402022050.s12Ko3Hm025123@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         186389
>Category:       ports
>Synopsis:       [patch] net-im/licq: fix build on FreeBSD 10+
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 02 20:50:03 UTC 2014
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402022041.s12Kfd0L008853>