Bug 2351395 - Review Request: rust-vhost-device-gpu - Vhost-user gpu backend device
Summary: Review Request: rust-vhost-device-gpu - Vhost-user gpu backend device
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Sandro Bonazzola
QA Contact: Fedora Extras Quality Assurance
URL: https://crates.io/crates/vhost-device...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-11 15:49 UTC by Dorinda
Modified: 2025-03-17 18:02 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-03-17 18:02:54 UTC
Type: ---
Embargoed:
sbonazzo: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 8750599 to 8750686 (888 bytes, patch)
2025-03-11 16:35 UTC, Fedora Review Service
no flags Details | Diff
Suggested changes to the spec file (4.06 KB, patch)
2025-03-11 16:48 UTC, Sandro Bonazzola
no flags Details | Diff
The .spec file difference from Copr build 8750686 to 8753046 (3.65 KB, patch)
2025-03-12 09:22 UTC, Fedora Review Service
no flags Details | Diff
ELN build fixes (1.03 KB, patch)
2025-03-12 15:49 UTC, Sandro Bonazzola
no flags Details | Diff
The .spec file difference from Copr build 8753046 to 8768877 (1021 bytes, patch)
2025-03-14 15:23 UTC, Fedora Review Service
no flags Details | Diff

Comment 1 Fedora Review Service 2025-03-11 15:57:10 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8750599
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2351395-rust-vhost-device-gpu/fedora-rawhide-x86_64/08750599-rust-vhost-device-gpu/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 3 Fedora Review Service 2025-03-11 16:35:59 UTC
Created attachment 2079709 [details]
The .spec file difference from Copr build 8750599 to 8750686

Comment 4 Fedora Review Service 2025-03-11 16:36:01 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8750686
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2351395-rust-vhost-device-gpu/fedora-rawhide-x86_64/08750686-rust-vhost-device-gpu/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 5 Sandro Bonazzola 2025-03-11 16:48:04 UTC
Created attachment 2079711 [details]
Suggested changes to the spec file

Suggesting to add RHEL build support to the spec file.

Comment 6 Dorinda 2025-03-12 08:27:30 UTC
Thank you for the review and suggestion @sbonazzo I will apply this patch for the RHEL build support.

Comment 8 Fedora Review Service 2025-03-12 09:22:03 UTC
Created attachment 2079795 [details]
The .spec file difference from Copr build 8750686 to 8753046

Comment 9 Fedora Review Service 2025-03-12 09:22:05 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8753046
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2351395-rust-vhost-device-gpu/fedora-rawhide-x86_64/08753046-rust-vhost-device-gpu/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 10 Sandro Bonazzola 2025-03-12 14:07:33 UTC
Going to review this tomorrow morning.

Comment 11 Sandro Bonazzola 2025-03-12 14:46:42 UTC
`fedpkg --release eln mockbuild  --enablerepo local` (where local is the one provided by default with mock pointing to koji buildroot)

is failing with:

```
+ /usr/bin/env CARGO_HOME=.cargo 'RUSTFLAGS=-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes' /usr/bin/cargo build -j12 --profile rpm
error: failed to select a version for the requirement `mockall = "^0.11.4"`
candidate versions found which didn't match: 0.13.1
location searched: directory source `/builddir/build/BUILD/rust-vhost-device-gpu-0.1.0-build/vhost-device-gpu-0.1.0/vendor` (which is replacing registry `crates-io`)
required by package `vhost-device-gpu v0.1.0 (/builddir/build/BUILD/rust-vhost-device-gpu-0.1.0-build/vhost-device-gpu-0.1.0)`
perhaps a crate was updated and forgotten to be re-vendored?
```

I see

```
$ cargo vendor-filterer --platform x86_64-unknown-linux-gnu \
> --platform powerpc64le-unknown-linux-gnu \
> --platform aarch64-unknown-linux-gnu \
> --platform s390x-unknown-linux-gnu \
> --platform i686-unknown-linux-gnu
```

printing:

```
   Vendoring mockall v0.13.1 (/home/sbonazzo/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mockall-0.13.1) to vendor/mockall
   Vendoring mockall_derive v0.13.1 (/home/sbonazzo/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/mockall_derive-0.13.1) to vendor/mockall_derive
```

I'm not sure where the `mockall = "^0.11.4"` is being pulled in as a requirement. Can you check?

Comment 12 Sandro Bonazzola 2025-03-12 15:26:06 UTC
I see, it's coming from
```
# allow mockall 0.11.4 and tempfile <= 3.16.0 for now
Patch:          vhost-device-gpu-fix-metadata.diff
```

Can you change above with

```
%if %{without bundled_rust_deps}
# allow mockall 0.11.4 and tempfile <= 3.16.0 for now
Patch:          vhost-device-gpu-fix-metadata.diff
%endif
```

Comment 13 Sandro Bonazzola 2025-03-12 15:49:01 UTC
Created attachment 2079901 [details]
ELN build fixes

Attaching an additional patch to the spec file to make it build on ELN.

Comment 14 Dorinda 2025-03-12 17:13:48 UTC
> I see, it's coming from
> ```
> # allow mockall 0.11.4 and tempfile <= 3.16.0 for now
> Patch:          vhost-device-gpu-fix-metadata.diff
> ```
> 
> Can you change above with
> 
> ```
> %if %{without bundled_rust_deps}
> # allow mockall 0.11.4 and tempfile <= 3.16.0 for now
> Patch:          vhost-device-gpu-fix-metadata.diff
> %endif
> ```

I will add that patch. It seems, the patch wasn't applied for rhel build.

Comment 16 Fedora Review Service 2025-03-14 15:23:42 UTC
Created attachment 2080242 [details]
The .spec file difference from Copr build 8753046 to 8768877

Comment 17 Fedora Review Service 2025-03-14 15:23:44 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/8768877
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2351395-rust-vhost-device-gpu/fedora-rawhide-x86_64/08768877-rust-vhost-device-gpu/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 18 Sandro Bonazzola 2025-03-17 09:43:45 UTC
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
✅ licenses of statically linked dependencies are correctly taken into account
✅ license files are 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)

Comment 19 Fedora Admin user for bugzilla script actions 2025-03-17 12:50:38 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-vhost-device-gpu

Comment 20 Fedora Update System 2025-03-17 17:58:11 UTC
FEDORA-2025-bae18336d8 (rust-vhost-device-gpu-0.1.0-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-bae18336d8

Comment 21 Fedora Update System 2025-03-17 18:02:54 UTC
FEDORA-2025-bae18336d8 (rust-vhost-device-gpu-0.1.0-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.