libudev-zero: backport hwdb USB ID lookup from upstream master
authorAlexandru Ardelean <redacted>
Wed, 13 May 2026 06:49:49 +0000 (09:49 +0300)
committerAlexandru Ardelean <redacted>
Thu, 21 May 2026 17:28:51 +0000 (20:28 +0300)
commit93759026fdf5aac84211a769d134b0c268c2b748
tree5434d0920929482fec59c12cc9154a487a146fcf
parent1f0bfd80c7cec57ccfd8c70e8801bd7a8df69e25
libudev-zero: backport hwdb USB ID lookup from upstream master

Replace the four stub udev_hwdb_*() functions with a working
implementation that looks up vendor and product names from
/usr/share/hwdata/usb.ids, so callers using the standard libudev
hwdb API benefit without needing package-specific patches.

The patch is a clean backport of upstream commit 2bebebc9e0444
("udev: implement hwdb USB ID lookup from usb.ids (#80)") merged
to illiliti/libudev-zero master on 2026-05-19, post-1.0.3. Drop
when the package is bumped to the next libudev-zero release.

Upstream now defaults USB_IDS_PATH to ${SHAREDIR}/hwdata/usb.ids
with SHAREDIR=${PREFIX}/share, so the explicit
USB_IDS_PATH=/usr/share/hwdata/usb.ids in MAKE_FLAGS is no longer
needed and is dropped.

Fixes: https://github.com/openwrt/packages/issues/29386
Signed-off-by: Alexandru Ardelean <redacted>
libs/libudev-zero/Makefile
libs/libudev-zero/patches/0004-udev-implement-hwdb-USB-ID-lookup-from-usb.ids.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT