commit:     774bdab9e44206c0e010fe546e8b05208bfd9146
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 27 19:39:10 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 27 19:39:23 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=774bdab9

net-misc/gerbera: fix build w/ >=libfmt-12

Bug: https://bugs.gentoo.org/963165
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-misc/gerbera/files/gerbera-2.6.1-libfmt-12.patch | 16 ++++++++++++++++
 net-misc/gerbera/gerbera-2.6.1.ebuild                |  6 +++++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/net-misc/gerbera/files/gerbera-2.6.1-libfmt-12.patch 
b/net-misc/gerbera/files/gerbera-2.6.1-libfmt-12.patch
new file mode 100644
index 000000000000..1438db54cae9
--- /dev/null
+++ b/net-misc/gerbera/files/gerbera-2.6.1-libfmt-12.patch
@@ -0,0 +1,16 @@
+https://bugs.gentoo.org/963165
+https://github.com/gerbera/gerbera/commit/f8e158bc72986e46b93d05358c29db0c10f2fe9f
+--- a/src/web/config_load.cc
++++ b/src/web/config_load.cc
+@@ -150,7 +150,11 @@ void Web::ConfigLoad::addNewValue(
+ template <typename T>
+ void Web::ConfigLoad::setValue(Json::Value& item, const T& value)
+ {
++#if FMT_VERSION >= 120000
++    static_assert(fmt::is_formattable<T, fmt::format_context>::value, "T must 
be formattable");
++#else
+     static_assert(fmt::has_formatter<T, fmt::format_context>::value, "T must 
be formattable");
++#endif
+     item[CONFIG_LOAD_VALUE] = fmt::to_string(value);
+ }
+ 

diff --git a/net-misc/gerbera/gerbera-2.6.1.ebuild 
b/net-misc/gerbera/gerbera-2.6.1.ebuild
index c10ed4366012..d38f61e75a45 100644
--- a/net-misc/gerbera/gerbera-2.6.1.ebuild
+++ b/net-misc/gerbera/gerbera-2.6.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -66,6 +66,10 @@ BDEPEND="
 
 CONFIG_CHECK="~INOTIFY_USER"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-libfmt-12.patch
+)
+
 src_configure() {
        # bug #941944
        filter-lto

Reply via email to