Bug 2181029

Summary: Review Request: rust-userfaultfd-sys - Low-level bindings for userfaultfd functionality on Linux
Product: [Fedora] Fedora Reporter: fedora.dm0
Component: Package ReviewAssignee: Fabio Valentini <decathorpe>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: decathorpe, package-review
Target Milestone: ---Flags: decathorpe: fedora-review+
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://crates.io/crates/userfaultfd-sys
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-27 13:26:49 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2181028, 2181039    

Description fedora.dm0 2023-03-22 21:47:41 UTC
Spec URL: https://github.com/dm0-/copr-firecracker/raw/fedora/rust-userfaultfd-sys.spec
SRPM URL: https://github.com/dm0-/copr-firecracker/raw/fedora/rust-userfaultfd-sys-0.4.3-1.fc37.src.rpm
Description: Low-level bindings for userfaultfd functionality on Linux.
Fedora Account System Username: dm0

This is a dependency of the userfaultfd crate.  The spec is automatically generated, except to add a patch to switch the bindgen version to one available in Fedora and to disable tests by default (they expect exact matches of old kernel feature flags and fail).

Comment 1 Jakub Kadlčík 2023-03-22 21:57:05 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/5696269
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2181029-rust-userfaultfd-sys/fedora-rawhide-x86_64/05696269-rust-userfaultfd-sys/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 2 Fabio Valentini 2023-03-23 14:33:19 UTC
Package looks good to me, just two comments:

1. You can partially automate generating patches for Cargo.toml files with "rust2rpm -p".

This also ensures that any changes to Cargo.toml that can affect contents of generated spec files are taken into account correctly (i.e. cargo metadata that's used for generating the spec file is loaded *after* the patch is applied).

2. When I previously worked on this package (before it was removed from Fedora 37+), I was able to run most tests:

https://src.fedoraproject.org/rpms/rust-userfaultfd-sys/blob/f36/f/rust-userfaultfd-sys.spec#_91-92

It might be worth investigating if skipping this one test still makes the rest of the test suite pass.

=====

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 (test suite is disabled with justification)
- 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.

===

You can now proceed with filing the unretirement request:
https://pagure.io/releng/new_issue (select package_unretirement template in issue "Types" dropdown)

Comment 3 fedora.dm0 2023-03-24 14:34:59 UTC
I've updated this package to re-enable tests by default and skip the broken one and to replace the patch with the automatic format.

Comment 4 fedora.dm0 2023-03-25 14:58:59 UTC
Unretire request: https://pagure.io/releng/issue/11356

Comment 5 Fedora Update System 2023-03-27 13:20:50 UTC
FEDORA-2023-39a28215e1 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-39a28215e1

Comment 6 Fedora Update System 2023-03-27 13:20:51 UTC
FEDORA-2023-77e17cf235 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-77e17cf235

Comment 7 Fabio Valentini 2023-03-27 15:15:47 UTC
(In reply to fedora.dm0 from comment #3)
> I've updated this package to re-enable tests by default and skip the broken
> one and to replace the patch with the automatic format.

Great, looks good to me. Thanks!

Comment 8 Fedora Update System 2023-03-28 03:28:15 UTC
FEDORA-2023-77e17cf235 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-77e17cf235 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-77e17cf235

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2023-03-28 03:42:56 UTC
FEDORA-2023-39a28215e1 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-39a28215e1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2023-03-30 01:19:36 UTC
FEDORA-2023-77e17cf235 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2023-03-31 01:33:40 UTC
FEDORA-2023-39a28215e1 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.