X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=libfmt9.patch;fp=libfmt9.patch;h=02e5080e63329f7fd6d98f6e7f6ec554ba615c15;hb=6e53a4bd404afad13e9afa5643776c7b730195f0;hp=0000000000000000000000000000000000000000;hpb=8bef8545e1f38453eeba2ea970c1b123b4da4df9;p=packages%2Fgerbera.git diff --git a/libfmt9.patch b/libfmt9.patch new file mode 100644 index 0000000..02e5080 --- /dev/null +++ b/libfmt9.patch @@ -0,0 +1,32 @@ +From 2f69158875215c3db3da2993617251dfefdf9497 Mon Sep 17 00:00:00 2001 +From: Felix Yan +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 : formatter { + template +- 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 : formatter { + template +- 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); + }