commit:     2dad7c8ef9771e02fe25e86c648da23eda3a6ac3
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Sat Sep 30 16:38:11 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  1 08:39:39 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2dad7c8e

media-gfx/gphotofs: Fix call to undeclared function setlocale

And update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/896214
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33139
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/gphotofs-0.5-fix-build-clang16.patch     | 11 ++++++++++
 media-gfx/gphotofs/gphotofs-0.5-r2.ebuild          | 25 ++++++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/media-gfx/gphotofs/files/gphotofs-0.5-fix-build-clang16.patch 
b/media-gfx/gphotofs/files/gphotofs-0.5-fix-build-clang16.patch
new file mode 100644
index 000000000000..0a88035cc60f
--- /dev/null
+++ b/media-gfx/gphotofs/files/gphotofs-0.5-fix-build-clang16.patch
@@ -0,0 +1,11 @@
+Bug: https://bugs.gentoo.org/896214
+--- a/gphotofs.c
++++ b/gphotofs.c
+@@ -26,6 +26,7 @@
+ #include <errno.h>
+ #include <fcntl.h>
+ #include <sys/time.h>
++#include <locale.h>
+ 
+ /*
+  * Static variables set by command line arguments.

diff --git a/media-gfx/gphotofs/gphotofs-0.5-r2.ebuild 
b/media-gfx/gphotofs/gphotofs-0.5-r2.ebuild
new file mode 100644
index 000000000000..5fe6dbff0ba6
--- /dev/null
+++ b/media-gfx/gphotofs/gphotofs-0.5-r2.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="FUSE file system for interfacing with digital cameras using 
gphoto2"
+HOMEPAGE="http://www.gphoto.org/";
+SRC_URI="mirror://sourceforge/gphoto/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+       dev-libs/glib:2
+       media-libs/libgphoto2:=
+       sys-fs/fuse:0="
+DEPEND="${RDEPEND}"
+BDEPEND="
+       sys-devel/gettext
+       virtual/pkgconfig"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-0.5-fix-build-clang16.patch
+)

Reply via email to