From 6b722b5cc3e80f79afe26b1dcf0d64cc660d0cf1 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Thu, 4 Jul 2024 07:42:34 +0000 Subject: [PATCH 1/2] libfmt: update to 11.0.2 --- packages/devel/libfmt/package.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/devel/libfmt/package.mk b/packages/devel/libfmt/package.mk index 7c682f9524..5b42ecdfdd 100644 --- a/packages/devel/libfmt/package.mk +++ b/packages/devel/libfmt/package.mk @@ -2,8 +2,8 @@ # Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv) PKG_NAME="libfmt" -PKG_VERSION="10.2.1" -PKG_SHA256="1250e4cc58bf06ee631567523f48848dc4596133e163f02615c97f78bab6c811" +PKG_VERSION="11.0.2" +PKG_SHA256="6cb1e6d37bdcb756dbbe59be438790db409cdb4868c66e888d5df9f13f7c027f" PKG_LICENSE="BSD" PKG_SITE="https://github.com/fmtlib/fmt" PKG_URL="https://github.com/fmtlib/fmt/archive/${PKG_VERSION}.tar.gz" From 62b5056deda1384fc42393041b63d54f53d9284e Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Fri, 5 Jul 2024 14:37:49 +0000 Subject: [PATCH 2/2] mpd: fix build with libfmt-11.0.0 --- ...001-support-build-with-libfmt-11.0.0.patch | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 packages/addons/service/mpd/patches/0001-support-build-with-libfmt-11.0.0.patch diff --git a/packages/addons/service/mpd/patches/0001-support-build-with-libfmt-11.0.0.patch b/packages/addons/service/mpd/patches/0001-support-build-with-libfmt-11.0.0.patch new file mode 100644 index 0000000000..f6d8c7d337 --- /dev/null +++ b/packages/addons/service/mpd/patches/0001-support-build-with-libfmt-11.0.0.patch @@ -0,0 +1,79 @@ +From 1402869715e3efca87942d79c3173a6b21a6925d Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum +Date: Fri, 5 Jul 2024 14:27:45 +0000 +Subject: [PATCH] lib/fmt: support build with libfmt-11.0.0 + +Upstream libfmt commit fmtlib/fmt@d707292 +now requires the format function to be const. + +Adjust the function prototype so it is const and can compile. + +Signed-off-by: Rudi Heitbaum +--- + src/lib/ffmpeg/LibFmt.hxx | 2 +- + src/lib/fmt/AudioFormatFormatter.hxx | 4 ++-- + src/lib/fmt/ExceptionFormatter.hxx | 2 +- + src/lib/fmt/PathFormatter.hxx | 2 +- + 4 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/src/lib/ffmpeg/LibFmt.hxx b/src/lib/ffmpeg/LibFmt.hxx +index aa068711f3..dee83ed2d5 100644 +--- a/src/lib/ffmpeg/LibFmt.hxx ++++ b/src/lib/ffmpeg/LibFmt.hxx +@@ -13,7 +13,7 @@ template<> + struct fmt::formatter : formatter + { + template +- auto format(const AVSampleFormat format, FormatContext &ctx) { ++ auto format(const AVSampleFormat format, FormatContext &ctx) const { + const char *name = av_get_sample_fmt_name(format); + if (name == nullptr) + name = "?"; +diff --git a/src/lib/fmt/AudioFormatFormatter.hxx b/src/lib/fmt/AudioFormatFormatter.hxx +index e0ffb62160..8da98efd41 100644 +--- a/src/lib/fmt/AudioFormatFormatter.hxx ++++ b/src/lib/fmt/AudioFormatFormatter.hxx +@@ -13,7 +13,7 @@ template<> + struct fmt::formatter : formatter + { + template +- auto format(const SampleFormat format, FormatContext &ctx) { ++ auto format(const SampleFormat format, FormatContext &ctx) const { + return formatter::format(sample_format_to_string(format), + ctx); + } +@@ -23,7 +23,7 @@ template<> + struct fmt::formatter : formatter + { + template +- auto format(const AudioFormat &af, FormatContext &ctx) { ++ auto format(const AudioFormat &af, FormatContext &ctx) const { + return formatter::format(ToString(af).c_str(), + ctx); + } +diff --git a/src/lib/fmt/ExceptionFormatter.hxx b/src/lib/fmt/ExceptionFormatter.hxx +index 3f342df672..f08b3bb228 100644 +--- a/src/lib/fmt/ExceptionFormatter.hxx ++++ b/src/lib/fmt/ExceptionFormatter.hxx +@@ -12,7 +12,7 @@ template<> + struct fmt::formatter : formatter + { + template +- auto format(std::exception_ptr e, FormatContext &ctx) { ++ auto format(std::exception_ptr e, FormatContext &ctx) const { + return formatter::format(GetFullMessage(e), ctx); + } + }; +diff --git a/src/lib/fmt/PathFormatter.hxx b/src/lib/fmt/PathFormatter.hxx +index e5ae89dec5..add06df81b 100644 +--- a/src/lib/fmt/PathFormatter.hxx ++++ b/src/lib/fmt/PathFormatter.hxx +@@ -13,7 +13,7 @@ template T> + struct fmt::formatter : formatter + { + template +- auto format(Path path, FormatContext &ctx) { ++ auto format(Path path, FormatContext &ctx) const { + return formatter::format(path.ToUTF8(), ctx); + } + };