From owner-svn-ports-head@freebsd.org Sun Jan 21 02:07:43 2018 Return-Path: Delivered-To: svn-ports-head@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 B78BEED598A; Sun, 21 Jan 2018 02:07:43 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9367B75870; Sun, 21 Jan 2018 02:07:43 +0000 (UTC) (envelope-from mi@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A78FC24DEE; Sun, 21 Jan 2018 02:07:42 +0000 (UTC) (envelope-from mi@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0L27gRO041978; Sun, 21 Jan 2018 02:07:42 GMT (envelope-from mi@FreeBSD.org) Received: (from mi@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0L27gFa041976; Sun, 21 Jan 2018 02:07:42 GMT (envelope-from mi@FreeBSD.org) Message-Id: <201801210207.w0L27gFa041976@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mi set sender to mi@FreeBSD.org using -f From: Mikhail Teterin Date: Sun, 21 Jan 2018 02:07:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r459563 - head/devel/qmake/files X-SVN-Group: ports-head X-SVN-Commit-Author: mi X-SVN-Commit-Paths: head/devel/qmake/files X-SVN-Commit-Revision: 459563 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2018 02:07:43 -0000 Author: mi Date: Sun Jan 21 02:07:42 2018 New Revision: 459563 URL: https://svnweb.freebsd.org/changeset/ports/459563 Log: Make compilable with latest clang and -std=c++17 Added: head/devel/qmake/files/patch-generators_c++17 (contents, props changed) Modified: head/devel/qmake/files/Makefile.bsd Modified: head/devel/qmake/files/Makefile.bsd ============================================================================== --- head/devel/qmake/files/Makefile.bsd Sun Jan 21 01:35:58 2018 (r459562) +++ head/devel/qmake/files/Makefile.bsd Sun Jan 21 02:07:42 2018 (r459563) @@ -19,7 +19,7 @@ CXXFLAGS+=-I${.CURDIR:H}/src/$s CXXFLAGS+=-I${.CURDIR}/generators$g .endfor -CXXFLAGS+=-I. -I"${FILESDIR}" +CXXFLAGS+=-I. -I"${FILESDIR}" -Dregister= CXXFLAGS+=-DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT \ -DQT_NO_STL -DQT_NO_COMPRESS -DQT_INSTALL_DATA="\"${SHAREDIR}\"" Added: head/devel/qmake/files/patch-generators_c++17 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/qmake/files/patch-generators_c++17 Sun Jan 21 02:07:42 2018 (r459563) @@ -0,0 +1,62 @@ +Insert the spaces between literals to satisfy clang with c++17 (or +even c++11) standard. + + -mi + +--- generators/win32/borland_bmake.cpp 2007-02-02 14:01:28 UTC ++++ generators/win32/borland_bmake.cpp +@@ -383,7 +383,7 @@ BorlandMakefileGenerator::init() + if(project->isEmpty("QMAKE_INSTALL_DIR")) + project->variables()["QMAKE_INSTALL_DIR"].append("$(COPY_DIR)"); + +- bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qtmt"QTDLL_POSTFIX); ++ bool is_qt = (project->first("TARGET") == "qt" QTDLL_POSTFIX || project->first("TARGET") == "qtmt" QTDLL_POSTFIX); + QStringList &configs = project->variables()["CONFIG"]; + if (project->isActiveConfig("shared")) + project->variables()["DEFINES"].append("QT_DLL"); +--- generators/win32/mingw_make.cpp 2007-02-02 14:01:28 UTC ++++ generators/win32/mingw_make.cpp +@@ -394,7 +394,7 @@ MingwMakefileGenerator::init() + if(project->isEmpty("QMAKE_INSTALL_DIR")) + project->variables()["QMAKE_INSTALL_DIR"].append("$(COPY_DIR)"); + +- bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qt-mt"QTDLL_POSTFIX); ++ bool is_qt = (project->first("TARGET") == "qt" QTDLL_POSTFIX || project->first("TARGET") == "qt-mt" QTDLL_POSTFIX); + project->variables()["QMAKE_ORIG_TARGET"] = project->variables()["TARGET"]; + + // LIBS defined in Profile comes first for gcc +--- generators/win32/msvc_dsp.cpp 2007-02-02 14:01:27 UTC ++++ generators/win32/msvc_dsp.cpp +@@ -620,7 +620,7 @@ DspMakefileGenerator::init() + if ( project->variables()["QMAKESPEC"].isEmpty() ) + project->variables()["QMAKESPEC"].append( getenv("QMAKESPEC") ); + +- bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qt-mt"QTDLL_POSTFIX); ++ bool is_qt = (project->first("TARGET") == "qt" QTDLL_POSTFIX || project->first("TARGET") == "qt-mt" QTDLL_POSTFIX); + project->variables()["QMAKE_ORIG_TARGET"] = project->variables()["TARGET"]; + + QStringList &configs = project->variables()["CONFIG"]; +--- generators/win32/msvc_nmake.cpp 2007-02-02 14:01:28 UTC ++++ generators/win32/msvc_nmake.cpp +@@ -479,7 +479,7 @@ NmakeMakefileGenerator::init() + if(project->isEmpty("QMAKE_INSTALL_DIR")) + project->variables()["QMAKE_INSTALL_DIR"].append("$(COPY_DIR)"); + +- bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qt-mt"QTDLL_POSTFIX); ++ bool is_qt = (project->first("TARGET") == "qt" QTDLL_POSTFIX || project->first("TARGET") == "qt-mt" QTDLL_POSTFIX); + project->variables()["QMAKE_ORIG_TARGET"] = project->variables()["TARGET"]; + + QString targetfilename = project->variables()["TARGET"].first(); +--- generators/win32/msvc_vcproj.cpp 2007-02-02 14:01:28 UTC ++++ generators/win32/msvc_vcproj.cpp +@@ -1094,8 +1094,8 @@ void VcprojGenerator::initOld() + project->variables()["QMAKESPEC"].append( getenv("QMAKESPEC") ); + + bool is_qt = +- ( project->first("TARGET") == "qt"QTDLL_POSTFIX || +- project->first("TARGET") == "qt-mt"QTDLL_POSTFIX ); ++ ( project->first("TARGET") == "qt" QTDLL_POSTFIX || ++ project->first("TARGET") == "qt-mt" QTDLL_POSTFIX ); + + QStringList &configs = project->variables()["CONFIG"]; +