public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/bear] epel10: Apply patch for building with fmt 11 and Rebuilt for fmt 11
@ 2026-07-11  2:31 Kefu Chai
  0 siblings, 0 replies; only message in thread
From: Kefu Chai @ 2026-07-11  2:31 UTC (permalink / raw)
  To: git-commits

            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}
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-11  2:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-11  2:31 [rpms/bear] epel10: Apply patch for building with fmt 11 and Rebuilt for fmt 11 Kefu Chai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox