summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2024-03-25 21:07:07 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2024-03-25 21:07:28 +0100
commitd7ce3a914c4c749f64fbbf5ee0a0ea8f2aee7674 (patch)
treefa921cd421fed414fa99bfe159ba6d59454a507d /media-gfx/geeqie
parentkde-plasma/powerdevil: Add IUSE caps description (diff)
downloadgentoo-d7ce3a914c4c749f64fbbf5ee0a0ea8f2aee7674.tar.gz
gentoo-d7ce3a914c4c749f64fbbf5ee0a0ea8f2aee7674.tar.bz2
gentoo-d7ce3a914c4c749f64fbbf5ee0a0ea8f2aee7674.zip
media-gfx/geeqie: fix musl compilation again
Closes: https://bugs.gentoo.org/927682 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'media-gfx/geeqie')
-rw-r--r--media-gfx/geeqie/files/geeqie-2.3-locale.patch11
-rw-r--r--media-gfx/geeqie/geeqie-2.3.ebuild4
2 files changed, 14 insertions, 1 deletions
diff --git a/media-gfx/geeqie/files/geeqie-2.3-locale.patch b/media-gfx/geeqie/files/geeqie-2.3-locale.patch
new file mode 100644
index 000000000000..05f8bdcfdaea
--- /dev/null
+++ b/media-gfx/geeqie/files/geeqie-2.3-locale.patch
@@ -0,0 +1,11 @@
+diff -Naur geeqie-2.3.orig/src/misc.cc geeqie-2.3/src/misc.cc
+--- geeqie-2.3.orig/src/misc.cc 2024-03-06 16:56:22.000000000 +0100
++++ geeqie-2.3/src/misc.cc 2024-03-25 21:03:18.655779225 +0100
+@@ -23,6 +23,7 @@
+ #include <sys/stat.h>
+ #include <unistd.h>
+
++#include <clocale>
+ #include <cstdio>
+ #include <cstdlib>
+ #include <cstring>
diff --git a/media-gfx/geeqie/geeqie-2.3.ebuild b/media-gfx/geeqie/geeqie-2.3.ebuild
index 2b9b96fbe6a9..dae22816e4fd 100644
--- a/media-gfx/geeqie/geeqie-2.3.ebuild
+++ b/media-gfx/geeqie/geeqie-2.3.ebuild
@@ -49,7 +49,9 @@ BDEPEND="
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
-PATCHES=( "${FILESDIR}"/${PN}-2.3-test-ancillary.patch )
+PATCHES=( "${FILESDIR}"/${PN}-2.3-test-ancillary.patch
+ "${FILESDIR}"/${P}-locale.patch
+ )
pkg_setup() {
# Do not require setting LUA_SINGLE_TARGET if lua is not used