From owner-svn-ports-head@freebsd.org Tue Jan 24 14:00:36 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 1F3CACC0AC8; Tue, 24 Jan 2017 14:00:36 +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 mx1.freebsd.org (Postfix) with ESMTPS id D435AE35; Tue, 24 Jan 2017 14:00:35 +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 v0OE0Yio038841; Tue, 24 Jan 2017 14:00:34 GMT (envelope-from jbeich@FreeBSD.org) Received: (from jbeich@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0OE0YXZ038837; Tue, 24 Jan 2017 14:00:34 GMT (envelope-from jbeich@FreeBSD.org) Message-Id: <201701241400.v0OE0YXZ038837@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jbeich set sender to jbeich@FreeBSD.org using -f From: Jan Beich Date: Tue, 24 Jan 2017 14:00:34 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432339 - in head/graphics/sekrit-twc-zimg: . 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-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: Tue, 24 Jan 2017 14:00:36 -0000 Author: jbeich Date: Tue Jan 24 14:00:34 2017 New Revision: 432339 URL: https://svnweb.freebsd.org/changeset/ports/432339 Log: graphics/sekrit-twc-zimg: update to 2.4 Changes: https://github.com/sekrit-twc/zimg/blob/release-2.4/ChangeLog ABI: https://people.freebsd.org/~jbeich/compat_reports/zimg/2.3_to_2.4/compat_report.html MFH: 2017Q1 Added: head/graphics/sekrit-twc-zimg/files/extra-patch-src_zimg_api_zimg.cpp (contents, props changed) Modified: head/graphics/sekrit-twc-zimg/Makefile (contents, props changed) head/graphics/sekrit-twc-zimg/distinfo (contents, props changed) head/graphics/sekrit-twc-zimg/files/patch-test_resize_resize__impl__test.cpp (contents, props changed) Modified: head/graphics/sekrit-twc-zimg/Makefile ============================================================================== --- head/graphics/sekrit-twc-zimg/Makefile Tue Jan 24 13:48:30 2017 (r432338) +++ head/graphics/sekrit-twc-zimg/Makefile Tue Jan 24 14:00:34 2017 (r432339) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= zimg -PORTVERSION= 2.3 +PORTVERSION= 2.4 DISTVERSIONPREFIX= release- CATEGORIES= graphics PKGNAMEPREFIX= ${GH_ACCOUNT}- @@ -21,6 +21,8 @@ CONFLICTS_INSTALL= zimg-[0-9]* # include USES= autoreconf compiler:c++11-lib gmake libtool pathfix EXTRACT_AFTER_ARGS= --exclude test/extra +EXTRA_PATCHES+= ${EXTRA_PATCHES_${OPSYS}_${OSREL}} +EXTRA_PATCHES_FreeBSD_10.3= ${PATCHDIR}/extra-patch-src_zimg_api_zimg.cpp GNU_CONFIGURE= yes CPPFLAGS+= -D_GLIBCXX_USE_C99 -D_GLIBCXX_USE_C99_MATH_TR1 \ -D_DECLARE_C99_LDBL_MATH # XXX ports/193528 Modified: head/graphics/sekrit-twc-zimg/distinfo ============================================================================== --- head/graphics/sekrit-twc-zimg/distinfo Tue Jan 24 13:48:30 2017 (r432338) +++ head/graphics/sekrit-twc-zimg/distinfo Tue Jan 24 14:00:34 2017 (r432339) @@ -1,3 +1,3 @@ -TIMESTAMP = 1475114874 -SHA256 (sekrit-twc-zimg-release-2.3_GH0.tar.gz) = 09962385f986dbcfd8ed6160cdafc2bc57bef8c6bfb3ca3a4bcaa482f09c06fa -SIZE (sekrit-twc-zimg-release-2.3_GH0.tar.gz) = 188682 +TIMESTAMP = 1485025143 +SHA256 (sekrit-twc-zimg-release-2.4_GH0.tar.gz) = 996ea0e446df6ff4d6cb9c04a77d60978eca47c32d3785cd63fe8c29a9523d1f +SIZE (sekrit-twc-zimg-release-2.4_GH0.tar.gz) = 193791 Added: head/graphics/sekrit-twc-zimg/files/extra-patch-src_zimg_api_zimg.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/graphics/sekrit-twc-zimg/files/extra-patch-src_zimg_api_zimg.cpp Tue Jan 24 14:00:34 2017 (r432339) @@ -0,0 +1,62 @@ +FreeBSD 10.3 lacks __cxa_thread_atexit, so revert +https://github.com/sekrit-twc/zimg/commit/7e47d8d2a892 + +--- src/zimg/api/zimg.cpp.orig 2017-01-21 18:59:03 UTC ++++ src/zimg/api/zimg.cpp +@@ -1,6 +1,5 @@ + #include + #include +-#include + #include + #include + #include +@@ -31,7 +30,7 @@ constexpr unsigned API_VERSION_2_2 = ZIM + #define STRIDE_ALIGNMENT_ASSERT(x) zassert_d(!(x) || (x) % zimg::ALIGNMENT == 0, "buffer stride not aligned") + + thread_local zimg_error_code_e g_last_error = ZIMG_ERROR_SUCCESS; +-thread_local std::string g_last_error_msg; ++thread_local char g_last_error_msg[1024]; + + constexpr unsigned VERSION_INFO[] = { 2, 4, 0 }; + +@@ -43,19 +42,10 @@ T *assert_dynamic_type(U *ptr) noexcept + return static_cast(ptr); + } + +-void clear_last_error_message() noexcept +-{ +- g_last_error_msg.clear(); +- g_last_error_msg.shrink_to_fit(); +-} +- + void record_exception_message(const zimg::error::Exception &e) noexcept + { +- try { +- g_last_error_msg = e.what(); +- } catch (const std::bad_alloc &) { +- clear_last_error_message(); +- } ++ strncpy(g_last_error_msg, e.what(), sizeof(g_last_error_msg) - 1); ++ g_last_error_msg[sizeof(g_last_error_msg) - 1] = '\0'; + } + + zimg_error_code_e handle_exception(std::exception_ptr eptr) noexcept +@@ -438,7 +428,7 @@ unsigned zimg_get_api_version(unsigned * + zimg_error_code_e zimg_get_last_error(char *err_msg, size_t n) + { + if (err_msg && n) { +- std::strncpy(err_msg, g_last_error_msg.c_str(), n); ++ strncpy(err_msg, g_last_error_msg, n); + err_msg[n - 1] = '\0'; + } + +@@ -447,8 +437,8 @@ zimg_error_code_e zimg_get_last_error(ch + + void zimg_clear_last_error(void) + { ++ g_last_error_msg[0] = '\0'; + g_last_error = ZIMG_ERROR_SUCCESS; +- clear_last_error_message(); + } + + unsigned zimg_select_buffer_mask(unsigned count) Modified: head/graphics/sekrit-twc-zimg/files/patch-test_resize_resize__impl__test.cpp ============================================================================== --- head/graphics/sekrit-twc-zimg/files/patch-test_resize_resize__impl__test.cpp Tue Jan 24 13:48:30 2017 (r432338) +++ head/graphics/sekrit-twc-zimg/files/patch-test_resize_resize__impl__test.cpp Tue Jan 24 14:00:34 2017 (r432339) @@ -23,11 +23,11 @@ test/resize/resize_impl_test.cpp:37:3: e ^ 1 error generated. ---- test/resize/resize_impl_test.cpp.orig 2016-01-22 18:12:28 UTC +--- test/resize/resize_impl_test.cpp.orig 2017-01-21 18:59:03 UTC +++ test/resize/resize_impl_test.cpp -@@ -34,7 +34,7 @@ void test_case(const zimg::PixelFormat & - set_shift(shift). - set_subwidth(subwidth_factor * (horizontal ? src_w : src_h)).create(); +@@ -35,7 +35,7 @@ void test_case(const zimg::PixelFormat & + .set_subwidth(subwidth_factor * (horizontal ? src_w : src_h)) + .create(); - ASSERT_TRUE(filter); + ASSERT_TRUE(static_cast(filter));