diff --git a/srcpkgs/imhex/patches/fix-lfs64-musl.patch b/srcpkgs/imhex/patches/fix-lfs64-musl.patch new file mode 100644 index 00000000000..11eeaf5cf88 --- /dev/null +++ b/srcpkgs/imhex/patches/fix-lfs64-musl.patch @@ -0,0 +1,35 @@ +--- a/lib/third_party/miniaudio/include/miniaudio.h ++++ b/lib/third_party/miniaudio/include/miniaudio.h +@@ -13124,15 +13124,7 @@ + return ma_result_from_errno(err); + } + #else +-#if defined(_WIN32) || defined(__APPLE__) + *ppFile = fopen(pFilePath, pOpenMode); +-#else +- #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64 && defined(_LARGEFILE64_SOURCE) +- *ppFile = fopen64(pFilePath, pOpenMode); +- #else +- *ppFile = fopen(pFilePath, pOpenMode); +- #endif +-#endif + if (*ppFile == NULL) { + ma_result result = ma_result_from_errno(errno); + if (result == MA_SUCCESS) { +--- a/plugins/builtin/source/content/providers/disk_provider.cpp ++++ b/plugins/builtin/source/content/providers/disk_provider.cpp +@@ -43,13 +43,6 @@ + #include + #endif + +-#if defined(OS_LINUX) && !defined(OS_FREEBSD) +- #define lseek lseek64 +-#elif defined(OS_FREEBSD) +- #include +- #define DEFAULT_SECTOR_SIZE 512 +-#endif +- + namespace hex::plugin::builtin { + + bool DiskProvider::isAvailable() const { + diff --git a/srcpkgs/imhex/template b/srcpkgs/imhex/template index b10c948af3d..73b993740d0 100644 --- a/srcpkgs/imhex/template +++ b/srcpkgs/imhex/template @@ -1,7 +1,7 @@ # Template file for 'imhex' pkgname=imhex -version=1.35.4 -revision=2 +version=1.37.4 +revision=1 build_wrksrc="ImHex" build_style=cmake build_helper=qemu @@ -21,8 +21,8 @@ homepage="https://imhex.werwolv.net/" changelog="https://github.com/WerWolv/ImHex/releases" distfiles="https://github.com/WerWolv/ImHex/releases/download/v${version}/Full.Sources.tar.gz>imhex-${version}.tar.gz https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v${version}.tar.gz>imhex-patterns-${version}.tar.gz" -checksum="987188df511a01dca407c4fd398a9dbc805ef82cdf044ea27da57ec343c7d6df - 10df85b64b4c14945e43ad14b3ff95cda9ba23e47f4559b5429c2dc733fe23ed" +checksum="711481cc8dfc368d1b88f5d3e8a44d65f23fa43eb9db092599924f3a4cf1aaa2 + 541eddc8cc427d1aeb749bc455911fccc87f64a7784bd4bbc35ecb7b56c03ad5" patch_args="-Np1 -d $build_wrksrc" python_version=3