From owner-svn-ports-all@freebsd.org Sat Jan 6 03:04:32 2018 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 44476EB448B; Sat, 6 Jan 2018 03:04:32 +0000 (UTC) (envelope-from jbeich@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 E73F16ECBE; Sat, 6 Jan 2018 03:04:31 +0000 (UTC) (envelope-from jbeich@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 228AC9B2C; Sat, 6 Jan 2018 03:04:31 +0000 (UTC) (envelope-from jbeich@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0634VHV038592; Sat, 6 Jan 2018 03:04:31 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0634UlW038590; Sat, 6 Jan 2018 03:04:30 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801060304.w0634UlW038590@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Sat, 6 Jan 2018 03:04:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r458190 - branches/2018Q1/textproc/scim/files X-SVN-Group: ports-branches X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: branches/2018Q1/textproc/scim/files X-SVN-Commit-Revision: 458190 X-SVN-Commit-Repository: ports 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.25 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: Sat, 06 Jan 2018 03:04:32 -0000 Author: jbeich Date: Sat Jan 6 03:04:30 2018 New Revision: 458190 URL: https://svnweb.freebsd.org/changeset/ports/458190 Log: MFH: r458189 textproc/scim: unbreak build with Clang 6 (C++14 by default) In file included from scim_backend.cpp:33: In file included from ./scim.h:193: In file included from /usr/include/c++/v1/iostream:38: In file included from /usr/include/c++/v1/ios:216: In file included from /usr/include/c++/v1/__locale:15: In file included from /usr/include/c++/v1/string:477: In file included from /usr/include/c++/v1/string_view:176: In file included from /usr/include/c++/v1/__string:56: In file included from /usr/include/c++/v1/algorithm:642: /usr/include/c++/v1/utility:324:5: error: the parameter for this explicitly-defaulted copy constructor is const, but a member or base requires it to be non-const pair(pair const&) = default; ^ /usr/include/c++/v1/map:624:16: note: in instantiation of template class 'std::__1::pair, scim::Pointer >' requested here value_type __cc; ^ scim_backend.cpp:117:53: note: in instantiation of template class 'std::__1::__value_type, scim::Pointer >' requested here for (it = m_factory_repository.begin (); it != m_factory_repository.end (); ++it) { ^ In file included from scim_backend.cpp:33: In file included from ./scim.h:193: In file included from /usr/include/c++/v1/iostream:38: In file included from /usr/include/c++/v1/ios:216: In file included from /usr/include/c++/v1/__locale:15: In file included from /usr/include/c++/v1/string:477: In file included from /usr/include/c++/v1/string_view:176: In file included from /usr/include/c++/v1/__string:56: In file included from /usr/include/c++/v1/algorithm:642: /usr/include/c++/v1/utility:324:5: error: the parameter for this explicitly-defaulted copy constructor is const, but a member or base requires it to be non-const pair(pair const&) = default; ^ /usr/include/c++/v1/map:625:21: note: in instantiation of template class 'std::__1::pair, scim::Pointer >' requested here __nc_value_type __nc; ^ scim_backend.cpp:117:53: note: in instantiation of template class 'std::__1::__value_type, scim::Pointer >' requested here for (it = m_factory_repository.begin (); it != m_factory_repository.end (); ++it) { ^ scim_debug.cpp:41:6: error: constant expression evaluates to -1 which cannot be narrowed to type 'scim::uint32' (aka 'unsigned int') [-Wc++11-narrowing] {SCIM_DEBUG_AllMask, "all"}, ^~~~~~~~~~~~~~~~~~ ./scim_debug.h:44:37: note: expanded from macro 'SCIM_DEBUG_AllMask' #define SCIM_DEBUG_AllMask (~0) /**< Show all messages. */ ^~~~ scim_debug.cpp:41:6: note: insert an explicit cast to silence this issue {SCIM_DEBUG_AllMask, "all"}, ^~~~~~~~~~~~~~~~~~ static_cast( ) ./scim_debug.h:44:37: note: expanded from macro 'SCIM_DEBUG_AllMask' #define SCIM_DEBUG_AllMask (~0) /**< Show all messages. */ ^~~~ Reported by: antoine (via bug 224669) Obtained from: upstream (SCIM 1.4.16) Approved by: ports-secteam blanket Added: branches/2018Q1/textproc/scim/files/patch-src_scim__debug.h - copied unchanged from r458189, head/textproc/scim/files/patch-src_scim__debug.h branches/2018Q1/textproc/scim/files/patch-src_scim__pointer.h - copied unchanged from r458189, head/textproc/scim/files/patch-src_scim__pointer.h Modified: Directory Properties: branches/2018Q1/ (props changed) Copied: branches/2018Q1/textproc/scim/files/patch-src_scim__debug.h (from r458189, head/textproc/scim/files/patch-src_scim__debug.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2018Q1/textproc/scim/files/patch-src_scim__debug.h Sat Jan 6 03:04:30 2018 (r458190, copy of r458189, head/textproc/scim/files/patch-src_scim__debug.h) @@ -0,0 +1,13 @@ +https://github.com/scim-im/scim/commit/ea2a777b2fab + +--- src/scim_debug.h.orig 2008-11-02 06:42:34 UTC ++++ src/scim_debug.h +@@ -41,7 +41,7 @@ namespace scim { + * @name The mask for debug messages filtering. + * @{ + */ +-#define SCIM_DEBUG_AllMask (~0) /**< Show all messages. */ ++#define SCIM_DEBUG_AllMask ((uint32)~0) /**< Show all messages. */ + #define SCIM_DEBUG_MainMask 1 /**< Show messages of main application. */ + #define SCIM_DEBUG_ConfigMask 2 /**< Show messages of Config objects */ + #define SCIM_DEBUG_IMEngineMask 4 /**< Show messages of IMEngine objects */ Copied: branches/2018Q1/textproc/scim/files/patch-src_scim__pointer.h (from r458189, head/textproc/scim/files/patch-src_scim__pointer.h) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2018Q1/textproc/scim/files/patch-src_scim__pointer.h Sat Jan 6 03:04:30 2018 (r458190, copy of r458189, head/textproc/scim/files/patch-src_scim__pointer.h) @@ -0,0 +1,13 @@ +https://github.com/scim-im/scim/commit/bdeff0b45eda + +--- src/scim_pointer.h.orig 2008-11-02 06:42:37 UTC ++++ src/scim_pointer.h +@@ -84,7 +84,7 @@ class Pointer (public) + //!< + //!<
Initialize a new Pointer with any dumb pointer. + +- Pointer(Pointer& src) : t(0) ++ Pointer(const Pointer& src) : t(0) + { + set(src.get()); + }