libgpiod: make Python bindings optional
authorErnestas Kulik <redacted>
Thu, 16 Apr 2026 13:12:44 +0000 (16:12 +0300)
committerAlexandru Ardelean <redacted>
Sun, 3 May 2026 11:30:00 +0000 (14:30 +0300)
The python3-light dependency gets lugged even with the package disabled,
so this commit makes python3-light a conditional dependency, similar to
gensio in 0c245fda70d580737ee30cc39d42bcca6ddd7f3e.

Signed-off-by: Ernestas Kulik <redacted>
libs/libgpiod/Makefile

index 77bee5451ec44dcd0363bdfdd78b2dbd5e15d9a0..66e9c773306e9ce6b7699920ba2e10052496766a 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=libgpiod
 PKG_VERSION:=2.1.3
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@KERNEL/software/libs/libgpiod/
@@ -90,7 +90,7 @@ define Package/python3-gpiod
   SUBMENU:=Python
   TITLE:=Python bindings for libgpiod
   URL:=https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
-  DEPENDS:=+python3-light +libgpiod
+  DEPENDS:=+PACKAGE_python3-gpiod:python3-light +libgpiod
 endef
 
 define Package/python3-gpiod/description
git clone https://git.99rst.org/PROJECT