golang: fix missing dependency check
authorGeorge Sapkin <redacted>
Fri, 30 Jan 2026 20:58:49 +0000 (22:58 +0200)
committerGeorge Sapkin <redacted>
Mon, 2 Feb 2026 08:10:03 +0000 (10:10 +0200)
Add libraries used in test data to extra_provides to pass dependency
checks in package-pack.

Remove unnecessary dependencies.

Fixes: https://github.com/openwrt/packages/issues/27633
Fixes: b2119465 ("golang: Update to 1.24.0")
Link: https://github.com/openwrt/packages/pull/28445
Signed-off-by: George Sapkin <redacted>
lang/golang/golang-version.mk

index 077377647040296781c6c39111130c2d1144bf48..507c36126cc9cdf6946eaf34613a7ce7ea7c8aaf 100644 (file)
@@ -92,7 +92,6 @@ endef
 define Package/$(PKG_NAME)-src
   $(call Package/$(PKG_NAME)/Default)
   TITLE+= (source files)
-  DEPENDS+= +libstdcpp +libtiff
   PROVIDES:=@golang-src
   $(if $(filter $(GO_DEFAULT_VERSION),$(GO_VERSION_MAJOR_MINOR)),DEFAULT_VARIANT:=1)
 endef
@@ -255,8 +254,7 @@ define Package/$(PKG_NAME)-src/install
 endef
 
 # src/debug contains ELF executables as test data and they reference these
-# libraries we need to call this in Package/$(GO_VERSION_MAJOR_MINOR)/extra_provides to pass
-# CheckDependencies in package-pack.mk
+# libraries we need to call this to pass CheckDependencies in package-pack.mk
 define Package/$(PKG_NAME)-src/extra_provides
-       echo 'libc.so.6'
+       echo 'libc.so.6' libstdc++.so.6' libtiff.so.6' | tr ' ' '\n'
 endef
git clone https://git.99rst.org/PROJECT