mtxclient: update to 0.10.1.

This commit is contained in:
sn0w
2025-12-13 16:43:34 -05:00
committed by classabbyamp
parent 9c8b4b27d9
commit 28040e32e2
3 changed files with 4 additions and 50 deletions
+1 -1
View File
@@ -442,7 +442,7 @@ libFLAC++.so.11 libflac-1.5.0_1
libField3D.so.1.7 Field3D-1.7.3_1
libmad.so.0 libmad-0.15.1b_1
libmatroska.so.7 libmatroska-1.6.0_1
libmatrix_client.so.0.10.0 mtxclient-0.10.0_1
libmatrix_client.so.0.10.1 mtxclient-0.10.1_1
libebml.so.5 libebml-1.4.0_1
libdvdread.so.8 libdvdread-6.1.1_1
libdvdnav.so.4 libdvdnav-4.1.3_1
-46
View File
@@ -1,46 +0,0 @@
From 4a4726c77123f805cff8b954909663eaed296558 Mon Sep 17 00:00:00 2001
From: Kefu Chai <tchaikov@gmail.com>
Date: Mon, 15 Jul 2024 11:35:09 +0800
Subject: [PATCH] Fix build with fmt 11
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
fmt 11 enforces that fmt::formatter<..>::format() should be const.
otherwise the tree does not build:
```
/usr/include/fmt/base.h:1392:29: error: passing ‘const fmt::v11::formatter<std::optional<mtx::http::ClientError> >’ as ‘this’ argument discards qualifiers [-fpermissive]
1392 | ctx.advance_to(cf.format(*static_cast<qualified_type*>(arg), ctx));
| ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
so let's mark the `format()` with `const` specifier.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
---
include/mtxclient/http/errors.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/mtxclient/http/errors.hpp b/include/mtxclient/http/errors.hpp
index 2d0e7a45..b99ff90e 100644
--- a/include/mtxclient/http/errors.hpp
+++ b/include/mtxclient/http/errors.hpp
@@ -87,7 +87,7 @@ struct fmt::formatter<mtx::http::ClientError>
// Formats the point p using the parsed format specification (presentation)
// stored in this formatter.
template<typename FormatContext>
- auto format(const mtx::http::ClientError &e, FormatContext &ctx) -> decltype(ctx.out())
+ auto format(const mtx::http::ClientError &e, FormatContext &ctx) const -> decltype(ctx.out())
{
// ctx.out() is an output iterator to write to.
bool prepend_comma = false;
@@ -132,7 +132,7 @@ struct fmt::formatter<std::optional<mtx::http::ClientError>> : formatter<mtx::ht
{
// parse is inherited from formatter<string_view>.
template<typename FormatContext>
- auto format(std::optional<mtx::http::ClientError> c, FormatContext &ctx)
+ auto format(std::optional<mtx::http::ClientError> c, FormatContext &ctx) const
{
if (!c)
return fmt::format_to(ctx.out(), "(no error)");
+3 -3
View File
@@ -1,7 +1,7 @@
# Template file for 'mtxclient'
pkgname=mtxclient
version=0.10.0
revision=3
version=0.10.1
revision=1
build_style=cmake
configure_args="-DBUILD_LIB_TESTS=OFF -DBUILD_LIB_EXAMPLES=OFF"
hostmakedepends="pkg-config"
@@ -12,7 +12,7 @@ license="MIT"
homepage="https://github.com/Nheko-Reborn/mtxclient"
changelog="https://raw.githubusercontent.com/Nheko-Reborn/mtxclient/master/CHANGELOG.md"
distfiles="https://github.com/Nheko-Reborn/mtxclient/archive/v${version}.tar.gz"
checksum=9502e0a999d2873172d50bb80371c061266126c7d4db8e44447eb70c977b0230
checksum=203be46a08e1dc6cfc068d0911f3b09976f48e4cc4302c3517b9c0f4e53631e3
post_install() {
vlicense LICENSE