public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/cachelib] epel10.3: Reapply GCC workaround for epel9 x86_64
@ 2026-10-08  9:23 Michel Alexandre Salim
  0 siblings, 0 replies; only message in thread
From: Michel Alexandre Salim @ 2026-10-08  9:23 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-10-08  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08  9:23 [rpms/cachelib] epel10.3: Reapply GCC workaround for epel9 x86_64 Michel Alexandre Salim

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