[meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure
| Newsgroups | org.yoctoproject.lists.meta-virtualization |
|---|---|
| Message-ID | <[email protected]> |
From: Chen Qi <[email protected]> When rm_work is enabled, building nerdctl fails because do_rm_work fails to remove the contents under pkg/mod/ as they are readonly. Use '-modcacherw' to fix this issue. Signed-off-by: Chen Qi <[email protected]> --- recipes-containers/nerdctl/nerdctl_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-containers/nerdctl/nerdctl_git.bb b/recipes-containers/nerdctl/nerdctl_git.bb index 8f63b48c..1c37bcf8 100644 --- a/recipes-containers/nerdctl/nerdctl_git.bb +++ b/recipes-containers/nerdctl/nerdctl_git.bb @@ -78,7 +78,7 @@ do_compile() { export CGO_LDFLAGS="${LDFLAGS} --sysroot=${STAGING_DIR_TARGET}" # -trimpath removes build paths from the binary (required for reproducible builds) - oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath" binaries + oe_runmake GO=${GO} BUILDTAGS="${BUILDTAGS}" GO_BUILD_FLAGS="-trimpath -modcacherw" binaries } do_install() { -- 2.34.1