From b23e92c3ac8698b1c87fac583abffa343c428d23 Mon Sep 17 00:00:00 2001 From: Anand Kumar Date: Wed, 1 Apr 2026 12:39:32 +0000 Subject: [PATCH] wireguard-tools: use kconfig dependency for ip instead of runtime The conditional runtime dependency on the ip package was originally intended to only pull in the ip package when busybox ip is not configured. However, in APK-based builds the BUSYBOX_CONFIG_* variables may not be resolvable at package metadata generation time, causing the ip dependency to be unconditionally baked into the .apk package. This forces users to install ip-tiny or ip-full even though busybox already provides the ip command. Revert to the previous +@BUSYBOX_CONFIG_IP / +@BUSYBOX_CONFIG_FEATURE_IP_LINK kconfig-level dependencies. These ensure busybox ip support is enabled at config time without creating a runtime package dependency. Both options default to y, and wireguard.uc only uses basic ip link commands that busybox fully supports. Fixes: openwrt#22637 Signed-off-by: Anand Kumar Link: https://github.com/openwrt/openwrt/pull/22652 Signed-off-by: Robert Marko --- package/network/utils/wireguard-tools/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/network/utils/wireguard-tools/Makefile b/package/network/utils/wireguard-tools/Makefile index b5ebdf12cf..0c3a684436 100644 --- a/package/network/utils/wireguard-tools/Makefile +++ b/package/network/utils/wireguard-tools/Makefile @@ -35,8 +35,8 @@ define Package/wireguard-tools MAINTAINER:=Jason A. Donenfeld TITLE:=WireGuard userspace control program (wg) DEPENDS:= \ - +!BUSYBOX_CONFIG_IP:ip \ - +!BUSYBOX_CONFIG_FEATURE_IP_LINK:ip \ + +@BUSYBOX_CONFIG_IP \ + +@BUSYBOX_CONFIG_FEATURE_IP_LINK \ +kmod-wireguard endef