feat: add rust-md5 component (required for clamav 1.5.2 upgrade)#17851
Draft
binujp wants to merge 1 commit into
Draft
feat: add rust-md5 component (required for clamav 1.5.2 upgrade)#17851binujp wants to merge 1 commit into
binujp wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds the rust-md5 component, packaging the Fedora md5 crate (v0.7.0) into Azure Linux. It is an unmodified upstream import intended as a prerequisite dependency for a future ClamAV 1.5.2 upgrade, whose libclamav_rust uses this crate (distinct from the already-present rust-md-5/md-5 RustCrypto crate). The change is purely additive and self-contained, following the standard Rust crate import workflow.
Changes:
- Registers
rust-md5as an inline, unmodified Fedora import inbase/comps/components.toml, correctly sorted betweenrust-md-5_0.9andrust-md5-asm. - Adds the rendered spec, source checksum, and lock file for crate
md50.7.0 (producingrust-md5-devel,rust-md5+default-devel,rust-md5+std-devel).
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
base/comps/components.toml |
Adds the [components.rust-md5] registry entry, alphabetically placed. |
specs/r/rust-md5/rust-md5.spec |
Standard rust2rpm rendered spec for crate md5 0.7.0 with the three devel subpackages. |
specs/r/rust-md5/sources |
SHA512 checksum for md5-0.7.0.crate. |
locks/rust-md5.lock |
azldev-managed lock pinning the upstream/import commit and input fingerprints. |
f4cd029 to
9e3aa95
Compare
Copilot stopped reviewing on behalf of
binujp due to an error
June 29, 2026 22:55
Add the rust-md5 crate (version 0.7.0) from Fedora. This crate is a direct dependency of ClamAV 1.5.2's libclamav_rust for computing MD5 hashes of CVD signature database files. Note: rust-md5 is distinct from rust-md-5 (already in AZL4): - rust-md5 (crate: md5, v0.7.0) — from github.com/stainless-steel/md5. Simple, standalone MD5 implementation with its own API (md5::compute(), returns md5::Digest). Used by ClamAV. - rust-md-5 (crate: md-5, v0.10.6) — from the RustCrypto project. Implements the RustCrypto Digest trait interface (md5::Md5::new(), update(), finalize()). Part of the broader RustCrypto hash family. They are different crates with incompatible APIs; one cannot substitute for the other. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
43e2670 to
f5e3030
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the
rust-md5crate (version 0.7.0) from Fedora. This is a direct dependency of ClamAV 1.5.2'slibclamav_rustfor computing MD5 hashes of CVD signature database files.Note on rust-md5 vs rust-md-5
rust-md5 (crate:
md5, v0.7.0) — from github.com/stainless-steel/md5. Simple, standalone MD5 implementation with its own API (md5::compute(), returnsmd5::Digest). Used by ClamAV.rust-md-5 (crate:
md-5, v0.10.6, already in AZL4) — from the RustCrypto project. Implements the RustCryptoDigesttrait interface (md5::Md5::new(),update(),finalize()). Part of the broader RustCrypto hash family.They are different crates with incompatible APIs; one cannot substitute for the other.
Testing
azldev comp build -p rust-md5— builds successfully, producesrust-md5-devel,rust-md5+default-devel,rust-md5+std-develsubpackages.