diff --git a/nheko-0.11.3-fmt10.1-fix.patch b/nheko-0.11.3-fmt10.1-fix.patch new file mode 100644 index 0000000..b615b7e --- /dev/null +++ b/nheko-0.11.3-fmt10.1-fix.patch @@ -0,0 +1,23 @@ +From 871e403f6799df48cfbbe08eba56d473a0c34216 Mon Sep 17 00:00:00 2001 +From: q234rty +Date: Thu, 17 Aug 2023 15:13:01 +0800 +Subject: [PATCH] Fix build with fmt 10.1.0 + +I have no idea whether this is a fmt bug, and if this isn't a fmt bug how did this work before, but oh well... +--- + src/ChatPage.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp +index 4686b0f53..06d883032 100644 +--- a/src/ChatPage.cpp ++++ b/src/ChatPage.cpp +@@ -1269,7 +1269,7 @@ ChatPage::getBackupVersion() + nhlog::crypto()->info("Our backup key {} does not match the one " + "used in the online backup {}", + pubkey, +- auth_data["public_key"]); ++ auth_data["public_key"].get()); + cache::client()->deleteBackupVersion(); + return; + } diff --git a/nheko.spec b/nheko.spec index 062819c..098ce30 100644 --- a/nheko.spec +++ b/nheko.spec @@ -14,6 +14,8 @@ Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz Patch100: %{name}-0.11.3-gcc13-fix.patch # https://github.com/Nheko-Reborn/nheko/commit/e89e65dc17020772eb057414b4f0c5d6f4ad98d0 Patch101: %{name}-0.11.3-fmt10-fix.patch +# https://github.com/Nheko-Reborn/nheko/commit/871e403f6799df48cfbbe08eba56d473a0c34216 +Patch102: %{name}-0.11.3-fmt10.1-fix.patch BuildRequires: cmake(MatrixClient) >= 0.9.2 BuildRequires: cmake(Olm) >= 3.2.12