summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2024-01-23 22:18:06 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2024-01-23 22:18:44 +0100
commit252054c821aa8caf844a1c61b79fc42deff53afc (patch)
tree451e76716f150c524733f6db501f0d55aa30e5a6 /media-gfx/geeqie
parentprofiles/features/musl/package.mask: mask net-misc/mcproxy (diff)
downloadgentoo-252054c821aa8caf844a1c61b79fc42deff53afc.tar.gz
gentoo-252054c821aa8caf844a1c61b79fc42deff53afc.tar.bz2
gentoo-252054c821aa8caf844a1c61b79fc42deff53afc.zip
media-gfx/geeqie: fix compilation with musl
Missing locale.h include, already fixed usptream in master Closes: https://bugs.gentoo.org/921193 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'media-gfx/geeqie')
-rw-r--r--media-gfx/geeqie/files/geeqie-2.1-locale.patch22
-rw-r--r--media-gfx/geeqie/geeqie-2.1-r1.ebuild1
2 files changed, 23 insertions, 0 deletions
diff --git a/media-gfx/geeqie/files/geeqie-2.1-locale.patch b/media-gfx/geeqie/files/geeqie-2.1-locale.patch
new file mode 100644
index 000000000000..10ae6b0169c5
--- /dev/null
+++ b/media-gfx/geeqie/files/geeqie-2.1-locale.patch
@@ -0,0 +1,22 @@
+From 01d8762d45a2f3871cfd09176edbccdbe73a6767 Mon Sep 17 00:00:00 2001
+From: Thomas Klausner <wiz@gatalith.at>
+Date: Sat, 17 Jun 2023 18:47:28 +0200
+Subject: [PATCH] Add missing header for setlocale().
+
+---
+ src/misc.cc | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/misc.cc b/src/misc.cc
+index 9942605ce..a2ad3eb69 100644
+--- a/src/misc.cc
++++ b/src/misc.cc
+@@ -18,6 +18,8 @@
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
++#include <locale.h>
++
+ #include "main.h"
+ #include "misc.h"
+
diff --git a/media-gfx/geeqie/geeqie-2.1-r1.ebuild b/media-gfx/geeqie/geeqie-2.1-r1.ebuild
index 9acadcda8fe6..e19752f02bbd 100644
--- a/media-gfx/geeqie/geeqie-2.1-r1.ebuild
+++ b/media-gfx/geeqie/geeqie-2.1-r1.ebuild
@@ -46,6 +46,7 @@ BDEPEND="
REQUIRED_USE="lua? ( ${LUA_REQUIRED_USE} )"
PATCHES=(
+ "${FILESDIR}"/${P}-locale.patch
"${FILESDIR}"/${P}-lua_hpp.patch
"${FILESDIR}"/${P}-exiv2-0.28.0.patch
)