Bug 2419808 - Review Request: rust-crc32-v2 - Port of the CRC-32 algorithm to Rust
Summary: Review Request: rust-crc32-v2 - Port of the CRC-32 algorithm to Rust
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/crc32-v2
Whiteboard:
Depends On:
Blocks: 2323264
TreeView+ depends on / blocked
 
Reported: 2025-12-07 21:44 UTC by Peter Robinson
Modified: 2026-01-15 20:57 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
decathorpe: fedora-review?


Attachments (Terms of Use)

Description Peter Robinson 2025-12-07 21:44:48 UTC
SPEC: https://pbrobinson.fedorapeople.org/rust-crc32-v2.spec
SRPM: https://pbrobinson.fedorapeople.org/rust-crc32-v2-0.0.5-1.fc43.src.rpm

Description:
Port of the CRC-32 algorithm to Rust

FAS: pbrobinson

koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=139808691

Fails with s390x

Reproducible: Always

Comment 1 Peter Robinson 2025-12-07 21:46:39 UTC
> Fails with s390x

Tests fail with s390x

Comment 2 Fedora Review Service 2025-12-07 21:47:57 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/9883774
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2419808-rust-crc32-v2/fedora-rawhide-x86_64/09883774-rust-crc32-v2/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 3 Fabio Valentini 2026-01-09 10:51:24 UTC
> Tests fail with s390x

Can you report this upstream please?

Alternatively: I am wondering why binwalk even uses this crate. There's no trail in the commit log for *why* it was chosen, it's just added in the initial import of the Rust rewrite.

The crc32fast crate has almost 1000x (!) more downloads from crates.io. Maybe binwalk can switch to that one?

Comment 4 Peter Robinson 2026-01-15 12:19:36 UTC
> Alternatively: I am wondering why binwalk even uses this crate. There's no
> trail in the commit log for *why* it was chosen, it's just added in the
> initial import of the Rust rewrite.
y 
I'm not really involved in the upstream so I'm not able to answer that. I took on the Fedora maintainership as it's something I use in the IoT ecosystem in Fedora.

> The crc32fast crate has almost 1000x (!) more downloads from crates.io.
> Maybe binwalk can switch to that one?

Again being a consumer of binwalk I am not the person to make that arguement upstream, would appreciate if you took that discussion upstream as you're by far the expert in the details.

Comment 5 Fabio Valentini 2026-01-15 20:57:41 UTC
You are the binwalk package maintainer, you are better positioned to approach the upstream project than I am.

I made the suggestion to possibly switch to crc32fast because it would be *less work* to ask binwalk upstream about this than dealing with the test/build failures in a library that is not very widely used and not yet packaged for Fedora.

If you want to continue with this review, then you will still need to make sure that it builds (and to investigate / report / fix test failures - within reason). I can't approve a package that doesn't build.


Note You need to log in before you can comment on or make changes to this bug.