public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Reto Gantenbein <reto.gantenbein@linuxmonk.ch>
To: git-commits@fedoraproject.org
Subject: [rpms/raft] epel10: Fix tests for i686 architecture
Date: Fri, 30 Oct 2026 21:48:27 GMT	[thread overview]
Message-ID: <179339690782.1.7704616736275144237.rpms-raft-235d5d042354@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-10-30 21:48 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=179339690782.1.7704616736275144237.rpms-raft-235d5d042354@fedoraproject.org \
    --to=reto.gantenbein@linuxmonk.ch \
    --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