Bug 31518

Summary: {PKG REQUEST}python-pyusb - USB access on the Python language
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: New RPM package requestAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: Normal CC: davidwhodgins, lovaren
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: python-pyusb CVE:
Status comment:
Attachments: Proposal spec file

Description Kristoffer Grundström 2023-02-06 19:13:17 CET
Description of problem: I took the liberty of packaging python-pyusb for the upcoming Mageia release 9. Feel free to adapt the package if needed.

Version-Release number of selected component (if applicable): 1.2.1
Comment 1 Kristoffer Grundström 2023-02-06 19:13:37 CET
Created attachment 13682 [details]
Proposal spec file

CC: (none) => lovaren

Comment 2 Dave Hodgins 2023-02-06 19:31:53 CET
https://svnweb.mageia.org/packages/cauldron/python-pyusb/current/SPECS/python-pyusb.spec?revision=1827081&view=markup

Status: NEW => RESOLVED
CC: (none) => davidwhodgins
Resolution: (none) => INVALID

Comment 3 sturmvogel 2023-02-06 19:36:36 CET
A basic research would have shown that we have this package since Mageia 4….
Comment 4 Kristoffer Grundström 2023-02-06 19:45:05 CET
(In reply to sturmvogel from comment #3)
> A basic research would have shown that we have this package since Mageia 4….

(In reply to Dave Hodgins from comment #2)
> https://svnweb.mageia.org/packages/cauldron/python-pyusb/current/SPECS/
> python-pyusb.spec?revision=1827081&view=markup

I had the impression based on the answer from papoteur in the discuss ML conversation that we didn't have it.

Here is his reply and I quote:

"The problem is that we don't have "usb" python module.
What we have:
urpmq --provides python3-libusb1
python-libusb1[== 1.9.1-1.mga8]
python3-libusb1[== 1.9.1-1.mga8]
python3.8-libusb1[== 1.9.1-1.mga8]
python3.8dist(libusb1)[== 1.9.1]
python3dist(libusb1)[== 1.9.1]

urpmq --provides python3-pyusb
python3-pyusb[== 1.0.2-6.mga8]
python3.8dist(pyusb)[== 1.0.2]
python3dist(pyusb)[== 1.0.2]
pythonegg(3)(pyusb)[== 1.0.2]"
Comment 5 Kristoffer Grundström 2023-02-06 19:46:39 CET
I see it doesn't exist in Mageia for some reason. Can it be backported?
Comment 6 Dave Hodgins 2023-02-06 20:23:50 CET
On Mageia 8 ...
$ rpm -q -l python3-pyusb |grep libusb
/usr/lib/python3.8/site-packages/usb/backend/__pycache__/libusb0.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/usb/backend/__pycache__/libusb0.cpython-38.pyc
/usr/lib/python3.8/site-packages/usb/backend/__pycache__/libusb1.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/usb/backend/__pycache__/libusb1.cpython-38.pyc
/usr/lib/python3.8/site-packages/usb/backend/libusb0.py
/usr/lib/python3.8/site-packages/usb/backend/libusb1.py

It doesn't have a provides line in the spec file, but does produce the
libusb1.py file.