Skip to contentSkip to conversation

yq: Redefine do_compile

PATCH In review [email protected] 3 participants 3 messages May 12, 2023 – May 27, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 yq: Redefine do_compile

From: Mingli Yu <[email protected]>

This reverts commit 9b87b12885243c8cbba933e218c325416ec4d19d which states the linkshared issue is resolved. Actually the issue still exists as build fails on qemuarm64 and we still need the fix [1]. So add the fix [1] back and it's also better define its own do_compile and not let the do_compile logic in go.bbclass affect the build.

[1] https://git.yoctoproject.org/meta-virtualization/commit/?id=d2a630ce6cf67a145f218012fbf02e4d0d9648df

---
 recipes-devtools/yq/yq_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-devtools/yq/yq_git.bb +2 -1
index 45f2f970..bd474a79 100644
@@ -50,7 +50,7 @@ GO_IMPORT = "github.com/mikefarah/yq"
 
 inherit go ptest
 
-do_compile:prepend() {
+do_compile() {
     # arrange for some of the golang built ins to be found
     (
 	cd ${WORKDIR}/build/src/
@@ -60,6 +60,7 @@ do_compile:prepend() {
     # arrange for the fetched dependencies to be found
     export GOPATH="${GOPATH}:${WORKDIR}/build/vendor/"
     export GO111MODULE=off
+    ${GO} install ${GOBUILDFLAGS} `go_list_packages`
 }
 
 do_install:append() {
Signature · 1 line
2.25.1
#1 lore raw

In message: [meta-virtualization] [PATCH] yq: Redefine do_compile

Quoted 8 lines · Mingli

From: Mingli Yu <[email protected]>

This reverts commit 9b87b12885243c8cbba933e218c325416ec4d19d which states the linkshared issue is resolved. Actually the issue still exists as build fails on qemuarm64 and we still need the fix [1]. So add the fix [1] back and it's also better define its own do_compile and not let the do_compile logic in go.bbclass affect the build.

More yq and linkshared fun!

This is now merged to master and mickledore.

Bruce

Quoted 40 lines

[1] https://git.yoctoproject.org/meta-virtualization/commit/?id=d2a630ce6cf67a145f218012fbf02e4d0d9648df

---
 recipes-devtools/yq/yq_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-devtools/yq/yq_git.bb +2 -1
index 45f2f970..bd474a79 100644
@@ -50,7 +50,7 @@ GO_IMPORT = "github.com/mikefarah/yq"
 
 inherit go ptest
 
-do_compile:prepend() {
+do_compile() {
     # arrange for some of the golang built ins to be found
     (
 	cd ${WORKDIR}/build/src/
@@ -60,6 +60,7 @@ do_compile:prepend() {
     # arrange for the fetched dependencies to be found
     export GOPATH="${GOPATH}:${WORKDIR}/build/vendor/"
     export GO111MODULE=off
+    ${GO} install ${GOBUILDFLAGS} `go_list_packages`
 }
 
 do_install:append() {
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8049): https://lists.yoctoproject.org/g/meta-virtualization/message/8049
Mute This Topic: https://lists.yoctoproject.org/mt/98843722/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

This fixed https://lists.yoctoproject.org/g/meta-virtualization/message/8047
and now can be reverted again in master as go was upgraded in
https://git.openembedded.org/openembedded-core/commit/?id=e043bfb42156c59c93c6a4816528a63cfdaccc3e

Quoted 68 lines · Bruce Ashfield

In message: [meta-virtualization] [PATCH] yq: Redefine do_compile

Quoted 8 lines · Mingli

From: Mingli Yu <[email protected]>

This reverts commit 9b87b12885243c8cbba933e218c325416ec4d19d which states the linkshared issue is resolved. Actually the issue still exists as build fails on qemuarm64 and we still need the fix [1]. So add the fix [1] back and it's also better define its own do_compile and not let the do_compile logic in go.bbclass affect the build.

More yq and linkshared fun!

This is now merged to master and mickledore.

Bruce

Quoted 2 lines

[1]

https://git.yoctoproject.org/meta-virtualization/commit/?id=d2a630ce6cf67a145f218012fbf02e4d0d9648df

recipes-devtools/yq/

Quoted 5 lines
---
 recipes-devtools/yq/yq_git.bb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
recipes-devtools/yq/ renamed from recipes-devtools/yq/yq_git.bb +0 -0

yq_git.bb

Quoted 21 lines

index 45f2f970..bd474a79 100644

recipes-devtools/yq/yq_git.bb +2 -2
@@ -50,7 +50,7 @@ GO_IMPORT = "github.com/mikefarah/yq"
 
 inherit go ptest
 
-do_compile:prepend() {
+do_compile() {
     # arrange for some of the golang built ins to be found
     (
      cd ${WORKDIR}/build/src/
@@ -60,6 +60,7 @@ do_compile:prepend() {
     # arrange for the fetched dependencies to be found
     export GOPATH="${GOPATH}:${WORKDIR}/build/vendor/"
     export GO111MODULE=off
+    ${GO} install ${GOBUILDFLAGS} `go_list_packages`
 }
 
 do_install:append() {
--
Quoted 6 lines

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#8061):
https://lists.yoctoproject.org/g/meta-virtualization/message/8061
Mute This Topic: https://lists.yoctoproject.org/mt/98843722/3617156
Group Owner: [email protected] Unsubscribe:
https://lists.yoctoproject.org/g/meta-virtualization/leave/7925988/3617156/1068030116/xyzzy
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-