lighttpd: fix plugin malformed dependencies
authorAlarcon Laurent <redacted>
Wed, 24 Dec 2025 08:28:19 +0000 (09:28 +0100)
committerHannu Nyman <redacted>
Tue, 30 Dec 2025 10:13:16 +0000 (12:13 +0200)
commitee21a8b22747365c5932f02b9d2dd42041e7a373
tree334cde9030bd7138a6ebbd6a2f2dc76d0c6e95ee
parentcab93eb528329628cfe7b5e883f35e106afe650b
lighttpd: fix plugin malformed dependencies

Dependencies for plugin authn_gssapi, authn_ldap, authn_pam, authn_dbi
and authn_sasl are not correctly written.

This cause lighttpd package to always compile krb5-libs, libopenldap and
libpam, even if not selected

Before the fix:

grep -e libpam -e krb5-libs -e libopenldap .config
\# CONFIG_PACKAGE_libpam is not set
\# CONFIG_PACKAGE_libopenldap is not set
\# CONFIG_PACKAGE_krb5-libs is not set

make | grep -e libpam -e krb5 -e ldap
make[3] -C feeds/packages/net/krb5 compile
make[3] -C feeds/packages/libs/libpam compile
make[3] -C feeds/packages/libs/openldap compile

With the fix:

make | grep -e libpam -e krb5 -e ldap
"nothing compiled"

Check that fix works when mod-authn tokens are
selected (select lighttpd-mod-authn_xxx):

grep lighttpd-mod-authn .config
CONFIG_PACKAGE_lighttpd-mod-authn_file=y
CONFIG_PACKAGE_lighttpd-mod-authn_gssapi=m
CONFIG_PACKAGE_lighttpd-mod-authn_ldap=m
CONFIG_PACKAGE_lighttpd-mod-authn_pam=y

make | grep -e libpam -e krb5 -e ldap
make[3] -C feeds/packages/net/krb5 compile
make[3] -C feeds/packages/libs/libpam compile
make[3] -C feeds/packages/libs/openldap compile

x-ref:
  "lighttpd: Malformed dependencies cause unselected packages to be compiled"
  https://github.com/openwrt/packages/pull/28157

github: closes #28157

Signed-off-by: Alarcon Laurent <redacted>
Signed-off-by: Glenn Strauss <redacted>
net/lighttpd/Makefile
git clone https://git.99rst.org/PROJECT