diff mbox series

package/go: ensure there is a host-go provider, take 2

Message ID cf517426f7868af6c3e80e5016ac23759bf75290.1726556733.git.yann.morin@orange.com
State New
Headers show
Series package/go: ensure there is a host-go provider, take 2 | expand

Commit Message

Yann E. MORIN Sept. 17, 2024, 7:05 a.m. UTC
From: "Yann E. MORIN" <yann.morin@orange.com>

Commit 7b2a164b7460 (package/go/go-bin: new host-go provider) broke the
case for prompt-less, host-only go packages, as the main host-go symbol
would not be selected.

This very same use-case was initially broken when the first go-src
provider was introduced with fa2536ec9401 (package/go: make host package
a virtual package), and subsequently fixed in 99a5d51c6e9f (package/go:
ensure there is a host-go provider), so 7b2a164b7460 is causing a
regression of a fixed regression.

Fix that the very same way it was originally fixed.

Signed-off-by: Yann E. MORIN <yann.morin@orange.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Thomas Perale <thomas.perale@mind.be>
---
 package/go/Config.in.host | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/package/go/Config.in.host b/package/go/Config.in.host
index 30260b573b..7e354b3298 100644
--- a/package/go/Config.in.host
+++ b/package/go/Config.in.host
@@ -78,13 +78,13 @@  config BR2_PACKAGE_HOST_GO_BIN
 
 endchoice
 
+endif
+
 config BR2_PACKAGE_PROVIDES_HOST_GO
 	string
-	# Default to host-go-src
+	# Default to host-go-bin unless src explicitly requested
 	default "host-go-src" if BR2_PACKAGE_HOST_GO_SRC
-	default "host-go-bin" if BR2_PACKAGE_HOST_GO_BIN
-
-endif
+	default "host-go-bin"
 
 source "package/go/go-bin/Config.in.host"
 source "package/go/go-bootstrap-stage1/Config.in.host"