Bug 2231007 - Review Request: rust-zerocopy-derive - Custom derive for traits from the zerocopy crate
Summary: Review Request: rust-zerocopy-derive - Custom derive for traits from the zero...
Keywords:
Status: CLOSED RAWHIDE
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/zerocopy-derive
Whiteboard:
Depends On:
Blocks: 2231013
TreeView+ depends on / blocked
 
Reported: 2023-08-10 11:16 UTC by Jakub Čajka
Modified: 2023-08-23 12:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-23 12:59:51 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)

Comment 1 Fedora Review Service 2023-08-10 11:18:58 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6263156
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2231007-rust-zerocopy/fedora-rawhide-x86_64/06263156-rust-zerocopy-derive/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 Jakub Čajka 2023-08-10 11:21:23 UTC
Build failure is due to the issues with GPG in f39 repos.

Comment 3 Fabio Valentini 2023-08-11 20:51:40 UTC
Two quick comments:

1. If you disable the %check bcond, then un-pinning trybuild is not necessary.
dev-dependencies are not included in generated BuildRequires when the check bcond is turned off. So you can just drop the patch in this case.

2. "rm -rf Cargo.lock" in %prep looks weird, and should be unnecessary. The %cargo_prep macro should already do this.

Comment 4 Jakub Čajka 2023-08-16 11:42:34 UTC
Thank you for quick comments. 
I would like to keep the trybuild patch, if that is non issues, like it breaks some tools/scripts that are used for the rust packaging.
Sorry for the left over rm statement and typos, all fixed in the recent build.
Spec URL: https://download.copr.fedorainfracloud.org/results/jcajka/zerocopy-derive/fedora-rawhide-x86_64/06304619-rust-zerocopy-derive/rust-zerocopy-derive.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/jcajka/zerocopy-derive/fedora-rawhide-x86_64/06304619-rust-zerocopy-derive/rust-zerocopy-derive-0.6.3-1.fc40.src.rpm

Comment 5 Fedora Review Service 2023-08-16 11:49:44 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/6304659
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2231007-rust-zerocopy-derive/fedora-rawhide-x86_64/06304659-rust-zerocopy-derive/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 2023-08-21 17:38:33 UTC
Thanks for the update, looks good to me now.

===

Package was generated with rust2rpm, simplifying the review.

- package builds and installs without errors on rawhide
! test suite is run and all unit tests pass (reason given)
- latest version of the crate is packaged
- license matches upstream specification (BSD-2-Clause) and is acceptable for Fedora
- license file is included with %license in %files
- package complies with Rust Packaging Guidelines

Package APPROVED.

===

Recommended post-import rust-sig tasks:

- set up package on release-monitoring.org:
  project: $crate
  homepage: https://crates.io/crates/$crate
  backend: crates.io
  version scheme: semantic
  version filter: alpha;beta;rc;pre
  distro: Fedora
  Package: rust-$crate

- add @rust-sig with "commit" access as package co-maintainer
  (should happen automatically)

- set bugzilla assignee overrides to @rust-sig (optional)

- track package in koschei for all built branches
  (should happen automatically once rust-sig is co-maintainer)

===

Please take care to import the original / unmodified version of the spec file, not the one that was already processed by rpmautospec.

Comment 7 Fedora Admin user for bugzilla script actions 2023-08-23 11:15:45 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-zerocopy-derive


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