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-libcramjam] rawhide: Patch out pure-Rust features for now due to test failures on s390x
Date: Wed, 30 Sep 2026 19:56:45 GMT	[thread overview]
Message-ID: <179079820561.1.15602970399060765322.rpms-rust-libcramjam-385bbde3c11b@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-libcramjam
Branch : rawhide
Commit : 385bbde3c11b8177f78960d3028a5003b9575710
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2026-09-30T15:23:04+01:00
Stats  : +126/-68 in 3 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-libcramjam/c/385bbde3c11b8177f78960d3028a5003b9575710?branch=rawhide

Log:
Patch out pure-Rust features for now due to test failures on s390x

---
diff --git a/libcramjam-fix-metadata.diff b/libcramjam-fix-metadata.diff
index 2d14e7e..f8777a9 100644
--- a/libcramjam-fix-metadata.diff
+++ b/libcramjam-fix-metadata.diff
@@ -1,6 +1,6 @@
 --- libcramjam-0.9.1/Cargo.toml	1970-01-01T00:00:01+00:00
-+++ libcramjam-0.9.1/Cargo.toml	2026-09-29T17:48:52.085801+00:00
-@@ -39,15 +39,6 @@
++++ libcramjam-0.9.1/Cargo.toml	2026-09-30T14:22:16.474134+00:00
+@@ -39,18 +39,9 @@
  subdirectory = "cramjam"
  
  [features]
@@ -15,17 +15,25 @@
 -]
  brotli = ["dep:brotli"]
  bzip2 = ["dep:bzip2"]
- bzip2-pure = []
-@@ -63,33 +54,14 @@
+-bzip2-pure = []
++# bzip2-pure = []
+ capi = ["dep:libc"]
+ default = [
+     "snappy",
+@@ -63,86 +54,53 @@
      "deflate",
      "zlib",
  ]
 -deflate = ["deflate-static"]
+-deflate-pure = [
+-    "dep:crc32fast",
+-    "dep:simd-adler32",
+-]
 +deflate = ["deflate-shared"]
- deflate-pure = [
-     "dep:crc32fast",
-     "dep:simd-adler32",
- ]
++# deflate-pure = [
++#     "dep:crc32fast",
++#     "dep:simd-adler32",
++# ]
  deflate-shared = ["dep:flate2"]
 -deflate-static = ["dep:flate2"]
 -gzip = ["gzip-static"]
@@ -50,11 +58,22 @@
 -izlib-shared = ["isal-shared"]
 -izlib-static = ["isal-static"]
  lz4 = ["dep:lz4"]
- lz4-pure = []
- pure-rust = [
-@@ -100,16 +72,7 @@
-     "xz-pure",
- ]
+-lz4-pure = []
+-pure-rust = [
+-    "zstd-pure",
+-    "lz4-pure",
+-    "bzip2-pure",
+-    "deflate-pure",
+-    "xz-pure",
+-]
++# lz4-pure = []
++# pure-rust = [
++#     "zstd-pure",
++#     "lz4-pure",
++#     "bzip2-pure",
++#     "deflate-pure",
++#     "xz-pure",
++# ]
  snappy = ["dep:snap"]
 -use-system-blosc2 = [
 -    "dep:blosc2-rs",
@@ -66,11 +85,18 @@
 -]
 -wasm32-compat = ["blosc2-rs/deactivate-zlib-optim"]
 -xz = ["xz-static"]
+-xz-pure = [
+-    "dep:crc32fast",
+-    "dep:crc-fast",
+-    "dep:sha2",
+-]
 +xz = ["xz-shared"]
