[packages/gerbera] - relup, added libfmt-12.0.0.patch
mrozowik
mrozowik at pld-linux.org
Sun Oct 19 11:42:06 CEST 2025
commit 99706e98f135019458e166fc30503ebec94a8bc7
Author: Krzysztof Mrozowicz <mrozowik at pld-linux.org>
Date: Sun Oct 19 09:41:55 2025 +0000
- relup, added libfmt-12.0.0.patch
gerbera-2.6.1-libfmt-12.0.0.patch | 24 ++++++++++++++++++++++++
gerbera.spec | 4 +++-
2 files changed, 27 insertions(+), 1 deletion(-)
---
diff --git a/gerbera.spec b/gerbera.spec
index dc8774c..4aba508 100644
--- a/gerbera.spec
+++ b/gerbera.spec
@@ -6,12 +6,13 @@ Summary: UPnP Media Server
Summary(pl.UTF-8): Serwer mediów UPnP
Name: gerbera
Version: 2.6.1
-Release: 2
+Release: 3
License: GPL v2
Group: Applications/Multimedia
#Source0Download: https://github.com/gerbera/gerbera/releases
Source0: https://github.com/gerbera/gerbera/archive/v%{version}/%{name}-%{version}.tar.gz
# Source0-md5: bc6cf5a7082aac9c8b95c5e363a4e044
+Patch0: gerbera-2.6.1-libfmt-12.0.0.patch
URL: https://gerbera.io/
BuildRequires: cmake >= 3.19
BuildRequires: curl-devel
@@ -59,6 +60,7 @@ urządzeniach zgodnych z UPnP.
%prep
%setup -q
+%patch -P0 -p1
%build
%cmake -B build \
diff --git a/gerbera-2.6.1-libfmt-12.0.0.patch b/gerbera-2.6.1-libfmt-12.0.0.patch
new file mode 100644
index 0000000..964fe17
--- /dev/null
+++ b/gerbera-2.6.1-libfmt-12.0.0.patch
@@ -0,0 +1,24 @@
+From f8e158bc72986e46b93d05358c29db0c10f2fe9f Mon Sep 17 00:00:00 2001
+From: Karlchen <k_straussberger at netzland.net>
+Date: Wed, 17 Sep 2025 21:18:49 +0200
+Subject: [PATCH] Update to fmt 12.0.0
+
+---
+ src/web/config_load.cc | 4 ++++
+
+diff --git a/src/web/config_load.cc b/src/web/config_load.cc
+index 8b296c43e0..4259ae3331 100644
+--- 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);
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/gerbera.git/commitdiff/99706e98f135019458e166fc30503ebec94a8bc7
More information about the pld-cvs-commit
mailing list