public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kefu Chai <tchaikov@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/bear] epel10: Apply patch for building with fmt 11 and Rebuilt for fmt 11
Date: Sat, 11 Jul 2026 02:31:43 GMT [thread overview]
Message-ID: <178373710368.1.1451887867232978554.rpms-bear-d02c91c269c4@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/bear
Branch : epel10
Commit : d02c91c269c4fbfc151e92f3a90de8ebfe5f21e2
Author : Kefu Chai <tchaikov@gmail.com>
Date : 2024-07-14T08:56:16+08:00
Stats : +61/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/bear/c/d02c91c269c4fbfc151e92f3a90de8ebfe5f21e2?branch=epel10
Log:
Apply patch for building with fmt 11 and Rebuilt for fmt 11
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
---
diff --git a/0001-citnames-include-fmt-ranges.h-for-using-fmt-join.patch b/0001-citnames-include-fmt-ranges.h-for-using-fmt-join.patch
new file mode 100644
index 0000000..2351bfa
--- /dev/null
+++ b/0001-citnames-include-fmt-ranges.h-for-using-fmt-join.patch
@@ -0,0 +1,58 @@
+From 3b2c43cb2a3e6fcd09c42e1c1399ffa54d8d972a Mon Sep 17 00:00:00 2001
+From: Kefu Chai <tchaikov@gmail.com>
+Date: Sun, 14 Jul 2024 08:47:53 +0800
+Subject: [PATCH] citnames: include fmt/ranges.h for using fmt::join()
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+fmt::join() was moved into fmt/ranges.h since fmt v11, so include
+this header for using fmt::join(). otherwise, we'd have following
+compilation failure when building Bear with fmt v11 and up:
+
+```
+/builddir/build/BUILD/bear-3.1.4-build/Bear-3.1.4/source/citnames/source/semantic/Parsers.h:255:73: error: ‘join’ is not a member of ‘fmt’
+ 255 | fmt::format("Failed to recognize: {}", fmt::join(remainder.begin(), remainder.end(), ", "))
+ | ^~~~
+```
+
+Signed-off-by: Kefu Chai <tchaikov@gmail.com>
+---
+ source/citnames/source/semantic/Parsers.h | 1 +
+ source/citnames/source/semantic/Semantic.cc | 3 ++-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/source/citnames/source/semantic/Parsers.h b/source/citnames/source/semantic/Parsers.h
+index 90e64f9..34203a1 100644
+--- a/source/citnames/source/semantic/Parsers.h
++++ b/source/citnames/source/semantic/Parsers.h
+@@ -30,6 +30,7 @@
+ #include <optional>
+
+ #include <fmt/format.h>
++#include <fmt/ranges.h>
+
+ namespace cs::semantic {
+
+diff --git a/source/citnames/source/semantic/Semantic.cc b/source/citnames/source/semantic/Semantic.cc
+index da76295..54d3e62 100644
+--- a/source/citnames/source/semantic/Semantic.cc
++++ b/source/citnames/source/semantic/Semantic.cc
+@@ -21,6 +21,7 @@
+ #include "semantic/Semantic.h"
+
+ #include <fmt/format.h>
++#include <fmt/ranges.h>
+ #ifdef HAVE_FMT_STD_H
+ #include <fmt/std.h>
+ #else
+@@ -133,4 +134,4 @@ namespace cs::semantic {
+ }
+ return results;
+ }
+-}
+\ No newline at end of file
++}
+--
+2.45.2
+
diff --git a/bear.spec b/bear.spec
index 455e5c9..63462c4 100644
--- a/bear.spec
+++ b/bear.spec
@@ -7,6 +7,9 @@ License: GPL-3.0-or-later
URL: https://github.com/rizsotto/%{name}
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+# https://github.com/rizsotto/Bear/pull/586
+Patch: 0001-citnames-include-fmt-ranges.h-for-using-fmt-join.patch
+
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
reply other threads:[~2026-07-11 2:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178373710368.1.1451887867232978554.rpms-bear-d02c91c269c4@fedoraproject.org \
--to=tchaikov@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox