From: Changqing Li <[email protected]>

This is for fixing the following error of 'bitbake meta-go-toolchain'
when multilib is enabled:
Error: Transaction test error:
   file /usr/bin/go conflicts between attempted installs of 
go-1.25.4-r0.x86_64_v3 and lib32-go-1.25.4-r0.core2_32
   file /usr/bin/gofmt conflicts between attempted installs of 
go-1.25.4-r0.x86_64_v3 and lib32-go-1.25.4-r0.core2_32

Signed-off-by: Changqing Li <[email protected]>
---
 meta/recipes-devtools/go/go_1.25.4.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/go/go_1.25.4.bb 
b/meta/recipes-devtools/go/go_1.25.4.bb
index 46f5fbc6be..372aa9538c 100644
--- a/meta/recipes-devtools/go/go_1.25.4.bb
+++ b/meta/recipes-devtools/go/go_1.25.4.bb
@@ -1,7 +1,7 @@
 require go-${PV}.inc
 require go-target.inc
 
-inherit linuxloader
+inherit linuxloader multilib_script
 
 CGO_LDFLAGS:append = " -no-pie"
 
@@ -9,6 +9,8 @@ export GO_LDSO = "${@get_linuxloader(d)}"
 export CC_FOR_TARGET = "gcc"
 export CXX_FOR_TARGET = "g++"
 
+MULTILIB_SCRIPTS = "${PN}:${bindir}/go ${PN}:${bindir}/gofmt"
+
 # mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for 
mips/riscv32 and its
 # variants.
 python() {
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#228279): 
https://lists.openembedded.org/g/openembedded-core/message/228279
Mute This Topic: https://lists.openembedded.org/mt/116896974/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to