public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-bumpalo] f44: Fix/skip a test that fails on 32-bit
@ 2026-10-12  8:24 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-10-12  8:24 UTC (permalink / raw)
  To: git-commits

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",
+]

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

only message in thread, other threads:[~2026-10-12  8:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-12  8:24 [rpms/rust-bumpalo] f44: Fix/skip a test that fails on 32-bit Benjamin A. Beasley

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