From 24869531d2519147f47d54ad27157d373e54f550 Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Sat, 27 Sep 2025 05:31:28 +0300 Subject: [PATCH] app-editors/imhex-1.37.4-r4 with llvm21 --- app-editors/imhex/Manifest | 2 - .../imhex/files/cmake_boost_regex.patch | 2 +- app-editors/imhex/files/cmake_mbedtls.patch | 6 +- .../files/imhex-1.37.4-fix-cmake-edlib.patch | 8 + .../files/imhex-1.37.4-includes-fixup.patch | 20 +++ .../files/imhex-1.37.4-update-libfmt.patch | 154 ++++++++++++++++++ app-editors/imhex/imhex-1.37.1-r1.ebuild | 130 --------------- app-editors/imhex/imhex-1.37.4-r2.ebuild | 1 - app-editors/imhex/imhex-1.37.4-r3.ebuild | 1 - ....37.4-r1.ebuild => imhex-1.37.4-r4.ebuild} | 15 +- .../md5-cache/app-editors/imhex-1.37.1-r1 | 4 +- .../md5-cache/app-editors/imhex-1.37.4-r1 | 4 +- .../md5-cache/app-editors/imhex-1.37.4-r2 | 17 ++ .../md5-cache/app-editors/imhex-1.37.4-r3 | 17 ++ .../md5-cache/app-editors/imhex-1.37.4-r4 | 17 ++ 15 files changed, 254 insertions(+), 144 deletions(-) create mode 100644 app-editors/imhex/files/imhex-1.37.4-fix-cmake-edlib.patch create mode 100644 app-editors/imhex/files/imhex-1.37.4-includes-fixup.patch create mode 100644 app-editors/imhex/files/imhex-1.37.4-update-libfmt.patch delete mode 100644 app-editors/imhex/imhex-1.37.1-r1.ebuild delete mode 120000 app-editors/imhex/imhex-1.37.4-r2.ebuild delete mode 120000 app-editors/imhex/imhex-1.37.4-r3.ebuild rename app-editors/imhex/{imhex-1.37.4-r1.ebuild => imhex-1.37.4-r4.ebuild} (87%) create mode 100644 metadata/md5-cache/app-editors/imhex-1.37.4-r2 create mode 100644 metadata/md5-cache/app-editors/imhex-1.37.4-r3 create mode 100644 metadata/md5-cache/app-editors/imhex-1.37.4-r4 diff --git a/app-editors/imhex/Manifest b/app-editors/imhex/Manifest index 0fa7db7..ace7081 100644 --- a/app-editors/imhex/Manifest +++ b/app-editors/imhex/Manifest @@ -1,4 +1,2 @@ -DIST imhex-1.37.1.gh.tar.gz 33722261 BLAKE2B b6cd8c03fe058a2b30d12dfa6ee89ff69ec5baa9857c3c94ad0489364b646f616f133b03affbf4706dec40ddac27753d6ba4581c55b3150a519e640e0a2ad525 SHA512 2a57fcf6d38e533a4db1b007e1e5e74748db2b36dad9dd67880bbabdeb1d107b020673e1ee59befa225b7eed30bec093577c0c35f95427f49ded058e4cdfb44c DIST imhex-1.37.4.gh.tar.gz 33717255 BLAKE2B 11f93ca310ddec8ec7d074d5450a02f3147d40aaa92387fbe7fce3be08445e129bbd7336d923e971a2f7f2b6df778a6210de73060cb91abe85161e7fd88588b7 SHA512 07ecc4776f3b82583f1137d1615ab8e73985a550203a127b084c0dfa1e6d7cdae4a558067968c726970c07bcd6fe85fb42302a18ed8b352e789becc5fa113768 -DIST imhex-patterns-1.37.1.gh.tar.gz 13620614 BLAKE2B ab909571ef060b664db523e3258e7bfda58c96a2a126a9b8a4eed933c2f6bf8e21e4836d0997757b6d0aae9746a613599a351a12dd573ebb7283999be7954838 SHA512 1e7bcf6798597d1cb12b521ecbc646b200cb71fc4569d7d9da10b5432c8ae658f8bf2e78aabb27ebd2dc2b154153f2e9dab40af7396e57c682d76f5da8ff87a6 DIST imhex-patterns-1.37.4.gh.tar.gz 13620727 BLAKE2B c8699f9f26faeae784b4c4cb14b682d0f4d0c544ef8c9596b8688c19e6066d7101a7c32979ee807cd4a05225fe2548a8759b1fd0a07c578ea5c0fcdb9f104e69 SHA512 3d2f0dee58ad1e9261be71247dad41ed4437d65dc01fd37ff8b3a517ebf23e5a1123f51ae84f9c3b911d7c0b0c6044ffb580fc86f869f4c1ec1667a989125911 diff --git a/app-editors/imhex/files/cmake_boost_regex.patch b/app-editors/imhex/files/cmake_boost_regex.patch index be20b2c..f76ea6d 100644 --- a/app-editors/imhex/files/cmake_boost_regex.patch +++ b/app-editors/imhex/files/cmake_boost_regex.patch @@ -5,7 +5,7 @@ if (USE_SYSTEM_BOOST) - find_package(Boost REQUIRED) -+ find_package(Boost REQUIRED COMPONENTS regex) ++ find_package(Boost REQUIRED COMPONENTS regex) set(BOOST_LIBRARIES Boost::regex) else() add_subdirectory(${THIRD_PARTY_LIBS_FOLDER}/boost ${CMAKE_CURRENT_BINARY_DIR}/boost EXCLUDE_FROM_ALL) diff --git a/app-editors/imhex/files/cmake_mbedtls.patch b/app-editors/imhex/files/cmake_mbedtls.patch index 62263f1..8e3e8b6 100644 --- a/app-editors/imhex/files/cmake_mbedtls.patch +++ b/app-editors/imhex/files/cmake_mbedtls.patch @@ -12,9 +12,9 @@ -FIND_LIBRARY(MBEDTLS_LIBRARY NAMES mbedtls libmbedtls libmbedx509) -FIND_LIBRARY(MBEDX509_LIBRARY NAMES mbedx509 libmbedx509) -FIND_LIBRARY(MBEDCRYPTO_LIBRARY NAMES mbedcrypto libmbedcrypto) -+FIND_LIBRARY(MBEDTLS_LIBRARY NAMES mbedtls mbedtls3 libmbedtls libmbedx509) -+FIND_LIBRARY(MBEDX509_LIBRARY NAMES mbedx509 mbedx5093 libmbedx509) -+FIND_LIBRARY(MBEDCRYPTO_LIBRARY NAMES mbedcrypto mbedcrypto3 libmbedcrypto) ++FIND_LIBRARY(MBEDTLS_LIBRARY NAMES mbedtls libmbedtls mbedtls-3 libmbedx509) ++FIND_LIBRARY(MBEDX509_LIBRARY NAMES mbedx509 libmbedx509 mbedx509-3) ++FIND_LIBRARY(MBEDCRYPTO_LIBRARY NAMES mbedcrypto libmbedcrypto mbedcrypto-3) IF(MBEDTLS_INCLUDE_DIR AND MBEDTLS_LIBRARY AND MBEDX509_LIBRARY AND MBEDCRYPTO_LIBRARY) SET(MBEDTLS_FOUND TRUE) diff --git a/app-editors/imhex/files/imhex-1.37.4-fix-cmake-edlib.patch b/app-editors/imhex/files/imhex-1.37.4-fix-cmake-edlib.patch new file mode 100644 index 0000000..8e55b90 --- /dev/null +++ b/app-editors/imhex/files/imhex-1.37.4-fix-cmake-edlib.patch @@ -0,0 +1,8 @@ +--- a/lib/third_party/edlib/CMakeLists.txt ++++ b/lib/third_party/edlib/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.2 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.5 FATAL_ERROR) + project(edlib VERSION 1.2.6) + + option(EDLIB_ENABLE_INSTALL "Generate the install target" ON) diff --git a/app-editors/imhex/files/imhex-1.37.4-includes-fixup.patch b/app-editors/imhex/files/imhex-1.37.4-includes-fixup.patch new file mode 100644 index 0000000..fce6fdf --- /dev/null +++ b/app-editors/imhex/files/imhex-1.37.4-includes-fixup.patch @@ -0,0 +1,20 @@ +--- a/main/gui/source/messaging/linux.cpp ++++ b/main/gui/source/messaging/linux.cpp +@@ -3,3 +3,5 @@ ++#define _GNU_SOURCE 1 ++#include + #include + #include + #include +--- a/lib/libimhex/include/hex/helpers/http_requests_native.hpp ++++ b/lib/libimhex/include/hex/helpers/http_requests_native.hpp +@@ -5,2 +5,3 @@ + #include + #include ++ #include +--- a/lib/external/libromfs/lib/include/romfs/romfs.hpp ++++ b/lib/external/libromfs/lib/include/romfs/romfs.hpp +@@ -7,2 +7,3 @@ + #include + #include ++#include diff --git a/app-editors/imhex/files/imhex-1.37.4-update-libfmt.patch b/app-editors/imhex/files/imhex-1.37.4-update-libfmt.patch new file mode 100644 index 0000000..e2a11eb --- /dev/null +++ b/app-editors/imhex/files/imhex-1.37.4-update-libfmt.patch @@ -0,0 +1,154 @@ +# From: Myself and (mostly) WerWolv +# Fixes https://github.com/WerWolv/ImHex/issues/2225 +--- a/lib/external/pattern_language/lib/source/pl/lib/std/time.cpp ++++ b/lib/external/pattern_language/lib/source/pl/lib/std/time.cpp +@@ -11,7 +11,7 @@ + + namespace pl::lib::libstd::time { + +- static u128 packTMValue(std::tm tm) { ++ static u128 packTMValue(const std::tm &tm) { + return + (u128(tm.tm_sec) << 0) | + (u128(tm.tm_min) << 8) | +@@ -57,9 +57,10 @@ namespace pl::lib::libstd::time { + auto time = time_t(params[0].toUnsigned()); + + try { +- auto localTime = fmt::localtime(time); ++ auto localTime = std::localtime(&time); ++ if (localTime == nullptr) return u128(0); + +- return { packTMValue(localTime) }; ++ return { packTMValue(*localTime) }; + } catch (const fmt::format_error&) { + return u128(0); + } +@@ -70,9 +71,10 @@ namespace pl::lib::libstd::time { + auto time = time_t(params[0].toUnsigned()); + + try { +- auto gmTime = fmt::gmtime(time); ++ auto gmTime = std::gmtime(&time); ++ if (gmTime == nullptr) return u128(0); + +- return { packTMValue(gmTime) }; ++ return { packTMValue(*gmTime) }; + } catch (const fmt::format_error&) { + return u128(0); + } +--- a/lib/libimhex/source/helpers/logger.cpp ++++ b/lib/libimhex/source/helpers/logger.cpp +@@ -83,7 +83,8 @@ namespace hex::log { + + for (const auto &path : paths::Logs.all()) { + wolv::io::fs::createDirectories(path); +- s_loggerFile = wolv::io::File(path / hex::format("{0:%Y%m%d_%H%M%S}.log", fmt::localtime(std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()))), wolv::io::File::Mode::Create); ++ time_t time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); ++ s_loggerFile = wolv::io::File(path / hex::format("{0:%Y%m%d_%H%M%S}.log", *std::localtime(&time)), wolv::io::File::Mode::Create); + s_loggerFile.disableBuffering(); + + if (s_loggerFile.isValid()) { +@@ -120,7 +121,8 @@ namespace hex::log { + + + void printPrefix(FILE *dest, const fmt::text_style &ts, const std::string &level, const char *projectName) { +- const auto now = fmt::localtime(std::chrono::system_clock::to_time_t(std::chrono::system_clock::now())); ++ const auto time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); ++ const auto now = *std::localtime(&time); + + fmt::print(dest, "[{0:%H:%M:%S}] ", now); + +--- a/main/gui/source/init/splash_window.cpp ++++ b/main/gui/source/init/splash_window.cpp +@@ -111,7 +111,7 @@ namespace hex::init { + const auto now = std::chrono::system_clock::now(); + const auto time = std::chrono::system_clock::to_time_t(now); + +- return fmt::localtime(time); ++ return *std::localtime(&time); + }(); + + for (const auto &colorConfig : highlightConfig) { +--- a/plugins/builtin/source/content/data_inspector.cpp ++++ b/plugins/builtin/source/content/data_inspector.cpp +@@ -621,11 +621,16 @@ namespace hex::plugin::builtin { + ContentRegistry::DataInspector::add("hex.builtin.inspector.time32", sizeof(u32), [](auto buffer, auto endian, auto style) { + std::ignore = style; + +- auto endianAdjustedTime = hex::changeEndianness(*reinterpret_cast(buffer.data()), endian); ++ time_t endianAdjustedTime = hex::changeEndianness(*reinterpret_cast(buffer.data()), endian); + + std::string value; + try { +- value = hex::format("{0:%a, %d.%m.%Y %H:%M:%S}", fmt::localtime(endianAdjustedTime)); ++ auto time = std::localtime(&endianAdjustedTime); ++ if (time == nullptr) { ++ value = "Invalid"; ++ } else { ++ value = hex::format("{0:%a, %d.%m.%Y %H:%M:%S}", *time); ++ } + } catch (fmt::format_error &) { + value = "Invalid"; + } +@@ -636,11 +641,16 @@ namespace hex::plugin::builtin { + ContentRegistry::DataInspector::add("hex.builtin.inspector.time64", sizeof(u64), [](auto buffer, auto endian, auto style) { + std::ignore = style; + +- auto endianAdjustedTime = hex::changeEndianness(*reinterpret_cast(buffer.data()), endian); ++ time_t endianAdjustedTime = hex::changeEndianness(*reinterpret_cast(buffer.data()), endian); + + std::string value; + try { +- value = hex::format("{0:%a, %d.%m.%Y %H:%M:%S}", fmt::localtime(endianAdjustedTime)); ++ auto time = std::localtime(&endianAdjustedTime); ++ if (time == nullptr) { ++ value = "Invalid"; ++ } else { ++ value = hex::format("{0:%a, %d.%m.%Y %H:%M:%S}", *time); ++ } + } catch (fmt::format_error &) { + value = "Invalid"; + } +@@ -653,11 +663,16 @@ namespace hex::plugin::builtin { + ContentRegistry::DataInspector::add("hex.builtin.inspector.time", sizeof(time_t), [](auto buffer, auto endian, auto style) { + std::ignore = style; + +- auto endianAdjustedTime = hex::changeEndianness(*reinterpret_cast(buffer.data()), endian); ++ time_t endianAdjustedTime = hex::changeEndianness(*reinterpret_cast(buffer.data()), endian); + + std::string value; + try { +- value = hex::format("{0:%a, %d.%m.%Y %H:%M:%S}", fmt::localtime(endianAdjustedTime)); ++ auto time = std::localtime(&endianAdjustedTime); ++ if (time == nullptr) { ++ value = "Invalid"; ++ } else { ++ value = hex::format("{0:%a, %d.%m.%Y %H:%M:%S}", *time); ++ } + } catch (fmt::format_error &e) { + value = "Invalid"; + } +--- a/plugins/builtin/source/content/providers/file_provider.cpp ++++ b/plugins/builtin/source/content/providers/file_provider.cpp +@@ -135,14 +135,14 @@ namespace hex::plugin::builtin { + if (m_fileStats.has_value()) { + std::string creationTime, accessTime, modificationTime; + +- try { creationTime = hex::format("{:%Y-%m-%d %H:%M:%S}", fmt::localtime(m_fileStats->st_ctime)); } +- catch (const std::exception&) { creationTime = "???"; } ++ try { creationTime = hex::format("{:%Y-%m-%d %H:%M:%S}", *std::localtime(&m_fileStats->st_ctime)); } ++ catch (const fmt::format_error&) { creationTime = "???"; } + +- try { accessTime = hex::format("{:%Y-%m-%d %H:%M:%S}", fmt::localtime(m_fileStats->st_atime)); } +- catch (const std::exception&) { accessTime = "???"; } ++ try { accessTime = hex::format("{:%Y-%m-%d %H:%M:%S}", *std::localtime(&m_fileStats->st_atime)); } ++ catch (const fmt::format_error&) { accessTime = "???"; } + +- try { modificationTime = hex::format("{:%Y-%m-%d %H:%M:%S}", fmt::localtime(m_fileStats->st_mtime)); } +- catch (const std::exception&) { modificationTime = "???"; } ++ try { modificationTime = hex::format("{:%Y-%m-%d %H:%M:%S}", *std::localtime(&m_fileStats->st_mtime)); } ++ catch (const fmt::format_error&) { modificationTime = "???"; } + + result.emplace_back("hex.builtin.provider.file.creation"_lang, creationTime); + result.emplace_back("hex.builtin.provider.file.access"_lang, accessTime); diff --git a/app-editors/imhex/imhex-1.37.1-r1.ebuild b/app-editors/imhex/imhex-1.37.1-r1.ebuild deleted file mode 100644 index 780f4f8..0000000 --- a/app-editors/imhex/imhex-1.37.1-r1.ebuild +++ /dev/null @@ -1,130 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LLVM_COMPAT=( {15..20} ) - -inherit cmake llvm-r1 toolchain-funcs flag-o-matic xdg-utils - -DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight" -HOMEPAGE="https://github.com/WerWolv/ImHex" -SRC_URI=" - https://github.com/WerWolv/ImHex/releases/download/v${PV}/Full.Sources.tar.gz -> ${P}.gh.tar.gz - https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v${PV}.tar.gz -> ${PN}-patterns-${PV}.gh.tar.gz -" -S="${WORKDIR}/ImHex" -S_PATTERNS="${WORKDIR}/ImHex-Patterns-ImHex-v${PV}" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64" -IUSE="+system-llvm test lto +desktop-portal lz4 boost" -RESTRICT="!test? ( test )" - -PATCHES=( - # If virtual/dotnet-sdk is installed on your system, then cmake - # will use it at some point and try to access internet. - # Because it did not cause any issue, we can disable it - "${FILESDIR}/remove_dotnet.patch" - # Correct the cmake MbedTLS search call - "${FILESDIR}/cmake_mbedtls.patch" - # Set boost components to regex - "${FILESDIR}/cmake_boost_regex.patch" -) - -DOCS+=( LICENSE PLUGINS.md ) - -DEPEND=" - app-arch/bzip2 - app-arch/xz-utils - app-arch/zstd:= - app-forensics/yara:= - >=dev-cpp/nlohmann_json-3.10.2 - boost? ( dev-libs/boost ) - dev-libs/capstone:= - >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] - >=dev-libs/libfmt-8.0.0:= - media-libs/fontconfig - media-libs/freetype - >=media-libs/glfw-3.4[X] - media-libs/glm - media-libs/libglvnd - net-libs/mbedtls:= - net-misc/curl - sys-apps/file - sys-libs/zlib - virtual/libiconv - virtual/libintl -" -RDEPEND="${DEPEND}" -BDEPEND=" - app-admin/chrpath - gnome-base/librsvg - lz4? ( app-arch/lz4 ) - system-llvm? ( llvm-core/llvm ) -" - -pkg_pretend() { - if tc-is-gcc && [[ $(gcc-major-version) -lt 14 ]]; then - die "${PN} requires GCC 14 or newer" - fi -} - -src_unpack() { - default - - mv "${S_PATTERNS}" "${S}/ImHex-Patterns" -} - -src_configure() { - # Building ImHex with -Werror=strict-aliasing gives a failed build - # for tests/algorithms/source/endian.cpp, and ImHex usually has pretty - # clean build (without warnings), so it should be safe to do - filter-flags -Werror=strict-aliasing - - if use test; then - sed -ie "s/tests EXCLUDE_FROM_ALL/tests ALL/" "${S}/CMakeLists.txt" - fi - - local mycmakeargs=( - -D IMHEX_PLUGINS_IN_SHARE=OFF \ - -D IMHEX_STRIP_RELEASE=OFF \ - -D IMHEX_OFFLINE_BUILD=ON \ - -D IMHEX_IGNORE_BAD_CLONE=ON \ - -D IMHEX_PATTERNS_PULL_MASTER=OFF \ - -D IMHEX_IGNORE_BAD_COMPILER=OFF \ - -D IMHEX_USE_GTK_FILE_PICKER=$(usex !desktop-portal) \ - -D IMHEX_DISABLE_STACKTRACE=OFF \ - -D IMHEX_BUNDLE_DOTNET=OFF \ - -D IMHEX_ENABLE_LTO=$(usex lto) \ - -D IMHEX_USE_DEFAULT_BUILD_SETTINGS=OFF \ - -D IMHEX_STRICT_WARNINGS=OFF \ - -D IMHEX_STATIC_LINK_PLUGINS=OFF \ - -D IMHEX_ENABLE_UNITY_BUILD=OFF \ - -D IMHEX_ENABLE_STD_ASSERTS=OFF \ - -D IMHEX_ENABLE_UNIT_TESTS=$(usex test) \ - -D IMHEX_ENABLE_PRECOMPILED_HEADERS=OFF \ - -D IMHEX_COMPRESS_DEBUG_INFO=OFF \ - -D IMHEX_VERSION="${PV}" \ - -D PROJECT_VERSION="${PV}" \ - -D USE_SYSTEM_BOOST=$(usex boost) \ - -D USE_SYSTEM_CAPSTONE=ON \ - -D USE_SYSTEM_FMT=ON \ - -D USE_SYSTEM_LLVM=$(usex system-llvm) \ - -D USE_SYSTEM_NFD=ON \ - -D USE_SYSTEM_NLOHMANN_JSON=ON \ - -D USE_SYSTEM_YARA=ON \ - ) - - cmake_src_configure -} - -pkg_postinst() { - xdg_desktop_database_update - xdg_mimeinfo_database_update -} -pkg_postrm() { - xdg_desktop_database_update - xdg_mimeinfo_database_update -} diff --git a/app-editors/imhex/imhex-1.37.4-r2.ebuild b/app-editors/imhex/imhex-1.37.4-r2.ebuild deleted file mode 120000 index 2c40edc..0000000 --- a/app-editors/imhex/imhex-1.37.4-r2.ebuild +++ /dev/null @@ -1 +0,0 @@ -imhex-1.37.4-r1.ebuild \ No newline at end of file diff --git a/app-editors/imhex/imhex-1.37.4-r3.ebuild b/app-editors/imhex/imhex-1.37.4-r3.ebuild deleted file mode 120000 index deafd19..0000000 --- a/app-editors/imhex/imhex-1.37.4-r3.ebuild +++ /dev/null @@ -1 +0,0 @@ -imhex-1.37.4-r2.ebuild \ No newline at end of file diff --git a/app-editors/imhex/imhex-1.37.4-r1.ebuild b/app-editors/imhex/imhex-1.37.4-r4.ebuild similarity index 87% rename from app-editors/imhex/imhex-1.37.4-r1.ebuild rename to app-editors/imhex/imhex-1.37.4-r4.ebuild index 9d6f556..8478637 100644 --- a/app-editors/imhex/imhex-1.37.4-r1.ebuild +++ b/app-editors/imhex/imhex-1.37.4-r4.ebuild @@ -3,7 +3,7 @@ EAPI=8 -LLVM_COMPAT=( {15..20} ) +LLVM_COMPAT=( {15..21} ) inherit cmake llvm-r1 toolchain-funcs flag-o-matic xdg-utils @@ -22,6 +22,10 @@ KEYWORDS="~amd64" IUSE="+system-llvm test lto +desktop-portal lz4 boost" RESTRICT="!test? ( test )" +# Skip cmake version detection, as there are a lot of dependencies +# (that we do not use) that wants cmake < 3.5, so it prints a warning +CMAKE_QA_COMPAT_SKIP=yes + PATCHES=( # If virtual/dotnet-sdk is installed on your system, then cmake # will use it at some point and try to access internet. @@ -31,6 +35,13 @@ PATCHES=( "${FILESDIR}/cmake_mbedtls.patch" # Set boost components to regex "${FILESDIR}/cmake_boost_regex.patch" + # Temporary (until the next update) patch + "${FILESDIR}/${P}-update-libfmt.patch" + # Temporary patch (until the next update) + "${FILESDIR}/${P}-fix-cmake-edlib.patch" + + # Maybe temporary, had issues with llvm21 + "${FILESDIR}/${P}-includes-fixup.patch" ) DOCS+=( LICENSE PLUGINS.md ) @@ -44,7 +55,7 @@ DEPEND=" boost? ( dev-libs/boost ) >=dev-libs/capstone-5.0.3:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] - >=dev-libs/libfmt-11.1.3:= + >=dev-libs/libfmt-11.0.2:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] diff --git a/metadata/md5-cache/app-editors/imhex-1.37.1-r1 b/metadata/md5-cache/app-editors/imhex-1.37.1-r1 index 5e9f75f..150755c 100644 --- a/metadata/md5-cache/app-editors/imhex-1.37.1-r1 +++ b/metadata/md5-cache/app-editors/imhex-1.37.1-r1 @@ -5,7 +5,7 @@ DESCRIPTION=A hex editor for reverse engineers, programmers, and eyesight EAPI=8 HOMEPAGE=https://github.com/WerWolv/ImHex INHERIT=cmake llvm-r1 toolchain-funcs flag-o-matic xdg-utils -IUSE=+system-llvm test lto +desktop-portal lz4 boost +llvm_slot_19 llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_20 +IUSE=+system-llvm test lto +desktop-portal lz4 boost +llvm_slot_20 llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_19 KEYWORDS=~amd64 LICENSE=GPL-2 RDEPEND=app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= app-forensics/yara:= >=dev-cpp/nlohmann_json-3.10.2 boost? ( dev-libs/boost ) dev-libs/capstone:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] >=dev-libs/libfmt-8.0.0:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] media-libs/glm media-libs/libglvnd net-libs/mbedtls:= net-misc/curl sys-apps/file sys-libs/zlib virtual/libiconv virtual/libintl @@ -13,5 +13,5 @@ REQUIRED_USE=^^ ( llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_ RESTRICT=!test? ( test ) SLOT=0 SRC_URI=https://github.com/WerWolv/ImHex/releases/download/v1.37.1/Full.Sources.tar.gz -> imhex-1.37.1.gh.tar.gz https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v1.37.1.tar.gz -> imhex-patterns-1.37.1.gh.tar.gz -_eclasses_=toolchain-funcs 6afdb6107430c1832ca7e16aacbf8fa1 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic 16d3941ed2dc39f4819368ae51bc0b72 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake c0c9c21d01b8a96d2d736c554daedc57 llvm-utils 846280a994c1843d9c21248c188bd147 llvm-r1 0bd586d3786517cd63802a520b404dda +_eclasses_=toolchain-funcs a0b29008c671a362b505f96fa80ce9c0 flag-o-matic a7afe42e95fb46ce9691605acfb24672 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 460729dc36f68cf03b044bc1d367e34a llvm-utils 64536677f4b4365e25e9b739163bed58 llvm-r1 5a1fde9f55315992645818a877837527 _md5_=388b2ee44f83da7a81e07514b0e3e1a6 diff --git a/metadata/md5-cache/app-editors/imhex-1.37.4-r1 b/metadata/md5-cache/app-editors/imhex-1.37.4-r1 index 8fe9dc2..4e8f5a8 100644 --- a/metadata/md5-cache/app-editors/imhex-1.37.4-r1 +++ b/metadata/md5-cache/app-editors/imhex-1.37.4-r1 @@ -5,7 +5,7 @@ DESCRIPTION=A hex editor for reverse engineers, programmers, and eyesight EAPI=8 HOMEPAGE=https://github.com/WerWolv/ImHex INHERIT=cmake llvm-r1 toolchain-funcs flag-o-matic xdg-utils -IUSE=+system-llvm test lto +desktop-portal lz4 boost +llvm_slot_19 llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_20 +IUSE=+system-llvm test lto +desktop-portal lz4 boost +llvm_slot_20 llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_19 KEYWORDS=~amd64 LICENSE=GPL-2 RDEPEND=app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= >=app-forensics/yara-4.2.0:= >=dev-cpp/nlohmann_json-3.10.2 boost? ( dev-libs/boost ) >=dev-libs/capstone-5.0.3:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] >=dev-libs/libfmt-11.1.3:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] media-libs/glm media-libs/libglvnd net-libs/mbedtls:= net-misc/curl sys-apps/file sys-libs/zlib virtual/libiconv virtual/libintl @@ -13,5 +13,5 @@ REQUIRED_USE=^^ ( llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_ RESTRICT=!test? ( test ) SLOT=0 SRC_URI=https://github.com/WerWolv/ImHex/releases/download/v1.37.4/Full.Sources.tar.gz -> imhex-1.37.4.gh.tar.gz https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v1.37.4.tar.gz -> imhex-patterns-1.37.4.gh.tar.gz -_eclasses_=toolchain-funcs 6afdb6107430c1832ca7e16aacbf8fa1 multilib b2a329026f2e404e9e371097dda47f96 flag-o-matic 16d3941ed2dc39f4819368ae51bc0b72 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake c0c9c21d01b8a96d2d736c554daedc57 llvm-utils 846280a994c1843d9c21248c188bd147 llvm-r1 0bd586d3786517cd63802a520b404dda +_eclasses_=toolchain-funcs a0b29008c671a362b505f96fa80ce9c0 flag-o-matic a7afe42e95fb46ce9691605acfb24672 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 460729dc36f68cf03b044bc1d367e34a llvm-utils 64536677f4b4365e25e9b739163bed58 llvm-r1 5a1fde9f55315992645818a877837527 _md5_=8990951ed26e8dd27cb0a75382abca21 diff --git a/metadata/md5-cache/app-editors/imhex-1.37.4-r2 b/metadata/md5-cache/app-editors/imhex-1.37.4-r2 new file mode 100644 index 0000000..4e8f5a8 --- /dev/null +++ b/metadata/md5-cache/app-editors/imhex-1.37.4-r2 @@ -0,0 +1,17 @@ +BDEPEND=app-admin/chrpath gnome-base/librsvg lz4? ( app-arch/lz4 ) system-llvm? ( llvm-core/llvm ) app-alternatives/ninja >=dev-build/cmake-3.20.5 +DEFINED_PHASES=compile configure install postinst postrm prepare pretend setup test unpack +DEPEND=app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= >=app-forensics/yara-4.2.0:= >=dev-cpp/nlohmann_json-3.10.2 boost? ( dev-libs/boost ) >=dev-libs/capstone-5.0.3:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] >=dev-libs/libfmt-11.1.3:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] media-libs/glm media-libs/libglvnd net-libs/mbedtls:= net-misc/curl sys-apps/file sys-libs/zlib virtual/libiconv virtual/libintl +DESCRIPTION=A hex editor for reverse engineers, programmers, and eyesight +EAPI=8 +HOMEPAGE=https://github.com/WerWolv/ImHex +INHERIT=cmake llvm-r1 toolchain-funcs flag-o-matic xdg-utils +IUSE=+system-llvm test lto +desktop-portal lz4 boost +llvm_slot_20 llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_19 +KEYWORDS=~amd64 +LICENSE=GPL-2 +RDEPEND=app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= >=app-forensics/yara-4.2.0:= >=dev-cpp/nlohmann_json-3.10.2 boost? ( dev-libs/boost ) >=dev-libs/capstone-5.0.3:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] >=dev-libs/libfmt-11.1.3:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] media-libs/glm media-libs/libglvnd net-libs/mbedtls:= net-misc/curl sys-apps/file sys-libs/zlib virtual/libiconv virtual/libintl +REQUIRED_USE=^^ ( llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_19 llvm_slot_20 ) +RESTRICT=!test? ( test ) +SLOT=0 +SRC_URI=https://github.com/WerWolv/ImHex/releases/download/v1.37.4/Full.Sources.tar.gz -> imhex-1.37.4.gh.tar.gz https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v1.37.4.tar.gz -> imhex-patterns-1.37.4.gh.tar.gz +_eclasses_=toolchain-funcs a0b29008c671a362b505f96fa80ce9c0 flag-o-matic a7afe42e95fb46ce9691605acfb24672 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 460729dc36f68cf03b044bc1d367e34a llvm-utils 64536677f4b4365e25e9b739163bed58 llvm-r1 5a1fde9f55315992645818a877837527 +_md5_=8990951ed26e8dd27cb0a75382abca21 diff --git a/metadata/md5-cache/app-editors/imhex-1.37.4-r3 b/metadata/md5-cache/app-editors/imhex-1.37.4-r3 new file mode 100644 index 0000000..4e8f5a8 --- /dev/null +++ b/metadata/md5-cache/app-editors/imhex-1.37.4-r3 @@ -0,0 +1,17 @@ +BDEPEND=app-admin/chrpath gnome-base/librsvg lz4? ( app-arch/lz4 ) system-llvm? ( llvm-core/llvm ) app-alternatives/ninja >=dev-build/cmake-3.20.5 +DEFINED_PHASES=compile configure install postinst postrm prepare pretend setup test unpack +DEPEND=app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= >=app-forensics/yara-4.2.0:= >=dev-cpp/nlohmann_json-3.10.2 boost? ( dev-libs/boost ) >=dev-libs/capstone-5.0.3:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] >=dev-libs/libfmt-11.1.3:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] media-libs/glm media-libs/libglvnd net-libs/mbedtls:= net-misc/curl sys-apps/file sys-libs/zlib virtual/libiconv virtual/libintl +DESCRIPTION=A hex editor for reverse engineers, programmers, and eyesight +EAPI=8 +HOMEPAGE=https://github.com/WerWolv/ImHex +INHERIT=cmake llvm-r1 toolchain-funcs flag-o-matic xdg-utils +IUSE=+system-llvm test lto +desktop-portal lz4 boost +llvm_slot_20 llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_19 +KEYWORDS=~amd64 +LICENSE=GPL-2 +RDEPEND=app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= >=app-forensics/yara-4.2.0:= >=dev-cpp/nlohmann_json-3.10.2 boost? ( dev-libs/boost ) >=dev-libs/capstone-5.0.3:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] >=dev-libs/libfmt-11.1.3:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] media-libs/glm media-libs/libglvnd net-libs/mbedtls:= net-misc/curl sys-apps/file sys-libs/zlib virtual/libiconv virtual/libintl +REQUIRED_USE=^^ ( llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_19 llvm_slot_20 ) +RESTRICT=!test? ( test ) +SLOT=0 +SRC_URI=https://github.com/WerWolv/ImHex/releases/download/v1.37.4/Full.Sources.tar.gz -> imhex-1.37.4.gh.tar.gz https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v1.37.4.tar.gz -> imhex-patterns-1.37.4.gh.tar.gz +_eclasses_=toolchain-funcs a0b29008c671a362b505f96fa80ce9c0 flag-o-matic a7afe42e95fb46ce9691605acfb24672 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 460729dc36f68cf03b044bc1d367e34a llvm-utils 64536677f4b4365e25e9b739163bed58 llvm-r1 5a1fde9f55315992645818a877837527 +_md5_=8990951ed26e8dd27cb0a75382abca21 diff --git a/metadata/md5-cache/app-editors/imhex-1.37.4-r4 b/metadata/md5-cache/app-editors/imhex-1.37.4-r4 new file mode 100644 index 0000000..b0a9e1c --- /dev/null +++ b/metadata/md5-cache/app-editors/imhex-1.37.4-r4 @@ -0,0 +1,17 @@ +BDEPEND=app-admin/chrpath gnome-base/librsvg lz4? ( app-arch/lz4 ) system-llvm? ( llvm-core/llvm ) app-alternatives/ninja >=dev-build/cmake-3.20.5 +DEFINED_PHASES=compile configure install postinst postrm prepare pretend setup test unpack +DEPEND=app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= >=app-forensics/yara-4.2.0:= >=dev-cpp/nlohmann_json-3.10.2 boost? ( dev-libs/boost ) >=dev-libs/capstone-5.0.3:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] >=dev-libs/libfmt-11.0.2:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] media-libs/glm media-libs/libglvnd net-libs/mbedtls:= net-misc/curl sys-apps/file sys-libs/zlib virtual/libiconv virtual/libintl +DESCRIPTION=A hex editor for reverse engineers, programmers, and eyesight +EAPI=8 +HOMEPAGE=https://github.com/WerWolv/ImHex +INHERIT=cmake llvm-r1 toolchain-funcs flag-o-matic xdg-utils +IUSE=+system-llvm test lto +desktop-portal lz4 boost +llvm_slot_20 llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_19 llvm_slot_21 +KEYWORDS=~amd64 +LICENSE=GPL-2 +RDEPEND=app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= >=app-forensics/yara-4.2.0:= >=dev-cpp/nlohmann_json-3.10.2 boost? ( dev-libs/boost ) >=dev-libs/capstone-5.0.3:= >=dev-libs/nativefiledialog-extended-1.2.1[desktop-portal?] >=dev-libs/libfmt-11.0.2:= media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] media-libs/glm media-libs/libglvnd net-libs/mbedtls:= net-misc/curl sys-apps/file sys-libs/zlib virtual/libiconv virtual/libintl +REQUIRED_USE=^^ ( llvm_slot_15 llvm_slot_16 llvm_slot_17 llvm_slot_18 llvm_slot_19 llvm_slot_20 llvm_slot_21 ) +RESTRICT=!test? ( test ) +SLOT=0 +SRC_URI=https://github.com/WerWolv/ImHex/releases/download/v1.37.4/Full.Sources.tar.gz -> imhex-1.37.4.gh.tar.gz https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v1.37.4.tar.gz -> imhex-patterns-1.37.4.gh.tar.gz +_eclasses_=toolchain-funcs a0b29008c671a362b505f96fa80ce9c0 flag-o-matic a7afe42e95fb46ce9691605acfb24672 multiprocessing 1e32df7deee68372153dca65f4a7c21f ninja-utils 2df4e452cea39a9ec8fb543ce059f8d6 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 460729dc36f68cf03b044bc1d367e34a llvm-utils 64536677f4b4365e25e9b739163bed58 llvm-r1 5a1fde9f55315992645818a877837527 +_md5_=9b71f33e2b62fbdc261917ed9b2aff81