Commit Graph

13 Commits

Author SHA1 Message Date
Alexandru Ardelean f10dfca2ba libudev-zero: update to 1.0.4
First upstream release since 2023-07. All four locally-carried patches
are merged in 1.0.4 and can be dropped:

- 0001 (PR #57): udev_device.c TOCTOU race fix
- 0002 (PR #62): avoid OOM on small systems
- 0003 (PR #66): correct touchpad detection
- 0004 (PR #80): hwdb USB ID lookup from usb.ids

The release also pulls in PR #79 (do not assume EV_REL and EV_ABS are
mutually exclusive in udev_device.c).

Release notes:
https://github.com/illiliti/libudev-zero/releases/tag/1.0.4

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
2026-05-25 20:06:09 +01:00
Alexandru Ardelean 93759026fd 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 <alex@shruggie.ro>
2026-05-21 20:28:51 +03:00
Daniel Golle 441c147179 libudev-zero: import upstream patches
udev_device.c: fix TOCTOU race condition (illiliti/libudev-zero#57)

illiliti/libudev-zero@a2cc51bb14

Avoidable OOM on small systems (illiliti/libudev-zero#62)

illiliti/libudev-zero@5eca08d71d

Fixes incorrect detection of touchpads (illiliti/libudev-zero#66)

illiliti/libudev-zero@bbeb7ad51c

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-07-12 13:18:49 +08:00
Jan Kardell c71217b57e libudev-zero: Fix license
Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
2025-05-22 23:27:12 +02:00
Taylor Brown ac57d43547 libudev-zero: bump to 1.0.3
libudev-zero bump to 1.0.3. Resolves bug with USBIP.

Error behavior with USBIP attach:
libusbip: error: no available ports
usbip: error: open vhci_driver
usbip: error: list imported devices

Expected behaviour - USBIP:
root@OpenWrt:~# usbip port
Imported USB devices

Signed-off-by: Taylor Brown <taylorami@hotmail.com>
2023-07-30 22:00:27 +01:00
Paul Fertser 0c10c224be treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 22:46:58 +02:00
Daniel Golle 669e4a9542 libudev-zero: update to version 1.0.1
The new version includes all previously locally backported patches.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2022-03-24 22:37:30 +00:00
Daniel Golle 36b9ff3c83 libudev-zero: update to version 1.0.0
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-10-09 17:02:53 +01:00
Daniel Golle 50bb46baaa libudev-zero: update to version 0.5.2
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-08-01 04:14:57 +01:00
Daniel Golle 7341e39768 libudev-zero: update to version 0.4.8
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2021-03-25 23:30:29 +00:00
Martin Schiller 41c2103621 libudev-zero: fix installation of so files.
Signed-off-by: Martin Schiller <ms@dev.tdt.de>
2020-11-18 07:34:11 +01:00
Daniel Golle 283d264d74 libudev-zero: update to version 0.4.5
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2020-11-15 21:20:33 +00:00
Rosen Penev b7ff78d6b4 libudev-zero: add
This is a more actively developed libudev shim.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-11-03 12:38:12 +00:00