chrony: add provides logic to Makefile
authorPaul Donald <[email protected]>
Wed, 29 Oct 2025 14:48:57 +0000 (15:48 +0100)
committerTianling Shen <[email protected]>
Thu, 4 Dec 2025 11:48:00 +0000 (19:48 +0800)
This satisfies other packages which might depend on either chrony variant.

Should another package dependency request 'chrony', the default will be non-NTS
chrony via DEFAULT_VARIANT:=1 (mlichvar comment:  to avoid pulling its large
dependencies).

Signed-off-by: Paul Donald <[email protected]>
net/chrony/Makefile

index d491a97283acb79b71ea39da795ad80543500839..d7bf9a5330893becdcb98605bee6dc8b1f03a55c 100644 (file)
@@ -40,6 +40,7 @@ define Package/chrony
 $(call Package/chrony/Default)
   TITLE+= (without NTS)
   VARIANT:=normal
+  DEFAULT_VARIANT:=1
   CONFLICTS:=chrony-nts
 endef
 
@@ -48,6 +49,7 @@ $(call Package/chrony/Default)
   TITLE+= (with NTS)
   DEPENDS+= +PACKAGE_chrony-nts:libgnutls +PACKAGE_chrony-nts:ca-bundle
   VARIANT:=with-nts
+  PROVIDES:=chrony
 endef
 
 define Package/chrony/description