- xz-pure = [
-     "dep:crc32fast",
-     "dep:crc-fast",
-@@ -119,20 +82,15 @@
++# xz-pure = [
++#     "dep:crc32fast",
++#     "dep:crc-fast",
++#     "dep:sha2",
++# ]
+ xz-shared = [
      "dep:xz2",
      "dep:lzma-sys",
  ]
@@ -84,16 +110,66 @@
  zlib-shared = ["deflate-shared"]
 -zlib-static = ["deflate-static"]
  zstd = ["dep:zstd"]
- zstd-pure = []
+-zstd-pure = []
++# zstd-pure = []
  
  [lib]
  name = "libcramjam"
  path = "src/lib.rs"
+-
+-[[example]]
+-name = "lz4fast_check"
+-path = "examples/lz4fast_check.rs"
+-required-features = ["lz4-pure"]
+-
+-[[example]]
+-name = "lz4hc_check"
+-path = "examples/lz4hc_check.rs"
+-required-features = ["lz4-pure"]
 +crate-type = ["lib", "cdylib"]
++
++# [[example]]
++# name = "lz4fast_check"
++# path = "examples/lz4fast_check.rs"
++# required-features = ["lz4-pure"]
++# 
++# [[example]]
++# name = "lz4hc_check"
++# path = "examples/lz4hc_check.rs"
++# required-features = ["lz4-pure"]
  
  [[example]]
- name = "lz4fast_check"
-@@ -195,26 +153,6 @@
+ name = "profile_bzip2"
+@@ -172,10 +130,10 @@
+ name = "profile_xz_enc"
+ path = "examples/profile_xz_enc.rs"
+ 
+-[[example]]
+-name = "profile_zstd"
+-path = "examples/profile_zstd.rs"
+-required-features = ["zstd-pure"]
++# [[example]]
++# name = "profile_zstd"
++# path = "examples/profile_zstd.rs"
++# required-features = ["zstd-pure"]
+ 
+ [[example]]
+ name = "profile_zstd_dec"
+@@ -185,36 +143,16 @@
+ name = "zstd_dbg"
+ path = "examples/zstd_dbg.rs"
+ 
+-[[example]]
+-name = "zstd_small_check"
+-path = "examples/zstd_small_check.rs"
+-required-features = ["zstd-pure"]
++# [[example]]
++# name = "zstd_small_check"
++# path = "examples/zstd_small_check.rs"
++# required-features = ["zstd-pure"]
+ 
+ [[test]]
+ name = "backend_contract"
  path = "tests/backend_contract.rs"
  
  [[test]]

diff --git a/rust-libcramjam.spec b/rust-libcramjam.spec
index 2873496..3ddc944 100644
--- a/rust-libcramjam.spec
+++ b/rust-libcramjam.spec
@@ -38,6 +38,8 @@ Source:         %{crates_source}
 # * Omit “corpus” tests: these require files from benches/data/, which are not
 #   distributed in the crate, and some of which don’t have entirely clear
 #   license status.
+# * Patch out pure-Rust features for now due to test failures on s390x,
+#   https://github.com/cramjam/libcramjam/issues/35.
 Patch:          libcramjam-fix-metadata.diff
 
 # https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
@@ -152,52 +154,52 @@ use the "bzip2" feature of the "%{crate}" crate.
 %files       -n %{name}+bzip2-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+bzip2-pure-devel
+%package     -n %{name}+capi-devel
 Summary:        %{summary}
 BuildArch:      noarch
 
-%description -n %{name}+bzip2-pure-devel %{_description}
+%description -n %{name}+capi-devel %{_description}
 
 This package contains library source intended for building other packages which
-use the "bzip2-pure" feature of the "%{crate}" crate.
+use the "capi" feature of the "%{crate}" crate.
 
-%files       -n %{name}+bzip2-pure-devel
+%files       -n %{name}+capi-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+capi-devel
+%package     -n %{name}+crc-fast-devel
 Summary:        %{summary}
 BuildArch:      noarch
 
-%description -n %{name}+capi-devel %{_description}
+%description -n %{name}+crc-fast-devel %{_description}
 
 This package contains library source intended for building other packages which
-use the "capi" feature of the "%{crate}" crate.
+use the "crc-fast" feature of the "%{crate}" crate.
 
-%files       -n %{name}+capi-devel
+%files       -n %{name}+crc-fast-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+deflate-devel
+%package     -n %{name}+crc32fast-devel
 Summary:        %{summary}
 BuildArch:      noarch
 
-%description -n %{name}+deflate-devel %{_description}
+%description -n %{name}+crc32fast-devel %{_description}
 
 This package contains library source intended for building other packages which
-use the "deflate" feature of the "%{crate}" crate.
+use the "crc32fast" feature of the "%{crate}" crate.
 
-%files       -n %{name}+deflate-devel
+%files       -n %{name}+crc32fast-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+deflate-pure-devel
+%package     -n %{name}+deflate-devel
 Summary:        %{summary}
 BuildArch:      noarch
 
-%description -n %{name}+deflate-pure-devel %{_description}
+%description -n %{name}+deflate-devel %{_description}
 
 This package contains library source intended for building other packages which
-use the "deflate-pure" feature of the "%{crate}" crate.
+use the "deflate" feature of the "%{crate}" crate.
 
-%files       -n %{name}+deflate-pure-devel
+%files       -n %{name}+deflate-devel
 %ghost %{crate_instdir}/Cargo.toml
 
 %package     -n %{name}+deflate-shared-devel
@@ -248,28 +250,28 @@ use the "lz4" feature of the "%{crate}" crate.
 %files       -n %{name}+lz4-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+lz4-pure-devel
+%package     -n %{name}+sha2-devel
 Summary:        %{summary}
 BuildArch:      noarch
 
-%description -n %{name}+lz4-pure-devel %{_description}
+%description -n %{name}+sha2-devel %{_description}
 
 This package contains library source intended for building other packages which
-use the "lz4-pure" feature of the "%{crate}" crate.
+use the "sha2" feature of the "%{crate}" crate.
 
-%files       -n %{name}+lz4-pure-devel
+%files       -n %{name}+sha2-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+pure-rust-devel
+%package     -n %{name}+simd-adler32-devel
 Summary:        %{summary}
 BuildArch:      noarch
 
-%description -n %{name}+pure-rust-devel %{_description}
+%description -n %{name}+simd-adler32-devel %{_description}
 
 This package contains library source intended for building other packages which
-use the "pure-rust" feature of the "%{crate}" crate.
+use the "simd-adler32" feature of the "%{crate}" crate.
 
-%files       -n %{name}+pure-rust-devel
+%files       -n %{name}+simd-adler32-devel
 %ghost %{crate_instdir}/Cargo.toml
 
 %package     -n %{name}+snappy-devel
@@ -296,18 +298,6 @@ use the "xz" feature of the "%{crate}" crate.
 %files       -n %{name}+xz-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+xz-pure-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+xz-pure-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "xz-pure" feature of the "%{crate}" crate.
-
-%files       -n %{name}+xz-pure-devel
-%ghost %{crate_instdir}/Cargo.toml
-
 %package     -n %{name}+xz-shared-devel
 Summary:        %{summary}
 BuildArch:      noarch
@@ -356,18 +346,6 @@ use the "zstd" feature of the "%{crate}" crate.
 %files       -n %{name}+zstd-devel
 %ghost %{crate_instdir}/Cargo.toml
 
-%package     -n %{name}+zstd-pure-devel
-Summary:        %{summary}
-BuildArch:      noarch
-
-%description -n %{name}+zstd-pure-devel %{_description}
-
-This package contains library source intended for building other packages which
-use the "zstd-pure" feature of the "%{crate}" crate.
-
-%files       -n %{name}+zstd-pure-devel
-%ghost %{crate_instdir}/Cargo.toml
-
 %prep
 %autosetup -n %{crate}-%{version} -p1
 %cargo_prep

diff --git a/rust2rpm.toml b/rust2rpm.toml
index a0e8dad..5a13240 100644
--- a/rust2rpm.toml
+++ b/rust2rpm.toml
@@ -21,6 +21,10 @@ Omit “corpus” tests: these require files from benches/data/, which are not \
 distributed in the crate, and some of which don’t have entirely clear license \
 status.\
 """,
+    """\
+Patch out pure-Rust features for now due to test failures on s390x, \
+https://github.com/cramjam/libcramjam/issues/35.\
+""",
 ]
 # This is handled in scripts.install.post.
 suppress-cdylib-install-fixme = true

                 reply	other threads:[~2026-09-30 19:56 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=179079820561.1.15602970399060765322.rpms-rust-libcramjam-385bbde3c11b@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