From 3539f45ca09558a22fb5816baae9088c34490380 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Thu, 10 Feb 2022 16:29:28 +0100 Subject: [PATCH] package/pkg-golang: host-go is also a build dependency Currently, host-go is a download dependency, because we need go for the vendoring during the download step. However, when using a package in override-srcdir, there is no download step, so host-go is not pulled in as a dependency, which will break the build of a single package from scratch. We fix that by adding host-go as a standard dependency too. Signed-off-by: Yann E. MORIN Cc: Thomas Petazzoni Cc: Christian Stewart Cc: Anisse Astier Acked-by: Thomas Petazzoni Reviewed-by: Christian Stewart Signed-off-by: Peter Korsgaard --- package/pkg-golang.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/pkg-golang.mk b/package/pkg-golang.mk index 69eae02830..ddefdf1214 100644 --- a/package/pkg-golang.mk +++ b/package/pkg-golang.mk @@ -47,8 +47,10 @@ $(2)_BUILD_OPTS += \ -trimpath \ -p $(PARALLEL_JOBS) -# Target packages need the Go compiler on the host. +# Target packages need the Go compiler on the host at download time (for +# vendoring), and at build and install time. $(2)_DOWNLOAD_DEPENDENCIES += host-go +$(2)_DEPENDENCIES += host-go $(2)_BUILD_TARGETS ?= .