From 5d71d9a4be811d6bb494fa79c23f792c00f0f005 Mon Sep 17 00:00:00 2001 From: Eric Fahlgren Date: Sun, 8 Mar 2026 09:57:57 -0700 Subject: [PATCH] firewall4: prefer over firewall as dependency When the virtual package "uci-firewall" is installed, the choice between "firewall" and "firewall4" is arbitrary, sometimes resulting in one, sometimes the other. Set the default variant on "firewall4" to make it the preferred package when installed as a dependency. Link: https://forum.openwrt.org/t/owut-openwrt-upgrade-tool/200035/1126 Signed-off-by: Eric Fahlgren Link: https://github.com/openwrt/openwrt/pull/22328 Signed-off-by: Hauke Mehrtens --- package/network/config/firewall4/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/network/config/firewall4/Makefile b/package/network/config/firewall4/Makefile index fd17785099..6ae34ea89a 100644 --- a/package/network/config/firewall4/Makefile +++ b/package/network/config/firewall4/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=firewall4 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL=$(PROJECT_GIT)/project/firewall4.git @@ -28,6 +28,7 @@ define Package/firewall4 +ucode +ucode-mod-fs +ucode-mod-ubus +ucode-mod-uci EXTRA_DEPENDS:=ucode (>=2022.03.22) PROVIDES:=uci-firewall + DEFAULT_VARIANT:=1 endef define Package/firewall4/description