tree-wide: remove obsolete SDK in conditionals
authorDaniel F. Dickinson <redacted>
Mon, 29 Dec 2025 01:26:51 +0000 (20:26 -0500)
committerJosef Schlehofer <redacted>
Mon, 29 Dec 2025 23:16:16 +0000 (00:16 +0100)
commit73d8b6c6f3ed25dcba6d4609c9e3995fb48dc48d
treed0ffb266892f7cba02e33cb3bb0b8d2aa4b1c6f5
parentb0670ac101d2ea2ad44e35ab7333d69a9c781ac7
tree-wide: remove obsolete SDK in conditionals

Obsolete use of $(SDK) in configure conditionals can result in
dependency errors when building a subset of packages for packages which
have multiple sub-packages.

The reason it causes dependency issues is that (using libdbi-drivers as
an example) lines like:

ifneq ($(SDK)$(CONFIG_PACKAGE_libdbd-sqlite3),)

always evaluate to true if you are compiling in the SDK. So for a user
compiling from the SDK, the configure arguments are always added to the package build.

In the case of libdbi-drivers:

CONFIGURE_ARGS += \
  --with-sqlite3 \
  --with-sqlite3-incdir=$(STAGING_DIR)/usr/include \
  -with-sqlite3-libdir=$(STAGING_DIR)/usr/lib

is always added even if PACKAGE_libdbd-sqlite3 is deselected. When
libdbd-sqlite3 is deselected, this dependency:

DEPENDS:=libdbi +libsqlite3

is not present, so when configure tries to find sqlite3 it fails.

Closes #28173 "tree-wide: obsolete $(SDK) in conditionals"

See also:

* "include: remove SDK exception from package install targets"
  openwrt/openwrt@28f44a4

Performed tree-wide to ease revert if necessary, per:
https://github.com/openwrt/packages/issues/28173#issuecomment-3694615980

Signed-off-by: Daniel F. Dickinson <redacted>
lang/php8/Makefile
libs/libdbi-drivers/Makefile
net/freeradius3/Makefile
net/lighttpd/Makefile
net/ulogd/Makefile
utils/ntfs-3g/Makefile
git clone https://git.99rst.org/PROJECT