Bug 2259330 - Review Request: rust-crypto_secretbox - Pure Rust implementation of the XSalsa20Poly1305
Summary: Review Request: rust-crypto_secretbox - Pure Rust implementation of the XSals...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/crypto_secre...
Whiteboard:
Depends On: 2259019
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-01-20 12:11 UTC by Mikel Olasagasti Uranga
Modified: 2024-01-26 09:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
decathorpe: fedora-review?


Attachments (Terms of Use)
The .spec file difference from Copr build 6926739 to 6952766 (472 bytes, patch)
2024-01-25 21:14 UTC, Fedora Review Service
no flags Details | Diff

Description Mikel Olasagasti Uranga 2024-01-20 12:11:44 UTC
Spec URL: https://mikel.olasagasti.info/tmp/fedora/rust-crypto_secretbox.spec
SRPM URL: https://mikel.olasagasti.info/tmp/fedora/rust-crypto_secretbox-0.1.1-1.fc39.src.rpm
Description: Pure Rust implementation of the XSalsa20Poly1305 (a.k.a. NaCl crypto_secretbox) authenticated encryption cipher as well as the libsodium variant of XChaCha20Poly1305.
Fedora Account System Username: mikelo2

Comment 1 Fedora Review Service 2024-01-21 05:55:08 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6926739
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2259330-rust-crypto_secretbox/fedora-rawhide-x86_64/06926739-rust-crypto_secretbox/builder-live.log.gz

Please make sure the package builds successfully at least for Fedora Rawhide.

- If the build failed for unrelated reasons (e.g. temporary network
  unavailability), please ignore it.
- If the build failed because of missing BuildRequires, please make sure they
  are listed in the "Depends On" field


---
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 2 Fabio Valentini 2024-01-25 20:58:18 UTC
Looks like the heuristics for getting a good Summary from the crate description failed here - can you update it please?
Maybe something like "Implementation of the XSalsa20Poly1305 and XChaCha20Poly1305 ciphers".

Comment 3 Mikel Olasagasti Uranga 2024-01-25 21:01:48 UTC
Spec URL: https://mikel.olasagasti.info/tmp/fedora/rust-crypto_secretbox.spec
SRPM URL: https://mikel.olasagasti.info/tmp/fedora/rust-crypto_secretbox-0.1.1-1.fc39.src.rpm

Changed summary with your proposal

Comment 4 Fedora Review Service 2024-01-25 21:14:33 UTC
Created attachment 2010570 [details]
The .spec file difference from Copr build 6926739 to 6952766

Comment 5 Fedora Review Service 2024-01-25 21:14:35 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6952766
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2259330-rust-crypto_secretbox/fedora-rawhide-x86_64/06952766-rust-crypto_secretbox/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 6 Fabio Valentini 2024-01-25 22:02:10 UTC
Thanks! Package looks good in general, but there's a missing optional dependency:

Failed to resolve the transaction:
Problem: conflicting requests
  - nothing provides (crate(chacha20/default) >= 0.9.0 with crate(chacha20/default) < 0.10.0~) needed by rust-crypto_secretbox+chacha20-devel-0.1.1-1.fc40.noarch
  - nothing provides (crate(chacha20/zeroize) >= 0.9.0 with crate(chacha20/zeroize) < 0.10.0~) needed by rust-crypto_secretbox+chacha20-devel-0.1.1-1.fc40.noarch

You will need to either disable the chacha20 support, or package the missing crate (chacha20 version 0.9.*).

Comment 7 Mikel Olasagasti Uranga 2024-01-26 08:58:48 UTC
Sorry Fabio, where did you see that one? 

Package is building fine in Rawhide. For F39 & F38 fails because "crate(poly1305/default)" is missing as I've not backported it yet, I'm focusing in rawhide for now.

Comment 8 Fabio Valentini 2024-01-26 09:03:39 UTC
This is not about *building* correctly but about *installing* correctly.

You can reproduce by running a local mock build with "--postinstall" or by attempting to install the results of a build in a rawhide mock chroot.

This happens for dependencies for features that are not enabled by default, which is fairly common in Rust crates. Which is why I always recommend to run test builds with "--postinstall".


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