public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/raft] epel10: Fix tests for i686 architecture
@ 2026-10-30 21:48 Reto Gantenbein
  0 siblings, 0 replies; only message in thread
From: Reto Gantenbein @ 2026-10-30 21:48 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/raft
Branch : epel10
Commit : 235d5d04235486643a09c0d18f277ad65aeba1e2
Author : Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
Date   : 2022-01-24T22:39:48+01:00
Stats  : +22/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/raft/c/235d5d04235486643a09c0d18f277ad65aeba1e2?branch=epel10

Log:
Fix tests for i686 architecture

---
diff --git a/raft-0.11.3-test_compress-Respect-32bit-architectures.patch b/raft-0.11.3-test_compress-Respect-32bit-architectures.patch
new file mode 100644
index 0000000..65a8ce4
--- /dev/null
+++ b/raft-0.11.3-test_compress-Respect-32bit-architectures.patch
@@ -0,0 +1,21 @@
+commit 44d506a51aca28ef081a653db7cf017ad39c1fd6
+Author: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
+Date:   Sat Jan 22 18:09:50 2022 +0100
+
+    test/unit/test_compress: Respect 32bit architectures
+
+diff --git a/test/unit/test_compress.c b/test/unit/test_compress.c
+index 229fec5..a7b131a 100644
+--- a/test/unit/test_compress.c
++++ b/test/unit/test_compress.c
+@@ -108,8 +108,8 @@ TEST(Compress, compressDecompressRandomOne, NULL, NULL, 0,
+ }
+ 
+ static char* len_nonrandom_one_params[] = {
+-#ifdef __arm__
+-/*    4KB     64KB     4MB        1GB           INT_MAX (larger alocations fail on arm 32-bit */
++#if !defined(__LP64__) && (defined(__arm__) || defined(__i386__) || defined(__mips__))
++/*    4KB     64KB     4MB        1GB           INT_MAX (larger allocations fail on 32-bit archs */
+       "4096", "65536", "4194304", "1073741824", "2147483647",
+ #else
+ /*    4KB     64KB     4MB        1GB           2GB + 200MB */

diff --git a/raft.spec b/raft.spec
index 9e2b5b1..d3697cb 100644
--- a/raft.spec
+++ b/raft.spec
@@ -6,6 +6,7 @@ Summary:        C implementation of the Raft consensus protocol
 License:        LGPLv3 with exceptions
 URL:            https://github.com/canonical/raft
 Source0:        %{URL}/archive/v%{version}.tar.gz
+Patch0:         raft-0.11.3-test_compress-Respect-32bit-architectures.patch
 
 BuildRequires:  autoconf libtool
 BuildRequires:  gcc

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

only message in thread, other threads:[~2026-10-30 21:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-30 21:48 [rpms/raft] epel10: Fix tests for i686 architecture Reto Gantenbein

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