From owner-svn-ports-all@freebsd.org Sun Sep 4 14:19:00 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BDEE7A9DC25; Sun, 4 Sep 2016 14:19:00 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 715FFF68; Sun, 4 Sep 2016 14:19:00 +0000 (UTC) (envelope-from rakuco@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u84EIxWo076751; Sun, 4 Sep 2016 14:18:59 GMT (envelope-from rakuco@FreeBSD.org) Received: (from rakuco@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u84EIxEE076750; Sun, 4 Sep 2016 14:18:59 GMT (envelope-from rakuco@FreeBSD.org) Message-Id: <201609041418.u84EIxEE076750@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: rakuco set sender to rakuco@FreeBSD.org using -f From: Raphael Kubo da Costa Date: Sun, 4 Sep 2016 14:18:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r421339 - head/lang/basic256/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2016 14:19:00 -0000 Author: rakuco Date: Sun Sep 4 14:18:59 2016 New Revision: 421339 URL: https://svnweb.freebsd.org/changeset/ports/421339 Log: Add patch (sent upstream) to drop `using namespace std' This patch is a smaller version of one I've sent upstream. It removes 'using namespace std' from Interpreter.cpp to avoid errors when -std=c++11 or -std=gnu++11 is passed to the compiler, as a call to bind(2) can end up becoming a call to std::bind(). This is required to avoid breaking the build with Qt 5.6.1: c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing -g -std=gnu++11 -pthread -D_THREAD_SAFE -Wall -W -fPIC -DLINUX -DESPEAK -DSOUND_QMOBILITY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I. -I. -I/usr/local/include/espeak -I/usr/local/include/qt5/QtMultimedia -I/usr/local/include/qt5/QtSerialPort -IQtMobility -IQtMobility -I/usr/local/include/qt5 -I/usr/local/include/qt5/QtGui -I/usr/local/include/qt5/QtCore -Itmp/moc -I/usr/local/include -I/usr/local/include -I/usr/local/lib/qt5/mkspecs/freebsd-clang -o tmp/obj/Interpreter.o Interpreter.cpp Interpreter.cpp:4282:105: error: invalid operands to binary expression ('__bind' and 'int') PR: 212347 Approved by: fernando.apesteguia@gmail.com (maintainer) Added: head/lang/basic256/files/patch-Interpreter.cpp (contents, props changed) Added: head/lang/basic256/files/patch-Interpreter.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/basic256/files/patch-Interpreter.cpp Sun Sep 4 14:18:59 2016 (r421339) @@ -0,0 +1,17 @@ +Drop 'using namespace std' to avoid errors when building in C++11 mode. This +can happen on FreeBSD 10+ and Qt 5.6+, where Qt may end up passing -std=gnu++11 +and lead the call to bind(2) becoming a call to std::bind(). + +Interpreter.cpp:4282:105: error: invalid operands to binary expression ('__bind' and 'int') + +Submitted upstream: https://sourceforge.net/p/kidbasic/patches/30/ +--- Interpreter.cpp.orig 2016-09-03 10:00:06 UTC ++++ Interpreter.cpp +@@ -66,7 +66,6 @@ InpOut32OutType Out32 = NULL; + + #include + +-using namespace std; + + #include "LEX/basicParse.tab.h" + #include "WordCodes.h"