From nobody Sun Jan 16 15:38:22 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E0546195BD16; Sun, 16 Jan 2022 15:38:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JcK1p62c2z3Q4T; Sun, 16 Jan 2022 15:38:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642347502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Lt/T1ike9UdJ2++ihHy8LjikjxmCMzrKvlPCEmQzsxM=; b=Rp1NZn/+FEhwHPqnGwQZgsXoJg5lDE08+hZLkjVoHv1NpBoa73Z80soJ1E4lXNoNz6odIX Dw2ofWF1yfYMfHunaZpJmtL5edid4cnfxte9gac7Uf7oCYzNResV2JuqCJx2K8NeMq7PqL UNfFTbaPx1Fl9jnYQptERoQFDi9biavDtMuN62i7/y0HVuGX6c5ey73VRbpH8HC9SfiYtx yjfVBawIjwZgXnv6/mEk2s7Yy8PqaZyaJ8v5ArxLkleR5mDZsS6ZnljJu2xatk6ZQCO6Tx jr2QhOcxTuIaF+jOaGx+93zS/37OWgmV8g3jTEepebKn9koc7FoMgYBJ4230Sw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AF56A1CCD6; Sun, 16 Jan 2022 15:38:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 20GFcMOb026885; Sun, 16 Jan 2022 15:38:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20GFcM3o026884; Sun, 16 Jan 2022 15:38:22 GMT (envelope-from git) Date: Sun, 16 Jan 2022 15:38:22 GMT Message-Id: <202201161538.20GFcM3o026884@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: MANTANI Nobutaka Subject: git: 0e1b02a99a52 - main - editors/imhex: Update to 1.13.2 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nobutaka X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0e1b02a99a52cdfd705912e569f0c9158e810265 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642347502; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Lt/T1ike9UdJ2++ihHy8LjikjxmCMzrKvlPCEmQzsxM=; b=pkM/cbvjlPhckrr1ST9XFo/FRQ1E+C7y95TX//sxtymUzs/lzu3l0S//1uz5vdv9T349FO Iu4kWP8sLjzGGvKeohdbxhKh+HuLwBuWjpJKs3Zd7x4NQGLiDKfAzmqlTTN1TpsH7jsQbf p5Xs1MPjQoY2kcaBAPeS6EK3UX9tzHqCLF4Bn0EhZEoRIYbq11YEiGEGXslySXLQCkv+qm KcZ3OBNkhbIEnXsjeovOcGbqakFU/JbmbsQfjXhKG1V0XpfhcptSzWX5jDVyKhVbb/LMDy ab0/1i4TUhvzmIDrriXmmzVS3mWLFkFaUtPJ+oMndbWnlWtmKyMUrj9ySsmabg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642347502; a=rsa-sha256; cv=none; b=Qw+N3lgS0s2Pd3L64Ex14f6bMvwoMtSvMb1G2bzPaCxBQfSnR2W4MN6Jc4n45CgKVbt5+I g+VhaehpolplDhN/L14zcZXDgD0+0YmJ/4xvWyjOtIVU2rUck3ISc8t1n8GQXC1oh8OWt+ KKp055Wl45ZPtnuLdYq2z6Dj6csciEKtpti9wApQue7wMZRNLntOE776MzBdT2qBdurJUf pRtwNruI240I3AOGY6cB++nAOXPKWK+iNL+A5jXASn31iVR5jKFi5o0nIrd0rYFR7rT5jh bVLk6RmNpxVjU727+jxFDqwieL6QBISnGWMJFbDWauEdZm2g4vRySeZXmBBO4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nobutaka: URL: https://cgit.FreeBSD.org/ports/commit/?id=0e1b02a99a52cdfd705912e569f0c9158e810265 commit 0e1b02a99a52cdfd705912e569f0c9158e810265 Author: MANTANI Nobutaka AuthorDate: 2022-01-16 15:36:43 +0000 Commit: MANTANI Nobutaka CommitDate: 2022-01-16 15:37:37 +0000 editors/imhex: Update to 1.13.2 --- editors/imhex/Makefile | 10 +++++++--- editors/imhex/distinfo | 8 +++++--- editors/imhex/files/patch-CMakeLists.txt | 10 ++++++++++ ...external_libromfs_generator_include_embedder.hpp | 21 +++++++++++++++++++++ ...uiltin_source_content_pl__builtin__functions.cpp | 16 ++++++++-------- ...-plugins_libimhex_include_hex_api_keybinding.hpp | 11 +++++++++++ ...h-plugins_libimhex_include_hex_helpers_utils.hpp | 6 +++--- ...mhex_include_hex_pattern__language_ast__node.hpp | 20 ++++++++++++++++++++ editors/imhex/files/patch-source_window_window.cpp | 6 +++--- 9 files changed, 88 insertions(+), 20 deletions(-) diff --git a/editors/imhex/Makefile b/editors/imhex/Makefile index 65d069e4aa7d..43980a09ae9f 100644 --- a/editors/imhex/Makefile +++ b/editors/imhex/Makefile @@ -1,5 +1,5 @@ PORTNAME= imhex -PORTVERSION= 1.12.1 +PORTVERSION= 1.13.2 DISTVERSIONPREFIX= v CATEGORIES= editors MASTER_SITES= https://git.sr.ht/~danyspin97/xdgpp/blob/f01f810714443d0f10c333d4d1d9c0383be41375/:xdg @@ -16,7 +16,8 @@ NOT_FOR_ARCHS= i386 powerpc NOT_FOR_ARCHS_REASON= __uint128_t and __int128_t are not supported EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \ btzy-nativefiledialog-extended-${GH_TAG_NATIVEFILEDIALOG}_GH0${EXTRACT_SUFX} \ - fmtlib-fmt-${GH_TAG_FMT}_GH0${EXTRACT_SUFX} + fmtlib-fmt-${GH_TAG_FMT}_GH0${EXTRACT_SUFX} \ + WerWolv-libromfs-${GH_TAG_LIBROMFS}_GH0${EXTRACT_SUFX} BUILD_DEPENDS= glm>0:math/glm \ nlohmann-json>0:devel/nlohmann-json \ @@ -39,9 +40,11 @@ USE_GITHUB= yes GH_ACCOUNT= WerWolv GH_PROJECT= ImHex GH_TUPLE= btzy:nativefiledialog-extended:${GH_TAG_NATIVEFILEDIALOG}:nativefiledialog \ - fmtlib:fmt:${GH_TAG_FMT}:fmt + fmtlib:fmt:${GH_TAG_FMT}:fmt \ + WerWolv:libromfs:${GH_TAG_LIBROMFS}:libromfs GH_TAG_FMT= d141cdb GH_TAG_NATIVEFILEDIALOG= 322d1bc +GH_TAG_LIBROMFS= 0842d22 CMAKE_ARGS= -DUSE_SYSTEM_CAPSTONE=ON -DUSE_SYSTEM_CURL=ON -DUSE_SYSTEM_YARA=ON -DUSE_SYSTEM_NLOHMANN_JSON=ON @@ -53,6 +56,7 @@ NLS_USES= gettext post-extract: ${CP} ${DISTDIR}/${DIST_SUBDIR}/xdg.hpp ${WRKSRC}/external/xdgpp ${CP} -R ${WRKSRC_fmt}/* ${WRKSRC}/external/fmt + ${CP} -R ${WRKSRC_libromfs}/* ${WRKSRC}/external/libromfs ${CP} -R ${WRKSRC_nativefiledialog}/* ${WRKSRC}/external/nativefiledialog post-install-DOCS-on: diff --git a/editors/imhex/distinfo b/editors/imhex/distinfo index daa2804126b2..95a505a3b088 100644 --- a/editors/imhex/distinfo +++ b/editors/imhex/distinfo @@ -1,9 +1,11 @@ -TIMESTAMP = 1640528524 +TIMESTAMP = 1642316602 SHA256 (imhex/xdg.hpp) = 2e08ce74adb71ff9b9aa9e1c999733fccd4b00967b9cf0c0e51dbf049392a9ec SIZE (imhex/xdg.hpp) = 7674 -SHA256 (imhex/WerWolv-ImHex-v1.12.1_GH0.tar.gz) = 139679a7d7b5ad22dc2e54bc238b95f757cd468c69da94d10a43504d589851f1 -SIZE (imhex/WerWolv-ImHex-v1.12.1_GH0.tar.gz) = 8785197 +SHA256 (imhex/WerWolv-ImHex-v1.13.2_GH0.tar.gz) = 77fa014f365488fa529ce159ad6a4094790235b2e917a283f04d9c12a24c036b +SIZE (imhex/WerWolv-ImHex-v1.13.2_GH0.tar.gz) = 8823496 SHA256 (imhex/btzy-nativefiledialog-extended-322d1bc_GH0.tar.gz) = 1950e8870068b64f862da0dcaebabaeae9a8d0edacae80ec2208a2df9c1e360f SIZE (imhex/btzy-nativefiledialog-extended-322d1bc_GH0.tar.gz) = 400379 SHA256 (imhex/fmtlib-fmt-d141cdb_GH0.tar.gz) = 06dc2fa0236b1b334b93f7e272cbb29554b05a19fd0a9b52039976e8b5dcd725 SIZE (imhex/fmtlib-fmt-d141cdb_GH0.tar.gz) = 805703 +SHA256 (imhex/WerWolv-libromfs-0842d22_GH0.tar.gz) = 794604b0685c3c1286a602e50598d6a1f09508945cd07e94e9f23172aa6d7f40 +SIZE (imhex/WerWolv-libromfs-0842d22_GH0.tar.gz) = 3534 diff --git a/editors/imhex/files/patch-CMakeLists.txt b/editors/imhex/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..f0c812247c58 --- /dev/null +++ b/editors/imhex/files/patch-CMakeLists.txt @@ -0,0 +1,10 @@ +--- CMakeLists.txt.orig 2022-01-16 06:54:48 UTC ++++ CMakeLists.txt +@@ -20,7 +20,6 @@ set(PLUGINS + detectOS() + detectArch() + setDefaultBuiltTypeIfUnset() +-detectBadClone() + + # Add bundled dependencies + add_subdirectory(plugins/libimhex) diff --git a/editors/imhex/files/patch-external_libromfs_generator_include_embedder.hpp b/editors/imhex/files/patch-external_libromfs_generator_include_embedder.hpp new file mode 100644 index 000000000000..0f844e938536 --- /dev/null +++ b/editors/imhex/files/patch-external_libromfs_generator_include_embedder.hpp @@ -0,0 +1,21 @@ +--- external/libromfs/generator/include/embedder.hpp.orig 2022-01-16 07:27:44 UTC ++++ external/libromfs/generator/include/embedder.hpp +@@ -5,13 +5,13 @@ R"embedder( + + #define RESOURCE(name, path) \ + __asm__ ( \ +- ".global _" #name "\n" \ +- ".global _" #name "_size\n" \ +- "_" #name ":\n" \ ++ ".global " #name "\n" \ ++ ".global " #name "_size\n" \ ++ #name ":\n" \ + ".incbin \"" path "\"\n" \ + ".align 8\n" \ +- "_" #name "_size:\n" \ +- ".int _" #name "_size - _" #name " - 1\n" \ ++ #name "_size:\n" \ ++ ".int " #name "_size - " #name " - 1\n" \ + ".align 8\n" \ + ) + diff --git a/editors/imhex/files/patch-plugins_builtin_source_content_pl__builtin__functions.cpp b/editors/imhex/files/patch-plugins_builtin_source_content_pl__builtin__functions.cpp index f21a728f65a6..0082c2fd9d08 100644 --- a/editors/imhex/files/patch-plugins_builtin_source_content_pl__builtin__functions.cpp +++ b/editors/imhex/files/patch-plugins_builtin_source_content_pl__builtin__functions.cpp @@ -1,11 +1,11 @@ ---- plugins/builtin/source/content/pl_builtin_functions.cpp.orig 2021-12-16 17:57:41 UTC +--- plugins/builtin/source/content/pl_builtin_functions.cpp.orig 2022-01-12 08:17:14 UTC +++ plugins/builtin/source/content/pl_builtin_functions.cpp -@@ -204,7 +204,7 @@ namespace hex::plugin::builtin { - const auto signIndex = index >> (sizeof(index) * 8 - 1); - const auto absIndex = (index ^ signIndex) - signIndex; - #else -- const auto absIndex = std::abs(index); -+ const auto absIndex = std::abs((long)index); - #endif +@@ -209,7 +209,7 @@ namespace hex::plugin::builtin { + const auto signIndex = index >> (sizeof(index) * 8 - 1); + const auto absIndex = (index ^ signIndex) - signIndex; + #else +- const auto absIndex = std::abs(index); ++ const auto absIndex = std::abs((long)index); + #endif if (absIndex > string.length()) diff --git a/editors/imhex/files/patch-plugins_libimhex_include_hex_api_keybinding.hpp b/editors/imhex/files/patch-plugins_libimhex_include_hex_api_keybinding.hpp new file mode 100644 index 000000000000..f7859e965038 --- /dev/null +++ b/editors/imhex/files/patch-plugins_libimhex_include_hex_api_keybinding.hpp @@ -0,0 +1,11 @@ +--- plugins/libimhex/include/hex/api/keybinding.hpp.orig 2022-01-16 14:56:46 UTC ++++ plugins/libimhex/include/hex/api/keybinding.hpp +@@ -7,6 +7,8 @@ + #include + #include + ++#include ++ + struct ImGuiWindow; + + namespace hex { diff --git a/editors/imhex/files/patch-plugins_libimhex_include_hex_helpers_utils.hpp b/editors/imhex/files/patch-plugins_libimhex_include_hex_helpers_utils.hpp index 99645f8e87ff..2d2e36d588d5 100644 --- a/editors/imhex/files/patch-plugins_libimhex_include_hex_helpers_utils.hpp +++ b/editors/imhex/files/patch-plugins_libimhex_include_hex_helpers_utils.hpp @@ -1,6 +1,6 @@ ---- plugins/libimhex/include/hex/helpers/utils.hpp.orig 2021-12-26 14:58:20 UTC +--- plugins/libimhex/include/hex/helpers/utils.hpp.orig 2022-01-12 08:17:14 UTC +++ plugins/libimhex/include/hex/helpers/utils.hpp -@@ -79,6 +79,12 @@ namespace hex { +@@ -85,6 +85,12 @@ namespace hex { template using SizeType = typename SizeTypeImpl::Type; @@ -13,7 +13,7 @@ template constexpr T changeEndianess(const T &value, std::endian endian) { if (endian == std::endian::native) -@@ -91,7 +97,7 @@ namespace hex { +@@ -97,7 +103,7 @@ namespace hex { SizeType swapped; diff --git a/editors/imhex/files/patch-plugins_libimhex_include_hex_pattern__language_ast__node.hpp b/editors/imhex/files/patch-plugins_libimhex_include_hex_pattern__language_ast__node.hpp new file mode 100644 index 000000000000..92d0a2210f77 --- /dev/null +++ b/editors/imhex/files/patch-plugins_libimhex_include_hex_pattern__language_ast__node.hpp @@ -0,0 +1,20 @@ +--- plugins/libimhex/include/hex/pattern_language/ast_node.hpp.orig 2022-01-12 08:17:14 UTC ++++ plugins/libimhex/include/hex/pattern_language/ast_node.hpp +@@ -13,6 +13,8 @@ + #include + #include + ++#include ++ + namespace hex::pl { + + class ASTNode; +@@ -1719,7 +1721,7 @@ namespace hex::pl { + Path m_path; + + void readVariable(Evaluator *evaluator, auto &value, PatternData *variablePattern) const { +- constexpr bool isString = std::same_as, std::string>; ++ constexpr bool isString = ranges::same_as, std::string>; + + if (variablePattern->isLocal()) { + auto &literal = evaluator->getStack()[variablePattern->getOffset()]; diff --git a/editors/imhex/files/patch-source_window_window.cpp b/editors/imhex/files/patch-source_window_window.cpp index 6d2825a995a8..3cd99b57ffac 100644 --- a/editors/imhex/files/patch-source_window_window.cpp +++ b/editors/imhex/files/patch-source_window_window.cpp @@ -1,10 +1,10 @@ ---- source/window/window.cpp.orig 2021-11-28 20:34:17 UTC +--- source/window/window.cpp.orig 2022-01-12 08:17:14 UTC +++ source/window/window.cpp -@@ -252,7 +252,6 @@ namespace hex { +@@ -279,7 +279,6 @@ namespace hex { std::signal(SIGSEGV, signalHandler); std::signal(SIGINT, signalHandler); std::signal(SIGILL, signalHandler); - std::signal(SIGABRT, signalHandler); std::signal(SIGFPE, signalHandler); - this->m_logoTexture = ImGui::LoadImageFromMemory(imhex_logo, imhex_logo_size); + auto imhexLogo = romfs::get("logo.png");