package/hidapi: propagate dependencies of libgudev
PATCH 1/1 package/hidapi: propagate dependencies of libgudev
Since hidapi was introduced in commit 6267f34afdd06ad848bbf7a2975cb279132b6ba0, it forgot to propagate some dependencies of libgudev (which existed back then). Initially libgudev was only needed when BR2_INIT_SYSTEMD=y, but still the dependencies were not propagated for the systemd case.
Anyway, since e739dd5a11f5b2bd9648a45623bc174adae42b6e, libgudev is a mandatory dependency of hidapi, independently from the selected init system.
We make sure to propagate all dependencies of libgudev to hidapi, and propagate them to the reverse dependencies of hidapi.
--- package/hidapi/Config.in | 8 ++++++-- package/libmanette/Config.in | 4 ++-- package/openfpgaloader/Config.in | 9 +++++++-- package/openocd/Config.in | 9 +++++++++ package/python-hid/Config.in | 8 ++++++-- 5 files changed, 30 insertions(+), 8 deletions(-)
package/hidapi/Config.in +6 -2
@@ -3,6 +3,8 @@ config BR2_PACKAGE_HIDAPI depends on BR2_PACKAGE_HAS_UDEV depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb + depends on BR2_USE_MMU # libgudev + depends on BR2_USE_WCHAR # libgudev select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBGUDEV select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
@@ -15,7 +17,9 @@ config BR2_PACKAGE_HIDAPI http://github.com/libusb/hidapi/ -comment "hidapi needs udev /dev management and a toolchain w/ NPTL, gcc >= 4.9" +comment "hidapi needs udev /dev management and a toolchain w/ NPTL, gcc >= 4.9, wchar" + depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ !BR2_PACKAGE_HAS_UDEV || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ + !BR2_USE_WCHAR
package/libmanette/Config.in +2 -2
@@ -1,7 +1,7 @@ config BR2_PACKAGE_LIBMANETTE bool "libmanette" - depends on BR2_USE_MMU # libglib2 - depends on BR2_USE_WCHAR # libglib2 -> gettext + depends on BR2_USE_MMU # libglib2, hidapi + depends on BR2_USE_WCHAR # libglib2, hidapi depends on BR2_PACKAGE_HAS_UDEV # hidapi depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
package/openfpgaloader/Config.in +7 -2
@@ -17,12 +17,17 @@ config BR2_PACKAGE_OPENFPGALOADER_CMSIS depends on BR2_PACKAGE_HAS_UDEV # hidapi depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hidapi -> libusb + depends on BR2_USE_MMU # hidapi + depends on BR2_USE_WCHAR # hidapi select BR2_PACKAGE_HIDAPI help openfpgaloader CMSIS-DAP support -comment "openfpgaloader CMSIS-DAP needs udev /dev management and a toolchain w/ NPTL threads" - depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS_NPTL +comment "openfpgaloader CMSIS-DAP needs udev /dev management and a toolchain w/ NPTL threads, gcc >= 4.9, wchar" + depends on BR2_USE_MMU + depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ + !BR2_USE_WCHAR config BR2_PACKAGE_OPENFPGALOADER_LIBGPIOD bool "libgpiod support"
package/openocd/Config.in +9 -0
@@ -16,12 +16,21 @@ config BR2_PACKAGE_OPENOCD_CMSIS_DAP depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # libusb depends on BR2_PACKAGE_HAS_UDEV # hidapi depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi + depends on BR2_USE_MMU # hidapi + depends on BR2_USE_WCHAR # hidapi select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_HIDAPI help Enable support for CMSIS-DAP compliant debuggers (i.e Atmel/Microchip EDBG, etc.) +comment "CMSIS-DAP support needs udev, toolchain w/ NPTL, gcc >= 4.9, wchar" + depends on BR2_USE_MMU + depends on !BR2_PACKAGE_HAS_UDEV || \ + !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ + !BR2_USE_WCHAR || \ + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 + config BR2_PACKAGE_OPENOCD_FTDI bool "MPSSE mode of FTDI based devices" depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
package/python-hid/Config.in +6 -2
@@ -3,13 +3,17 @@ config BR2_PACKAGE_PYTHON_HID depends on BR2_PACKAGE_HAS_UDEV # hidapi depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # hidapi depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # hidapi + depends on BR2_USE_MMU # hidapi + depends on BR2_USE_WCHAR # hidapi select BR2_PACKAGE_HIDAPI help ctypes bindings for hidapi. https://github.com/apmorton/pyhidapi -comment "python-hid needs udev /dev management and a toolchain w/ NPTL, gcc >= 4.9" +comment "python-hid needs udev /dev management and a toolchain w/ NPTL, gcc >= 4.9, wchar" + depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || \ !BR2_PACKAGE_HAS_UDEV || \ - !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 + !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \ + !BR2_USE_WCHAR
Signature · 6 lines
2.55.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 10 lines · Thomas Petazzoni via buildroot
Since hidapi was introduced in commit
6267f34afdd06ad848bbf7a2975cb279132b6ba0, it forgot to propagate some dependencies of libgudev (which existed back then). Initially libgudev was only needed when BR2_INIT_SYSTEMD=y, but still the dependencies were not propagated for the systemd case.Anyway, since
e739dd5a11f5b2bd9648a45623bc174adae42b6e, libgudev is a mandatory dependency of hidapi, independently from the selected init system.
Quoted 5 lines
We make sure to propagate all dependencies of libgudev to hidapi, and propagate them to the reverse dependencies of hidapi.
Fixes 6267f34afdd06ad848bbf7a2975cb279132b6ba0 ("hidapi: new package")Signed-off-by Thomas Petazzoni <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot