mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
usbutils: Split out lsusb.py
The pretty-printing "lsusb.py" script shipped by usbutils is currently
useless, as it doesn't runtime depend on python, and has unversioned
python in the shebang.
Avoid adding a python dependency to current configurations with usbutils
buy splitting lsusb.py into a usbutils-python package, and make it
runtime depend on python3-core.
Make the script usable by replacing the shebang with a direct call to
${bindir}/python3.
(From OE-Core rev: 42af9fedd31ecf5c6210d2f85f20540f85da59f4)
Signed-off-by: Martin Hundebøll <mnhu@prevas.dk>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
74891289d8
commit
d0bad10a13
@@ -22,3 +22,11 @@ FILES_${PN}-dev += "${datadir}/pkgconfig"
|
||||
|
||||
RRECOMMENDS_${PN} = "udev-hwdb"
|
||||
RDEPENDS_${PN}-ptest = "libboost-system libboost-thread"
|
||||
|
||||
PACKAGE_BEFORE_PN =+ "${PN}-python"
|
||||
FILES_${PN}-python += "${bindir}/lsusb.py"
|
||||
RDEPENDS_${PN}-python = "python3-core"
|
||||
|
||||
do_install_append() {
|
||||
sed -i -E '1s,#!.+python,#!${bindir}/python3,' ${D}${bindir}/lsusb.py
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user