public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-bumpalo] f44: Fix/skip a test that fails on 32-bit
Date: Mon, 12 Oct 2026 08:24:11 GMT	[thread overview]
Message-ID: <179179345152.1.9908947229707618515.rpms-rust-bumpalo-db013a44f245@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-bumpalo
Branch : f44
Commit : db013a44f245f2dfdb722a243c421f88812bc823
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-10-12T09:18:39+01:00
Stats  : +42/-1 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-bumpalo/c/db013a44f245f2dfdb722a243c421f88812bc823?branch=f44

Log:
Fix/skip a test that fails on 32-bit

---
diff --git a/341.patch b/341.patch
new file mode 100644
index 0000000..7cc1cab
--- /dev/null
+++ b/341.patch
@@ -0,0 +1,31 @@
+From 4b9ae782c0fed989768287bd1f066c4467a3f74f Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <code@musicinmybrain.net>
+Date: Mon, 12 Oct 2026 07:46:18 +0100
+Subject: [PATCH] Only test chunk_footer_is_five_words on 64-bit targets
+
+Avoids errors like the following on 32-bit targets:
+
+```
+---- tests::chunk_footer_is_five_words stdout ----
+thread 'tests::chunk_footer_is_five_words' (709) panicked at src/lib.rs:2594:9:
+assertion `left == right` failed
+  left: 32
+ right: 24
+```
+---
+ src/lib.rs | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/lib.rs b/src/lib.rs
+index 00d4b72..5503379 100644
+--- a/src/lib.rs
++++ b/src/lib.rs
+@@ -2753,6 +2753,8 @@ mod tests {
+ 
+     // Uses private type `ChunkFooter`.
+     #[test]
++    // Assertion relies on 64-bit layout assumptions
++    #[cfg(target_pointer_width = "64")]
+     fn chunk_footer_is_five_words() {
+         assert_eq!(mem::size_of::<ChunkFooter>(), mem::size_of::<usize>() * 6);
+     }

diff --git a/bumpalo-fix-metadata.diff b/bumpalo-fix-metadata.diff
index f69468c..c75eb0d 100644
--- a/bumpalo-fix-metadata.diff
+++ b/bumpalo-fix-metadata.diff
@@ -1,5 +1,5 @@
 --- bumpalo-3.20.3/Cargo.toml	2006-07-24T01:21:28+00:00
-+++ bumpalo-3.20.3/Cargo.toml	2026-05-26T15:17:59.773184+00:00
++++ bumpalo-3.20.3/Cargo.toml	2026-10-12T08:17:57.235187+00:00
 @@ -49,10 +49,6 @@
  
  [features]

diff --git a/rust-bumpalo.spec b/rust-bumpalo.spec
index d0bee5e..d6f8e8b 100644
--- a/rust-bumpalo.spec
+++ b/rust-bumpalo.spec
@@ -16,6 +16,9 @@ Source:         %{crates_source}
 # * relax exact versions for dev-dependencies
 # * drop unused, benchmark-only dev-dependencies
 Patch:          bumpalo-fix-metadata.diff
+# * Only test chunk_footer_is_five_words on 64-bit targets
+# * https://github.com/fitzgen/bumpalo/pull/341
+Patch10:        https://github.com/fitzgen/bumpalo/pull/341.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 

diff --git a/rust2rpm.toml b/rust2rpm.toml
index 78dad14..df1d5ae 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -4,3 +4,10 @@ cargo-toml-patch-comments = [
     "drop unused, benchmark-only dev-dependencies",
 ]
 
+[[package.extra-patches]]
+number = 10
+file = "https://github.com/fitzgen/bumpalo/pull/341.patch"
+comments = [
+    "Only test chunk_footer_is_five_words on 64-bit targets",
+    "https://github.com/fitzgen/bumpalo/pull/341",
+]

                 reply	other threads:[~2026-10-12  8:24 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=179179345152.1.9908947229707618515.rpms-rust-bumpalo-db013a44f245@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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