[openwrt/openwrt] uclient: provide virtual wget-any

LEDE Commits lede-commits at lists.infradead.org
Fri Jan 16 08:13:11 PST 2026


robimarko pushed a commit to openwrt/openwrt.git, branch openwrt-25.12:
https://git.openwrt.org/6543c6800bfb6047397abe0968f05c8d86f77397

commit 6543c6800bfb6047397abe0968f05c8d86f77397
Author: George Sapkin <george at sapk.in>
AuthorDate: Fri Jan 2 16:26:40 2026 +0200

    uclient: provide virtual wget-any
    
    Packages shouldn't provide a package that another package, in this case
    wget from packages provides. Explicitly provide a virtual @wget-any
    instead to match the implicit wget provide and switch the only consumer
    to use the new provider.
    
    Set uclient-fetch as the default variant for wget-any.
    
    Signed-off-by: George Sapkin <george at sapk.in>
    Link: https://github.com/openwrt/openwrt/pull/21369
    (cherry picked from commit af1fa176c31368e5e56c5a1f31d8a12273536378)
    Link: https://github.com/openwrt/openwrt/pull/21547
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/libs/uclient/Makefile | 5 +++--
 package/system/apk/Makefile   | 4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/package/libs/uclient/Makefile b/package/libs/uclient/Makefile
index 6d73916b3e..7d1ff4fdd3 100644
--- a/package/libs/uclient/Makefile
+++ b/package/libs/uclient/Makefile
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=uclient
-PKG_RELEASE=1
+PKG_RELEASE=2
 
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_URL=$(PROJECT_GIT)/project/uclient.git
@@ -34,7 +34,8 @@ define Package/uclient-fetch
   CATEGORY:=Network
   TITLE:=Tiny wget replacement using libuclient
   ALTERNATIVES:=200:/usr/bin/wget:/bin/uclient-fetch
-  PROVIDES:=wget
+  DEFAULT_VARIANT:=1
+  PROVIDES:=@wget-any
   DEPENDS:=+libuclient
 endef
 
diff --git a/package/system/apk/Makefile b/package/system/apk/Makefile
index 25a2b0a9a2..130cff233b 100644
--- a/package/system/apk/Makefile
+++ b/package/system/apk/Makefile
@@ -1,7 +1,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=apk
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE_URL=https://gitlab.alpinelinux.org/alpine/apk-tools.git
 PKG_SOURCE_PROTO:=git
@@ -26,7 +26,7 @@ define Package/apk/default
   SECTION:=base
   CATEGORY:=Base system
   TITLE:=apk package manager
-  DEPENDS:=+zlib +wget
+  DEPENDS:=+zlib +wget-any
   URL:=$(PKG_SOURCE_URL)
   PROVIDES:=apk
 endef




More information about the lede-commits mailing list