Bug 2022179 - Review Request: rust-hidapi - Rust-y wrapper around hidapi
Summary: Review Request: rust-hidapi - Rust-y wrapper around hidapi
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2022176 2022178
TreeView+ depends on / blocked
 
Reported: 2021-11-11 01:50 UTC by Link Dupont
Modified: 2021-12-11 01:29 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-12-11 01:29:59 UTC
Type: ---
Embargoed:
ngompa13: fedora-review+


Attachments (Terms of Use)

Comment 1 Neal Gompa 2021-11-14 12:51:01 UTC
Taking this review.

Comment 2 Neal Gompa 2021-11-14 13:06:11 UTC
There seems to be a couple things wrong with this crate package:

* The build dependency "libusb-devel" is wrong, as the crate sources don't actually ask for libusb-0.1 at all (it wants libusb1 instead)
* The default feature set in cargo can't be used since we don't ship the static library for hidraw or libusb1

This crate needs work to be packaged properly.

The following things need to happen here:

* The "static" feature subpackages need to be removed, as we don't have the static libraries for them
* The crate's "default" feature set needs to be changed to "LINUX_SHARED_HIDRAW" in the Cargo.toml: https://github.com/ruabmbua/hidapi-rs/blob/master/Cargo.toml
* The "static" features in Cargo.toml need to be removed, so that we don't generate dependencies for them
* The BuildRequires needs to be switched to "pkgconfig(hidapi-hidraw)"
* The +linux-shared-hidraw-devel subpackage needs "Requires: pkgconfig(hidapi-hidraw)"
* The +linux-shared-libusb-devel subpackage needs "Requires: pkgconfig(hidapi-libusb)"

Comment 4 Neal Gompa 2021-11-15 07:41:36 UTC
Package was generated through rust2rpm, simplifying the review considerably.

- Conforms to packaging guidelines (rust2rpm generated spec)
- license correct and valid
- only sources installed

PACKAGE APPROVED.

Comment 5 Gwyn Ciesla 2021-11-15 17:54:06 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/rust-hidapi

Comment 6 Fedora Update System 2021-11-29 18:18:04 UTC
FEDORA-2021-01f7520709 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-01f7520709

Comment 7 Fedora Update System 2021-11-30 02:19:31 UTC
FEDORA-2021-01f7520709 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-01f7520709 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-01f7520709

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

Comment 8 Fedora Update System 2021-12-02 17:49:14 UTC
FEDORA-2021-01f7520709 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-01f7520709

Comment 9 Fedora Update System 2021-12-03 01:48:23 UTC
FEDORA-2021-01f7520709 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf install --enablerepo=updates-testing --advisory=FEDORA-2021-01f7520709 \*`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-01f7520709

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

Comment 10 Fedora Update System 2021-12-11 01:29:59 UTC
FEDORA-2021-01f7520709 has been pushed to the Fedora 35 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.