From 5170b82d6fa1e9023f2c501a68ec8842e2fcac4e Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Mon, 10 Mar 2025 19:37:10 +0100 Subject: [PATCH] media-gfx/exact-image: fix musl build Closes: https://bugs.gentoo.org/830065 Signed-off-by: Alfredo Tupone --- .../exact-image/exact-image-1.2.1-r2.ebuild | 1 + .../files/exact-image-1.0.2-dcraw.patch | 17 ++++++++++++++++- .../files/exact-image-1.2.1-dcraw.patch | 17 +++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 media-gfx/exact-image/files/exact-image-1.2.1-dcraw.patch diff --git a/media-gfx/exact-image/exact-image-1.2.1-r2.ebuild b/media-gfx/exact-image/exact-image-1.2.1-r2.ebuild index 7b43fc7fce68a..e2f00e87c330d 100644 --- a/media-gfx/exact-image/exact-image-1.2.1-r2.ebuild +++ b/media-gfx/exact-image/exact-image-1.2.1-r2.ebuild @@ -48,6 +48,7 @@ PATCHES=( "${FILESDIR}"/${P}-gcc6.patch "${FILESDIR}"/${PN}-1.0.2-g++.patch "${FILESDIR}"/${P}-libjxl-9.patch + "${FILESDIR}"/${P}-dcraw.patch ) src_prepare() { diff --git a/media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch b/media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch index ba609c294b17c..f617087de6a9f 100644 --- a/media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch +++ b/media-gfx/exact-image/files/exact-image-1.0.2-dcraw.patch @@ -1,6 +1,21 @@ --- a/codecs/dcraw.h 2020-09-10 08:42:19.905105346 +0200 +++ b/codecs/dcraw.h 2020-09-10 08:47:50.826316874 +0200 -@@ -9956,7 +9956,7 @@ +@@ -96,6 +96,14 @@ + #define ushort unsigned short + #endif + ++#undef SEEK_SET ++#undef SEEK_CUR ++#undef SEEK_END ++ ++#define SEEK_SET std::ios::beg ++#define SEEK_CUR std::ios::cur ++#define SEEK_END std::ios::end ++ + namespace dcraw { + + /* +@@ -9964,7 +9956,7 @@ strncpy (th->desc, desc, 512); strncpy (th->make, make, 64); strncpy (th->model, model, 64); diff --git a/media-gfx/exact-image/files/exact-image-1.2.1-dcraw.patch b/media-gfx/exact-image/files/exact-image-1.2.1-dcraw.patch new file mode 100644 index 0000000000000..41a0b0dfef9f1 --- /dev/null +++ b/media-gfx/exact-image/files/exact-image-1.2.1-dcraw.patch @@ -0,0 +1,17 @@ +--- a/codecs/dcraw.h 2020-09-10 08:42:19.905105346 +0200 ++++ b/codecs/dcraw.h 2020-09-10 08:47:50.826316874 +0200 +@@ -96,6 +96,14 @@ + #define ushort unsigned short + #endif + ++#undef SEEK_SET ++#undef SEEK_CUR ++#undef SEEK_END ++ ++#define SEEK_SET std::ios::beg ++#define SEEK_CUR std::ios::cur ++#define SEEK_END std::ios::end ++ + namespace dcraw { + + /*