commit:     6ef4204692a7b2e075ba416d17bfc8e2fe169743
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Tue Dec 23 20:29:56 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Dec 24 03:41:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ef42046

dev-libs/librepfunc: gcc-16 fix

Closes: https://bugs.gentoo.org/967127
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Part-of: https://github.com/gentoo/gentoo/pull/45142
Closes: https://github.com/gentoo/gentoo/pull/45142
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/librepfunc/files/gcc-15-fix.patch      | 36 +++++++++++++++++++++++++
 dev-libs/librepfunc/librepfunc-1.10.0-r1.ebuild | 22 +++++++++++++++
 2 files changed, 58 insertions(+)

diff --git a/dev-libs/librepfunc/files/gcc-15-fix.patch 
b/dev-libs/librepfunc/files/gcc-15-fix.patch
new file mode 100644
index 000000000000..0ecb4e487670
--- /dev/null
+++ b/dev-libs/librepfunc/files/gcc-15-fix.patch
@@ -0,0 +1,36 @@
+commit 90c9c9ba279fcd1e6a3b68a1620de76e7634f885
+Author: wirbel <[email protected]>
+Date:   Wed Dec 10 13:57:42 2025 +0100
+
+    gcc-15 fix
+
+diff --git a/StrToInt.cpp b/StrToInt.cpp
+index a38192d..fb8f1a0 100644
+--- a/StrToInt.cpp
++++ b/StrToInt.cpp
+@@ -31,10 +31,8 @@ std::intmax_t StrToIntT(const std::basic_string<T>& s, 
size_t* pos, size_t base,
+         }
+      catch(const std::exception& e) {
+         std::cerr << f
+-               << ": ERROR: cannot convert '"
+-               << (const T*)s.c_str()
+-               << "' to integer: "
+-               << (const T*)e.what() << std::endl;
++               << ": ERROR: cannot convert to integer: "
++               << e.what() << std::endl;
+         return err;
+         }
+      }
+diff --git a/StrToWstr.cpp b/StrToWstr.cpp
+index 3493335..026439e 100644
+--- a/StrToWstr.cpp
++++ b/StrToWstr.cpp
+@@ -9,6 +9,8 @@
+ 
+ /* NOTE: this code needs to be modified in future,
+  *       as C++17 deprecated std::codecvt_utf8
++ *
++ * https://www.geeksforgeeks.org/cpp/wcstombs-function-in-c-stl/
+  */
+ 
+ std::string WStrToStr(std::wstring ws) {

diff --git a/dev-libs/librepfunc/librepfunc-1.10.0-r1.ebuild 
b/dev-libs/librepfunc/librepfunc-1.10.0-r1.ebuild
new file mode 100644
index 000000000000..404d0f50aadf
--- /dev/null
+++ b/dev-libs/librepfunc/librepfunc-1.10.0-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A collection of functions, classes and so on, for vdr plugins"
+HOMEPAGE="https://github.com/wirbel-at-vdr-portal/librepfunc";
+SRC_URI="https://github.com/wirbel-at-vdr-portal/librepfunc/archive/refs/tags/${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+
+PATCHES=(
+       "${FILESDIR}/${P}-makefile.patch"
+       "${FILESDIR}/gcc-15-fix.patch"
+)
+
+src_install() {
+       emake DESTDIR="${D}" libdir="/usr/$(get_libdir)/" 
pkgconfigdir="/usr/$(get_libdir)/pkgconfig" install
+       einstalldocs
+}

Reply via email to