Skip to contentSkip to conversation

umoci: Remove the buildpath issue

PATCH In review [email protected] 2 participants 3 messages Oct 8, 2023 – Oct 11, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 umoci: Remove the buildpath issue

From: Mingli Yu <[email protected]>

Pass -trimpath to the build to fix the below build path issue:
WARNING: umoci-v0.4.7+git-r0 do_package_qa: QA Issue: File /usr/sbin/umoci in package umoci contains reference to TMPDIR [buildpaths]

---
 recipes-containers/umoci/umoci_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/umoci/umoci_git.bb +1 -0
index feaf6dff..e2116892 100644
@@ -68,6 +68,7 @@ do_compile() {
 
     export GO111MODULE=off
 
+    export BUILD_FLAGS="-trimpath"
     cd ${S}
 
     oe_runmake umoci
Signature · 1 line
2.25.1
#1 lore raw

umoci is really only a host tool (in the system testing), which is why only the class native trimpath was applied.

Are you actually using it on the target ?

Bruce

In message: [meta-virtualization] [PATCH] umoci: Remove the buildpath issue

Quoted 35 lines · Mingli

From: Mingli Yu <[email protected]>

Pass -trimpath to the build to fix the below build path issue:
WARNING: umoci-v0.4.7+git-r0 do_package_qa: QA Issue: File /usr/sbin/umoci in package umoci contains reference to TMPDIR [buildpaths]

---
 recipes-containers/umoci/umoci_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/umoci/umoci_git.bb +1 -0
index feaf6dff..e2116892 100644
@@ -68,6 +68,7 @@ do_compile() {
 
     export GO111MODULE=off
 
+    export BUILD_FLAGS="-trimpath"
     cd ${S}
 
     oe_runmake umoci
Signature · 11 lines
2.25.1



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

In message: [meta-virtualization] [PATCH] umoci: Remove the buildpath issue

Quoted 35 lines · Mingli

From: Mingli Yu <[email protected]>

Pass -trimpath to the build to fix the below build path issue:
WARNING: umoci-v0.4.7+git-r0 do_package_qa: QA Issue: File /usr/sbin/umoci in package umoci contains reference to TMPDIR [buildpaths]

---
 recipes-containers/umoci/umoci_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-containers/umoci/umoci_git.bb +1 -0
index feaf6dff..e2116892 100644
@@ -68,6 +68,7 @@ do_compile() {
 
     export GO111MODULE=off
 
+    export BUILD_FLAGS="-trimpath"
     cd ${S}
 
     oe_runmake umoci
Signature · 11 lines
2.25.1



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