From 1db38d928292aaca493c80527008b9bd7e6db602 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN" Date: Mon, 25 Sep 2023 13:34:16 +0200 Subject: [PATCH] package/go: fix installation When building for a target architecture that go does not support, the installation fails with: $ make host-go [...] ln -sf ../lib/go/bin/go /home/nyma7486/dev/work/5GCroCo/O/pouet/per-package/host-go/host/bin/ ln: failed to create symbolic link '/home/nyma7486/dev/work/5GCroCo/O/pouet/per-package/host-go/host/bin/': No such file or directory Indeed, the HOST_DIR/bin is not guaranteed to exist when we install a host package, so it needs to be explicitly created before we can create entries in there. Signed-off-by: Yann E. MORIN Cc: Christian Stewart Cc: Anisse Astier Signed-off-by: Peter Korsgaard --- package/go/go.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/package/go/go.mk b/package/go/go.mk index 1cb3fb40ee..6f080be5c0 100644 --- a/package/go/go.mk +++ b/package/go/go.mk @@ -147,6 +147,7 @@ define HOST_GO_INSTALL_CMDS $(INSTALL) -D -m 0755 $(@D)/bin/go $(HOST_GO_ROOT)/bin/go $(INSTALL) -D -m 0755 $(@D)/bin/gofmt $(HOST_GO_ROOT)/bin/gofmt + mkdir -p $(HOST_DIR)/bin ln -sf ../lib/go/bin/go $(HOST_DIR)/bin/ ln -sf ../lib/go/bin/gofmt $(HOST_DIR)/bin/