Upgraded usbutils from 015 to 017

This commit is contained in:
dslm4515
2023-12-21 23:34:58 -06:00
parent bf50af7137
commit b87fb80e07
2 changed files with 3 additions and 25 deletions

View File

@ -1,7 +1,7 @@
#! /bin/bash
# usbutils
# Source: https://github.com/gregkh/usbutils/archive/v015/usbutils-015.tar.gz
# Source: https://kernel.org/pub/linux/utils/usb/usbutils/usbutils-017.tar.xz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
@ -16,8 +16,6 @@ export CFLAGS="-march=native -mtune=native -pipe "
export CFLAGS+="-O3 -ffat-lto-objects -flto=4 "
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
patch -Np1 -i ../patches/usbutils-alpine/hwdata.patch &&
autoreconf -fiv &&
./configure --prefix=/usr --datadir=/usr/share/hwdata $BUILDTRUPLE &&
read -p "Compile?" && make -j2 &&
@ -54,7 +52,7 @@ usbutils:
usbutils:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/usbutils-015-$PSUFFIX &&
sudo -S makepkg -l y -c n $PKGS/usbutils-017-$PSUFFIX &&
cd /BMAN
cat > /tmp/slack-desc << "EOF"
usbutils-doc: Manuals for usbutils (USB utilities)
@ -66,6 +64,6 @@ usbutils-doc: usbmodules lists the kernel modules for a plugged in USB device.
usbutils-doc:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/usbutils-doc-015-$NOPSUFFIX
sudo -S makepkg -l y -c n $PKGS/usbutils-doc-017-$NOPSUFFIX
sudo -S rm -rf /BMAN/*
sudo -S rm -rf ${BUILD}/*

View File

@ -1,20 +0,0 @@
--- a/lsusb.py.in 2019-05-07 16:35:51.000000000 +0200
+++ b/lsusb.py.in 2019-08-15 19:15:29.010497407 +0200
@@ -67,7 +67,7 @@
return type('MyEnum', (), enums)
def parse_usb_ids():
- "Parse /usr/share/usb.ids and fill usbvendors, usbproducts, usbclasses"
+ "Parse /usr/share/hwdata/usb.ids and fill usbvendors, usbproducts, usbclasses"
vid = 0
did = 0
modes = myenum('Vendor', 'Class', 'Misc')
@@ -463,7 +463,7 @@
print(" -C, --no-color disable colors")
print(" -e, --endpoints display endpoint info")
print(" -f FILE, --usbids-path FILE")
- print(" override filename for /usr/share/usb.ids")
+ print(" override filename for /usr/share/hwdata/usb.ids")
print()
print("Use lsusb.py -ciu to get a nice overview of your USB devices.")