From ace092f8f372c6e68a05e93ca24831e0af73e8ba Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Tue, 7 Feb 2023 18:00:39 +0100 Subject: [PATCH] package/pkg-generic.mk: require git on the host for packages using cargo/go vendoring The vendoring done for cargo / go packages (may) need git, so ensure we check for it in dependencies, similar to how it is done for packages directly using git. Signed-off-by: Peter Korsgaard Signed-off-by: Thomas Petazzoni (cherry picked from commit 8c8ee42bbe6ebb7f20978b06a581c42733197ae2) Signed-off-by: Peter Korsgaard --- package/pkg-generic.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/pkg-generic.mk b/package/pkg-generic.mk index 6c3b64b4c8..a9b923fcbc 100644 --- a/package/pkg-generic.mk +++ b/package/pkg-generic.mk @@ -1250,6 +1250,13 @@ else ifeq ($$($(2)_SITE_METHOD),cvs) DL_TOOLS_DEPENDENCIES += cvs endif # SITE_METHOD +# cargo/go vendoring (may) need git +ifeq ($$($(2)_DOWNLOAD_POST_PROCESS),cargo) +DL_TOOLS_DEPENDENCIES += git +else ifeq ($$($(2)_DOWNLOAD_POST_PROCESS),go) +DL_TOOLS_DEPENDENCIES += git +endif + DL_TOOLS_DEPENDENCIES += $$(call extractor-system-dependency,$$($(2)_SOURCE)) # Ensure all virtual targets are PHONY. Listed alphabetically.