coreutils: Adjust coreutils dependency in each app to be selective
authorHannu Nyman <[email protected]>
Sat, 15 Mar 2025 19:33:22 +0000 (21:33 +0200)
committerHannu Nyman <[email protected]>
Sun, 16 Mar 2025 18:14:49 +0000 (20:14 +0200)
Adjust the dependency to the virtual coreutils main package in
each app to be selective. Otherwise you need to first select the
main coreutils before the actuall apps can be selected. That has
prevented other applications from depending on just one individual
coreutils app, as they have needed to depend also on the empty main
coreutils package.

Reference to discussion in:
https://github.com/openwrt/luci/issues/7605

Signed-off-by: Hannu Nyman <[email protected]>
utils/coreutils/Makefile

index ace65675e60f70d4557fd7a696df54c2002b4b00..8e6bf8b097f626b68e4e5f94b82638b9fb6a2914 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=coreutils
 PKG_VERSION:=9.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@GNU/coreutils
@@ -95,7 +95,7 @@ endef
 define GenPlugin
  define Package/$(1)
    $(call Package/coreutils/Default)
-   DEPENDS:=coreutils $(DEPENDS_$(2))
+   DEPENDS:=+coreutils $(DEPENDS_$(2))
    TITLE:=Utility $(2) from the GNU core utilities
    ALTERNATIVES:=$(ALTS_$(2))
  endef