All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][PATCH] containerd: add -modcacherw to GO_BUILD_FLAGS
@ 2026-10-02 11:03 krant
  2026-10-04  1:35 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: krant @ 2026-10-02 11:03 UTC (permalink / raw)
  To: meta-virtualization; +Cc: Aleksey Vasilenko

From: Aleksey Vasilenko <aleksey.vasilenko@gmail.com>

Because containerd overrides do_compile, it misses the standard
-modcacherw flag from go-mod.bbclass. This leaves read-only files
in the build directory, causing permission errors during cleanup
tasks like rm_work.

Explicitly add the flag to GO_BUILD_FLAGS to fix this.

Signed-off-by: krant <aleksey.vasilenko@gmail.com>
---
 recipes-containers/containerd/containerd_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-containers/containerd/containerd_git.bb b/recipes-containers/containerd/containerd_git.bb
index 3d74cdd2..b1fb3115 100644
--- a/recipes-containers/containerd/containerd_git.bb
+++ b/recipes-containers/containerd/containerd_git.bb
@@ -58,7 +58,7 @@ do_compile() {
     # cannot find package runtime/cgo (using -importcfg)
     #        ... recipe-sysroot-native/usr/lib/aarch64-poky-linux/go/pkg/tool/linux_amd64/link:
     #        cannot open file : open : no such file or directory
-    export GO_BUILD_FLAGS="-trimpath -a -pkgdir dontusecurrentpkgs"
+    export GO_BUILD_FLAGS="-trimpath -a -pkgdir dontusecurrentpkgs -modcacherw"
     # As of v2.2.0+ the GO11MODULE setting breaks the build (linking errors). It doesn't
     # seem necessary anymore. Leaving it here for now as a breakcrumb if other errors pop
     # up
-- 
2.56.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-virtualization][PATCH] containerd: add -modcacherw to GO_BUILD_FLAGS
  2026-10-02 11:03 [meta-virtualization][PATCH] containerd: add -modcacherw to GO_BUILD_FLAGS krant
@ 2026-10-04  1:35 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2026-10-04  1:35 UTC (permalink / raw)
  To: meta-virtualization; +Cc: aleksey.vasilenko

merged

Bruce


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-04  1:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-02 11:03 [meta-virtualization][PATCH] containerd: add -modcacherw to GO_BUILD_FLAGS krant
2026-10-04  1:35 ` Bruce Ashfield

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.