Bug 2292550 - Review Request: rust-rusb - Rust library for accessing USB devices
Summary: Review Request: rust-rusb - Rust library for accessing USB devices
Keywords:
Status: CLOSED ERRATA
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/rusb
Whiteboard:
Depends On: 2292544 2292553
Blocks: 2292541
TreeView+ depends on / blocked
 
Reported: 2024-06-15 23:14 UTC by Jonathan Steffan
Modified: 2024-07-11 16:11 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-07-11 15:51:27 UTC
Type: ---
Embargoed:
decathorpe: fedora-review+


Attachments (Terms of Use)
The .spec file difference from Copr build 7662186 to 7677645 (844 bytes, patch)
2024-06-27 17:59 UTC, Fedora Review Service
no flags Details | Diff

Description Jonathan Steffan 2024-06-15 23:14:57 UTC
Spec URL: https://jsteffan.fedorapeople.org/envision/rust-rusb.spec
SRPM URL: https://jsteffan.fedorapeople.org/envision/rust-rusb-0.9.4-1.fc39/rust-rusb-0.9.4-1.fc40.src.rpm
Description: Rust library for accessing USB devices
Fedora Account System Username: jsteffan

Comment 1 Fedora Review Service 2024-06-15 23:15:13 UTC
Cannot find any valid SRPM URL for this ticket. Common causes are:

- You didn't specify `SRPM URL: ...` in the ticket description
  or any of your comments
- The URL schema isn't HTTP or HTTPS
- The SRPM package linked in your URL doesn't match the package name specified
  in the ticket summary


---
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 Jonathan Steffan 2024-06-24 19:03:37 UTC
[fedora-review-service-build]

Comment 3 Fedora Review Service 2024-06-24 19:06:48 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7662186
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2292550-rust-rusb/fedora-rawhide-x86_64/07662186-rust-rusb/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 4 Peter Hutterer 2024-06-27 07:27:04 UTC
I think the comments from #2292544 regarding the vendored-devel package apply here too?

Comment 5 Jonathan Steffan 2024-06-27 17:56:51 UTC
I've removed the vendored and added the needed BR.

Spec URL: https://jsteffan.fedorapeople.org/envision/rust-rusb.spec
SRPM URL: https://jsteffan.fedorapeople.org/envision/rust-rusb-0.9.4-1.fc39/rust-rusb-0.9.4-1.fc40.src.rpm

Comment 6 Fedora Review Service 2024-06-27 17:59:51 UTC
Created attachment 2038397 [details]
The .spec file difference from Copr build 7662186 to 7677645

Comment 7 Fedora Review Service 2024-06-27 17:59:53 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7677645
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2292550-rust-rusb/fedora-rawhide-x86_64/07677645-rust-rusb/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 8 Jonathan Steffan 2024-06-29 01:51:31 UTC
[fedora-review-service-build]

Comment 9 Fedora Review Service 2024-06-29 01:53:55 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7690098
(failed)

Build log:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2292550-rust-rusb/fedora-rawhide-x86_64/07690098-rust-rusb/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 10 Jonathan Steffan 2024-06-29 02:06:55 UTC
We are now waiting for `crate(libusb1-sys/default)` to hit the rawhide repo. It was included in the latest compose but is not yet in the repos (or the cache for fedora-review-service hasn't expired or sync'd yet).

Comment 11 Jonathan Steffan 2024-06-30 19:01:44 UTC
[fedora-review-service-build]

Comment 12 Fedora Review Service 2024-06-30 19:08:55 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/7694647
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2292550-rust-rusb/fedora-rawhide-x86_64/07694647-rust-rusb/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 13 Fabio Valentini 2024-07-03 16:45:57 UTC
> BuildRequires:  pkgconfig(libusb-1.0)

This should not be necessary if the correct Requires are present in rust-libusb1-sys. And indeed, the Requires is missing there.

You can add a rust2rpm.toml config file to rust-libusb1-sys like this one:

```
[requires]
build = ["pkgconfig(libusb-1.0"]
lib = ["pkgconfig(libusb-1.0"]
```

This will add the dependency on pkgconfig(libusb-1.0) as both BuildRequires and Requires in the -devel subpackage.

Comment 14 Fabio Valentini 2024-07-03 16:47:25 UTC
Ugh, typos. This should have been:

```
[requires]
build = ["pkgconfig(libusb-1.0)"]
lib = ["pkgconfig(libusb-1.0)"]
```

Comment 17 Fabio Valentini 2024-07-11 11:21:23 UTC
Perfect. Looks good to me!

===

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: 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 18 Fedora Admin user for bugzilla script actions 2024-07-11 15:36:45 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-rusb

Comment 19 Fedora Update System 2024-07-11 15:47:25 UTC
FEDORA-2024-033f6bd2dd (rust-rusb-0.9.4-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-033f6bd2dd

Comment 20 Fedora Update System 2024-07-11 15:51:27 UTC
FEDORA-2024-033f6bd2dd (rust-rusb-0.9.4-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Jonathan Steffan 2024-07-11 15:53:54 UTC
I used fedora-sig-onboard, very convenient.

Comment 22 Jonathan Steffan 2024-07-11 16:11:14 UTC
Need karma on the following so I can build for f40 and f39.

https://bodhi.fedoraproject.org/updates/FEDORA-2024-9759a91403
https://bodhi.fedoraproject.org/updates/FEDORA-2024-da1c65b4b2


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