]> git.pld-linux.org Git - packages/gerbera.git/commitdiff
upstream fix for libfmt 9
authorJan Palus <atler@pld-linux.org>
Thu, 1 Sep 2022 16:15:12 +0000 (18:15 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 1 Sep 2022 16:15:12 +0000 (18:15 +0200)
gerbera.spec
libfmt9.patch [new file with mode: 0644]

index 209410c84bebc3e4975c6394da8bf74743a45945..2229075888b74020b90d8f7be73ab63e46a43f3c 100644 (file)
@@ -10,6 +10,7 @@ License:      GPL v2
 Group:         Applications
 Source0:       https://github.com/gerbera/gerbera/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: dcf3ae7bc506920e95d88f31129238ee
+Patch0:                libfmt9.patch
 URL:           https://gerbera.io
 BuildRequires: cmake >= 3.18
 BuildRequires: curl-devel
@@ -50,6 +51,7 @@ compatible devices.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
diff --git a/libfmt9.patch b/libfmt9.patch
new file mode 100644 (file)
index 0000000..02e5080
--- /dev/null
@@ -0,0 +1,32 @@
+From 2f69158875215c3db3da2993617251dfefdf9497 Mon Sep 17 00:00:00 2001
+From: Felix Yan <felixonmars@archlinux.org>
+Date: Fri, 19 Aug 2022 15:22:10 +0300
+Subject: [PATCH] Fix build with fmt 9.0
+
+Fixes #2681
+---
+ src/database/sql_format.h | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/database/sql_format.h b/src/database/sql_format.h
+index 32dc00efa..e4e1909a8 100644
+--- a/src/database/sql_format.h
++++ b/src/database/sql_format.h
+@@ -42,7 +42,7 @@ struct SQLIdentifier {
+ template <>
+ struct fmt::formatter<SQLIdentifier> : formatter<std::string_view> {
+     template <typename FormatContext>
+-    auto format(const SQLIdentifier& tn, FormatContext& ctx) -> decltype(ctx.out())
++    auto format(const SQLIdentifier& tn, FormatContext& ctx) const -> decltype(ctx.out())
+     {
+         return format_to(ctx.out(), "{}{}{}", tn.quote_begin, tn.name, tn.quote_end);
+     }
+@@ -61,7 +61,7 @@ struct ColumnUpdate {
+ template <>
+ struct fmt::formatter<ColumnUpdate> : formatter<std::string_view> {
+     template <typename FormatContext>
+-    auto format(const ColumnUpdate& a, FormatContext& ctx) -> decltype(ctx.out())
++    auto format(const ColumnUpdate& a, FormatContext& ctx) const -> decltype(ctx.out())
+     {
+         return format_to(ctx.out(), "{} = {}", a.column, a.value);
+     }
This page took 0.096991 seconds and 4 git commands to generate.