Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Sep 2016 16:42:33 +0000 (UTC)
From:      Raphael Kubo da Costa <rakuco@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r421344 - head/net-im/telegramqml
Message-ID:  <201609041642.u84GgXFS033391@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rakuco
Date: Sun Sep  4 16:42:33 2016
New Revision: 421344
URL: https://svnweb.freebsd.org/changeset/ports/421344

Log:
  Explicitly disable C++11 during the build.
  
  Prepare for Qt 5.6, which will pass -std=gnu++11 by default when the compiler
  supports it, and the build currently does not work:
  
  ../TelegramQML-0.9.2/telegramqml.cpp:4794:10: error: case value evaluates to 2573335900, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
      case Update::typeUpdateReadHistoryInbox:
  
  Note that Qt 5.7 will start requiring C++11 support, so this will need to be
  fixed properly in the future.
  
  PR:	        211916

Modified:
  head/net-im/telegramqml/Makefile

Modified: head/net-im/telegramqml/Makefile
==============================================================================
--- head/net-im/telegramqml/Makefile	Sun Sep  4 15:57:38 2016	(r421343)
+++ head/net-im/telegramqml/Makefile	Sun Sep  4 16:42:33 2016	(r421344)
@@ -25,6 +25,12 @@ USE_LDCONFIG=	yes
 QMAKE_ARGS=	BUILD_MODE+=lib \
 		LIBQTELEGRAM_INCLUDE_PATH="${LOCALBASE}/include/libqtelegram-ae"
 
+# Explicitly disable C++11, as Qt 5.6 defaults to -std=gnu++11 when the
+# compiler supports it and the build currently fails.
+# ../TelegramQML-0.9.2/telegramqml.cpp:4794:10: error: case value evaluates to 2573335900, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
+#     case Update::typeUpdateReadHistoryInbox:
+QMAKE_ARGS+=	CONFIG-="c++11"
+
 post-patch:
 	@${REINPLACE_CMD} -e "/isEmpty(OPENSSL_INCLUDE_PATH)/d" \
 		${WRKSRC}/telegramqml.pri



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