Skip to contentSkip to conversation

netdata: Enable network during do_compile only when go support is enabled

PATCH New Khem Raj 1 participant 1 message May 14, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 netdata: Enable network during do_compile only when go support is enabled

Makes the hammer a bit smaller, since we do not enable go by default in packageconfig's it helps with yocto check layer with default config.

---
 meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-webserver/recipes-webadmin/netdata/netdata_1.47.5.bb +1 -1
index 7693335dac..f18c979685 100644
@@ -50,7 +50,7 @@ CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'go', \
 INSANE_SKIP:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'go', 'already-stripped buildpaths', '', d)}"
 
 # network is required by go to get dependent packages
-do_compile[network] = "1"
+do_compile[network] = "${@bb.utils.contains('PACKAGECONFIG', 'go', '1', '0', d)}"
 
 #systemd
 SYSTEMD_PACKAGES = "${PN}"