Bug 2297189 (rust-open-enum) - Review Request: rust-open-enum - Attribute for generating "open" fieldless enums that accept any integer value
Summary: Review Request: rust-open-enum - Attribute for generating "open" fieldless en...
Keywords:
Status: CLOSED ERRATA
Alias: rust-open-enum
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/open-enum
Whiteboard:
Depends On: 2297188
Blocks: rust-igvm_defs
TreeView+ depends on / blocked
 
Reported: 2024-07-10 18:57 UTC by Oliver Steffen
Modified: 2025-04-16 09:33 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-04-16 09:33:58 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)

Description Oliver Steffen 2024-07-10 18:57:49 UTC
Spec URL: https://osteffen.fedorapeople.org/packages/rust-open-enum/rust-open-enum.spec
SRPM URL: https://osteffen.fedorapeople.org/packages/rust-open-enum/rust-open-enum-0.5.2-1.fc41.src.rpm
Description: Attribute for generating "open" fieldless enums that accept any integer value
Fedora Account System Username: osteffen

This crate is packaged directly from crates.io.

It depends on rust-open-enum-derive (https://bugzilla.redhat.com/show_bug.cgi?id=2297188)

This is part of the effort to add the Coconut-SVSM paravisor to Fedora.
It would enables Fedora virtualization hosts to launch confidential
virtual machines using AMD's SEV-SNP technology.
See https://fedoraproject.org/wiki/Changes/ConfidentialVirtHostAMDSEVSNP

Comment 1 Fedora Review Service 2024-07-10 21:43:39 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7723523
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2297189-rust-open-enum/fedora-rawhide-x86_64/07723523-rust-open-enum/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 Oliver Steffen 2025-04-07 12:18:18 UTC
Spec URL: https://osteffen.fedorapeople.org/packages/rust-open-enum/rust-open-enum.spec
SRPM URL: https://osteffen.fedorapeople.org/packages/rust-open-enum/rust-open-enum-0.5.2-1.fc42.src.rpm
Description: Attribute for generating "open" fieldless enums that accept any integer value
Fedora Account System Username: osteffen

This crate is packaged directly from crates.io.

It depends on rust-open-enum-derive (https://bugzilla.redhat.com/show_bug.cgi?id=2297188)

This is part of the effort to add the Coconut-SVSM paravisor to Fedora.
It would enables Fedora virtualization hosts to launch confidential
virtual machines using AMD's SEV-SNP technology.
See https://fedoraproject.org/wiki/Changes/ConfidentialVirtHostAMDSEVSNP

Updated the spec file and srpm, dependency rust-open-enum-derive was added to rawhide.

Comment 3 Fedora Review Service 2025-04-07 12:27:17 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8867410
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2297189-rust-open-enum/fedora-rawhide-x86_64/08867410-rust-open-enum/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 4 Fabio Valentini 2025-04-07 13:30:20 UTC
Taking this review.

There's some things that need to be addressed, but they're inter-related.

You left some FIXME items generated by rust2rpm in the spec file without ... fixing them:

> # FIXME: paste output of %%cargo_license_summary here
> License:        # FIXME

Incidentally, it looks like that "test_lints" executable only serves some test purpose,
and probably shouldn't even be shipped as a package in Fedora.

You can prevent generation of this subpackage with a rust2rpm.toml config file like this:

```
[package]
cargo-install-bin = false
```

Comment 5 Oliver Steffen 2025-04-07 16:50:48 UTC
Sorry about that. Fixed it.

Comment 6 Fabio Valentini 2025-04-08 13:43:11 UTC
No need to be sorry - sometimes this is too easy to miss.
It might be good to have rust2rpm print a warning in this case, that the generated spec file has FIXME items in it that need to be addressed.

===

Package looks good to me now. I see that you're also trimming the Summary to be within expected length limits, you can also make this permanent with a rust2rpm.toml setting:

```
[package]
summary = "Attribute for generating "open" fieldless enums that accept any integer value"
cargo-install-bin = false
```

Don't forget to also commit the rust2rpm.toml file you have to dist-git on import, it's only useful if kept around :)

===

Package was generated with rust2rpm, simplifying the review.

✅ package contains only permissible content
✅ package builds and installs without errors on rawhide
✅ test suite is run and all unit tests pass
✅ latest version of the crate is packaged
✅ license matches upstream specification 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 (*NOT* pre-release filter): alpha;beta;rc;pre
  distro: Fedora
  Package: rust-$crate

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

Comment 7 Fedora Admin user for bugzilla script actions 2025-04-11 12:21:21 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-open-enum

Comment 8 Fedora Update System 2025-04-16 09:31:37 UTC
FEDORA-2025-b8a9b073dd (rust-open-enum-0.5.2-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b8a9b073dd

Comment 9 Fedora Update System 2025-04-16 09:33:58 UTC
FEDORA-2025-b8a9b073dd (rust-open-enum-0.5.2-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


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