From owner-svn-ports-head@freebsd.org Fri Jul 7 16:33:59 2017 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 048B4DA737E; Fri, 7 Jul 2017 16:33:59 +0000 (UTC) (envelope-from sunpoet@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 D23F6812FD; Fri, 7 Jul 2017 16:33:58 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v67GXvMv097163; Fri, 7 Jul 2017 16:33:57 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v67GXv0t097161; Fri, 7 Jul 2017 16:33:57 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201707071633.v67GXv0t097161@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Fri, 7 Jul 2017 16:33:57 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r445277 - in head/textproc/sdcv: . files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/textproc/sdcv: . files X-SVN-Commit-Revision: 445277 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.23 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: Fri, 07 Jul 2017 16:33:59 -0000 Author: sunpoet Date: Fri Jul 7 16:33:57 2017 New Revision: 445277 URL: https://svnweb.freebsd.org/changeset/ports/445277 Log: Add missing patch for Clang 3.4.1 on FreeBSD 10 - Bump PORTREVISION for package change PR: 220451 Added: head/textproc/sdcv/files/patch-bug19 (contents, props changed) Modified: head/textproc/sdcv/Makefile Modified: head/textproc/sdcv/Makefile ============================================================================== --- head/textproc/sdcv/Makefile Fri Jul 7 16:33:52 2017 (r445276) +++ head/textproc/sdcv/Makefile Fri Jul 7 16:33:57 2017 (r445277) @@ -4,6 +4,7 @@ PORTNAME= sdcv PORTVERSION= 0.5.1 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= citrin@citrin.ru Added: head/textproc/sdcv/files/patch-bug19 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/sdcv/files/patch-bug19 Fri Jul 7 16:33:57 2017 (r445277) @@ -0,0 +1,60 @@ +--- src/sdcv.cpp.orig ++++ src/sdcv.cpp +@@ -157,7 +157,7 @@ int main(int argc, char *argv[]) try { + }); + + std::list order_list; +- if (use_dict_list) { ++ if (use_dict_list != nullptr) { + for (auto &&x : bookname_to_ifo) { + gchar **p = get_impl(use_dict_list); + for (; *p != nullptr; ++p) +--- src/stardict_lib.cpp.orig ++++ src/stardict_lib.cpp +@@ -89,7 +89,6 @@ bool DictInfo::load_from_ifo_file(const std::string& ifofilename, + if (!g_str_has_prefix( + g_str_has_prefix(get_impl(buffer), (const gchar *)(utf8_bom)) ? get_impl(buffer) + 3 : get_impl(buffer), + magic_data)) { +- g_free(buffer); + return false; + } + +--- src/utils.hpp.orig ++++ src/utils.hpp +@@ -27,6 +27,14 @@ class ResourceWrapper { + } + } + ++ friend inline bool operator==(const ResourceWrapper& lhs, std::nullptr_t) noexcept { ++ return !lhs.p_; ++ } ++ ++ friend inline bool operator!=(const ResourceWrapper& lhs, std::nullptr_t) noexcept { ++ return !!lhs.p_; ++ } ++ + friend inline T *get_impl(const ResourceWrapper& rw) { + return rw.p_; + } +@@ -39,21 +47,6 @@ class ResourceWrapper { + T *p_; + + void free_resource() { if (p_) unref_res(p_); } +- +-// Helper for enabling 'if (sp)' +- struct Tester { +- Tester() {} +- private: +- void operator delete(void*); +- }; +-public: +- // enable 'if (sp)' +- operator Tester*() const { +- if (!*this) +- return 0; +- static Tester t; +- return &t; +- } + }; + + namespace glib {