From owner-svn-ports-all@freebsd.org Mon Jan 8 17:06:42 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 6C831E78162; Mon, 8 Jan 2018 17:06:42 +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 2AE1C2DBA; Mon, 8 Jan 2018 17:06:42 +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 396332754; Mon, 8 Jan 2018 17:06:41 +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 w08H6f8X090431; Mon, 8 Jan 2018 17:06:41 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w08H6foI090430; Mon, 8 Jan 2018 17:06:41 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201801081706.w08H6foI090430@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Mon, 8 Jan 2018 17:06:41 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458453 - head/editors/abiword/files X-SVN-Group: ports-head X-SVN-Commit-Author: jbeich X-SVN-Commit-Paths: head/editors/abiword/files X-SVN-Commit-Revision: 458453 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: Mon, 08 Jan 2018 17:06:42 -0000 Author: jbeich Date: Mon Jan 8 17:06:40 2018 New Revision: 458453 URL: https://svnweb.freebsd.org/changeset/ports/458453 Log: editors/abiword: unbreak build with Clang 6 (C++14 by default) xap_Dialog.cpp:270:17: error: cast from pointer to smaller type 'char' loses information *pWindowName = (char) NULL; ^~~~~~~~~~~ ap_UnixApp.cpp:866:29: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] if(0 == strcmp (suffix, "."G_MODULE_SUFFIX)) ^ ie_exp_XSL-FO.cpp:1454:13: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] buf += " "x"=\""; \ ^ ie_exp_LaTeX.cpp:1332:43: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] #define SUB(a,who) case a: subst = "\\(\\"who"\\)"; return true; ^ RealmProtocol.cpp:16:2: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint32_t' (aka 'unsigned int') [-Wc++11-narrowing] RPV1_PACKET_VARIABLE, /* user joined */ ^~~~~~~~~~~~~~~~~~~~ RealmProtocol.cpp:10:30: note: expanded from macro 'RPV1_PACKET_VARIABLE' #define RPV1_PACKET_VARIABLE -1 ^~ RealmProtocol.cpp:16:2: note: insert an explicit cast to silence this issue RPV1_PACKET_VARIABLE, /* user joined */ ^~~~~~~~~~~~~~~~~~~~ static_cast( ) RealmProtocol.cpp:10:30: note: expanded from macro 'RPV1_PACKET_VARIABLE' #define RPV1_PACKET_VARIABLE -1 ^~ soa_soup.cpp:166:11: error: no viable conversion from returned value of type 'soa::GenericPtr' (aka 'shared_ptr') to function return type 'bool' return soa::GenericPtr(); ^~~~~~~~~~~~~~~~~ Reported by: antoine (via bug 224669) Obtained from: upstream (partially) Added: head/editors/abiword/files/patch-c++11 (contents, props changed) Added: head/editors/abiword/files/patch-c++11 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/abiword/files/patch-c++11 Mon Jan 8 17:06:40 2018 (r458453) @@ -0,0 +1,100 @@ +xap_Dialog.cpp:270:17: error: cast from pointer to smaller type 'char' loses information + *pWindowName = (char) NULL; + ^~~~~~~~~~~ +ap_UnixApp.cpp:866:29: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] + if(0 == strcmp (suffix, "."G_MODULE_SUFFIX)) + ^ +ie_exp_XSL-FO.cpp:1454:13: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] + buf += " "x"=\""; \ + ^ +ie_exp_LaTeX.cpp:1332:43: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] +#define SUB(a,who) case a: subst = "\\(\\"who"\\)"; return true; + ^ +RealmProtocol.cpp:16:2: error: constant expression evaluates to -1 which cannot be narrowed to type 'uint32_t' (aka 'unsigned int') [-Wc++11-narrowing] + RPV1_PACKET_VARIABLE, /* user joined */ + ^~~~~~~~~~~~~~~~~~~~ +RealmProtocol.cpp:10:30: note: expanded from macro 'RPV1_PACKET_VARIABLE' +#define RPV1_PACKET_VARIABLE -1 + ^~ +RealmProtocol.cpp:16:2: note: insert an explicit cast to silence this issue + RPV1_PACKET_VARIABLE, /* user joined */ + ^~~~~~~~~~~~~~~~~~~~ + static_cast( ) +RealmProtocol.cpp:10:30: note: expanded from macro 'RPV1_PACKET_VARIABLE' +#define RPV1_PACKET_VARIABLE -1 + ^~ +soa_soup.cpp:166:11: error: no viable conversion from returned value of type 'soa::GenericPtr' (aka 'shared_ptr') to function return type 'bool' + return soa::GenericPtr(); + ^~~~~~~~~~~~~~~~~ + +https://github.com/AbiWord/abiword/commit/a83e6f50dbd5 +https://github.com/AbiWord/abiword/commit/5623a94c756c + +--- plugins/collab/backends/service/xp/RealmProtocol.cpp.orig 2009-05-27 05:41:59 UTC ++++ plugins/collab/backends/service/xp/RealmProtocol.cpp +@@ -6,8 +6,8 @@ namespace protocolv1 { + + #define MAX_PACKET_DATA_SIZE 64*1024*1024 + +-#define RPV1_PACKET_NONEXISTENT -2 +-#define RPV1_PACKET_VARIABLE -1 ++#define RPV1_PACKET_NONEXISTENT uint32_t(-2) ++#define RPV1_PACKET_VARIABLE uint32_t(-1) + + static uint32_t body_size[6] = { + RPV1_PACKET_NONEXISTENT, /* 0: reserved */ +--- plugins/collab/backends/service/xp/soa_soup.cpp.orig 2009-09-29 13:58:11 UTC ++++ plugins/collab/backends/service/xp/soa_soup.cpp +@@ -163,7 +163,7 @@ namespace soup_soa { + + static bool _invoke(const std::string& /*url*/, const soa::method_invocation& /*mi*/, SoaSoupSession& sess, std::string& result) { + if (!sess.m_session || !sess.m_msg ) +- return soa::GenericPtr(); ++ return false; + + guint status = soup_session_send_message (sess.m_session, sess.m_msg); + if (!(SOUP_STATUS_IS_SUCCESSFUL (status) || +--- plugins/latex/xp/ie_exp_LaTeX.cpp.orig 2013-04-07 13:53:03 UTC ++++ plugins/latex/xp/ie_exp_LaTeX.cpp +@@ -1329,7 +1329,7 @@ void s_LaTeX_Listener::_outputData(const UT_UCSChar * + m_pie->write(sBuf.c_str(),sBuf.size()); + } + +-#define SUB(a,who) case a: subst = "\\(\\"who"\\)"; return true; ++#define SUB(a,who) case a: subst = "\\(\\" who"\\)"; return true; + #define SUBd(a,who) case a: subst = who; return true; + static bool _convertLettersToSymbols(char c, const char *& subst) + { +--- plugins/xslfo/xp/ie_exp_XSL-FO.cpp.orig 2013-04-07 13:53:03 UTC ++++ plugins/xslfo/xp/ie_exp_XSL-FO.cpp +@@ -1451,7 +1451,7 @@ void s_XSL_FO_Listener::_openSection(PT_AttrPropIndex + { \ + UT_UTF8String esc = szValue; \ + esc.escapeXML(); \ +- buf += " "x"=\""; \ ++ buf += " " x"=\""; \ + buf += esc.utf8_str(); \ + buf += "\""; \ + } +--- src/af/xap/xp/xap_Dialog.cpp.orig 2013-04-07 13:53:03 UTC ++++ src/af/xap/xp/xap_Dialog.cpp +@@ -267,7 +267,7 @@ XAP_Dialog_Modeless::BuildWindowName(char * pWindowNam + // This function constructs and returns the window name of a modeless dialog by + // concatenating the active frame with the dialog name + +- *pWindowName = (char) NULL; ++ *pWindowName = '\0'; + UT_UTF8String wn = UT_UTF8String(pDialogName); + + XAP_Frame* pFrame = getActiveFrame(); +--- src/wp/ap/gtk/ap_UnixApp.cpp.orig 2013-04-07 13:53:03 UTC ++++ src/wp/ap/gtk/ap_UnixApp.cpp +@@ -863,7 +863,7 @@ static bool is_so (const char *file) { + if (len < (strlen(G_MODULE_SUFFIX) + 2)) // this is ".so" and at least one char for the filename + return false; + const char *suffix = file+(len-3); +- if(0 == strcmp (suffix, "."G_MODULE_SUFFIX)) ++ if(0 == strcmp (suffix, "." G_MODULE_SUFFIX)) + return true; + return false; + }