public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michel Alexandre Salim <salimma@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/cachelib] epel10.3: Reapply GCC workaround for epel9 x86_64
Date: Thu, 08 Oct 2026 09:23:15 GMT [thread overview]
Message-ID: <179145139518.1.5786513657000761330.rpms-cachelib-5041ffc884dc@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/cachelib
Branch : epel10.3
Commit : 5041ffc884dcb6132eb2ed0e83da24dc904a0f8b
Author : Michel Alexandre Salim <salimma@fedoraproject.org>
Date : 2023-04-27T15:25:58-05:00
Stats : +19/-11 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/cachelib/c/5041ffc884dcb6132eb2ed0e83da24dc904a0f8b?branch=epel10.3
Log:
Reapply GCC workaround for epel9 x86_64
Signed-off-by: Michel Alexandre Salim <salimma@fedoraproject.org>
---
diff --git a/cachelib-workaround-gcc-epel9-x86_64-bz2108665.patch b/cachelib-workaround-gcc-epel9-x86_64-bz2108665.patch
new file mode 100644
index 0000000..7fc45a2
--- /dev/null
+++ b/cachelib-workaround-gcc-epel9-x86_64-bz2108665.patch
@@ -0,0 +1,11 @@
+--- CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/compact_cache/CCacheFixedLruBucket.h.orig 2022-03-15 02:49:38.000000000 +0900
++++ CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/compact_cache/CCacheFixedLruBucket.h 2022-07-20 02:03:03.028073719 +0900
+@@ -274,7 +274,7 @@ struct FixedLruBucket {
+ static void copyValue(T* destPtr, const T* srcPtr) {
+ XDCHECK(destPtr != nullptr);
+ XDCHECK(srcPtr != nullptr);
+- memcpy(destPtr, srcPtr, sizeof(T));
++ memcpy(reinterpret_cast<void *>(destPtr), reinterpret_cast<const void *>(srcPtr), sizeof(T));
+ }
+ };
+ } // namespace cachelib
diff --git a/cachelib-workaround-gcc12-bz2108665.patch b/cachelib-workaround-gcc12-bz2108665.patch
deleted file mode 100644
index 7fc45a2..0000000
--- a/cachelib-workaround-gcc12-bz2108665.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/compact_cache/CCacheFixedLruBucket.h.orig 2022-03-15 02:49:38.000000000 +0900
-+++ CacheLib-bd22b0eb79f7e2326f77a22c278c48e454882291/cachelib/compact_cache/CCacheFixedLruBucket.h 2022-07-20 02:03:03.028073719 +0900
-@@ -274,7 +274,7 @@ struct FixedLruBucket {
- static void copyValue(T* destPtr, const T* srcPtr) {
- XDCHECK(destPtr != nullptr);
- XDCHECK(srcPtr != nullptr);
-- memcpy(destPtr, srcPtr, sizeof(T));
-+ memcpy(reinterpret_cast<void *>(destPtr), reinterpret_cast<const void *>(srcPtr), sizeof(T));
- }
- };
- } // namespace cachelib
diff --git a/cachelib.spec b/cachelib.spec
index 452fdb9..8c495f0 100644
--- a/cachelib.spec
+++ b/cachelib.spec
@@ -30,6 +30,9 @@ Source0: %{url}/archive/v%{tag}/%{name}-%{tag}.tar.gz
Patch0: %{name}-add_missing_includes.diff
# needed on EL8; its gtest does not come with cmake files
Patch100: %{name}-find-gtest.patch
+# Workaround for gcc issue (still needed on epel9 x86_64)
+# https://bugzilla.redhat.com/show_bug.cgi?id=2108665
+Patch200: %{name}-workaround-gcc-epel9-x86_64-bz2108665.patch
ExclusiveArch: x86_64 aarch64 ppc64le
@@ -82,6 +85,11 @@ applications that use %{name}.
%if 0%{?el8}
%autopatch -p1 -m 100 -M 199
%endif
+%ifarch x86_64
+%if 0%{?el9}
+%autopatch -p1 -m 200 -M 209
+%endif
+%endif
%build
reply other threads:[~2026-10-08 9:23 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=179145139518.1.5786513657000761330.rpms-cachelib-5041ffc884dc@fedoraproject.org \
--to=salimma@fedoraproject.org \
--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