Package dependency question
Alexander Wilhelm
alexander.wilhelm at westermo.com
Thu Apr 16 03:09:58 PDT 2026
Hello devs,
I am currently running into the following issue that I am trying to resolve.
When I define a package, I want to resolve dependencies or enable other
packages. For example, I set the following:
define Package/wifi-common
DEPENDS := +wpad-openssl +hostapd-utils
endef
However, this inevitably leads to conflicts:
tmp/.config-package.in:110830: error: recursive dependency detected!
tmp/.config-package.in:110830: symbol PACKAGE_wpad-openssl is selected by PACKAGE_wifi-common
tmp/.config-package.in:133246: symbol PACKAGE_wifi-common depends on PACKAGE_wpad-openssl
What I do not understand is why there is a conflict here, since my intention is
to have both packages selected. As an alternative, I could use
`Package/wifi-common/config` section and explicitly select
`PACKAGE_wpad-openssl` and `PACKAGE_hostapd-utils`, but it is unclear to me
whether this would correctly resolve dependencies, or whether this just enforces
fixed Kconfig selections.
Can anyone help me understand what the correct approach is here?
Best regards
Alexander Wilhelm
More information about the openwrt-devel
mailing list