* [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure
@ 2026-02-03 3:51 Qi.Chen
2026-02-05 1:38 ` Bruce Ashfield
0 siblings, 1 reply; 4+ messages in thread
From: Qi.Chen @ 2026-02-03 3:51 UTC (permalink / raw)
To: meta-virtualization
From: Chen Qi <Qi.Chen@windriver.com>
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 <Qi.Chen@windriver.com>
---
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure
2026-02-03 3:51 [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure Qi.Chen
@ 2026-02-05 1:38 ` Bruce Ashfield
2026-02-09 20:06 ` Bruce Ashfield
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2026-02-05 1:38 UTC (permalink / raw)
To: Qi.Chen; +Cc: meta-virtualization
[-- Attachment #1: Type: text/plain, Size: 2124 bytes --]
On Mon, Feb 2, 2026 at 10:52 PM Chen Qi via lists.yoctoproject.org <Qi.Chen=
windriver.com@lists.yoctoproject.org> wrote:
> From: Chen Qi <Qi.Chen@windriver.com>
>
> 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.
>
I'm going a different way to fix this.
I've avoided using modcacherw so far, and would like to continue as
having it on can mask some issues.
I have permissions fixups, they should be firing for this, and I'm
sorting that out now as I work through some package updates.
Bruce
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> 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
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#9554):
> https://lists.yoctoproject.org/g/meta-virtualization/message/9554
> Mute This Topic: https://lists.yoctoproject.org/mt/117611093/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [
> bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
[-- Attachment #2: Type: text/html, Size: 4373 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure
2026-02-05 1:38 ` Bruce Ashfield
@ 2026-02-09 20:06 ` Bruce Ashfield
2026-02-10 2:58 ` Chen, Qi
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2026-02-09 20:06 UTC (permalink / raw)
To: Qi.Chen; +Cc: meta-virtualization
In message: Re: [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure
on 04/02/2026 Bruce Ashfield wrote:
> On Mon, Feb 2, 2026 at 10:52 PM Chen Qi via lists.yoctoproject.org <Qi.Chen=
> windriver.com@lists.yoctoproject.org> wrote:
>
> > From: Chen Qi <Qi.Chen@windriver.com>
> >
> > 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.
> >
>
> I'm going a different way to fix this.
>
> I've avoided using modcacherw so far, and would like to continue as
> having it on can mask some issues.
>
> I have permissions fixups, they should be firing for this, and I'm
> sorting that out now as I work through some package updates.
I moved where the permissions fixups fire, so they should now
run after do_compile (which may change the permissions).
This means we don't need per-recipe fixes, and it covers all
types of builds (directly invoked, makefiles, ones that don't
inherit our variables etc).
Bruce
>
> Bruce
>
>
> >
> > Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> > ---
> > 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
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#9554):
> > https://lists.yoctoproject.org/g/meta-virtualization/message/9554
> > Mute This Topic: https://lists.yoctoproject.org/mt/117611093/1050810
> > Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [
> > bruce.ashfield@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
> >
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await thee
> at its end
> - "Use the force Harry" - Gandalf, Star Trek II
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure
2026-02-09 20:06 ` Bruce Ashfield
@ 2026-02-10 2:58 ` Chen, Qi
0 siblings, 0 replies; 4+ messages in thread
From: Chen, Qi @ 2026-02-10 2:58 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: meta-virtualization@lists.yoctoproject.org
Got it. Thanks Bruce.
Regards,
Qi
-----Original Message-----
From: Bruce Ashfield <bruce.ashfield@gmail.com>
Sent: Tuesday, February 10, 2026 4:07 AM
To: Chen, Qi <Qi.Chen@windriver.com>
Cc: meta-virtualization@lists.yoctoproject.org
Subject: Re: [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure
In message: Re: [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure on 04/02/2026 Bruce Ashfield wrote:
> On Mon, Feb 2, 2026 at 10:52 PM Chen Qi via lists.yoctoproject.org
> <Qi.Chen= windriver.com@lists.yoctoproject.org> wrote:
>
> > From: Chen Qi <Qi.Chen@windriver.com>
> >
> > 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.
> >
>
> I'm going a different way to fix this.
>
> I've avoided using modcacherw so far, and would like to continue as
> having it on can mask some issues.
>
> I have permissions fixups, they should be firing for this, and I'm
> sorting that out now as I work through some package updates.
I moved where the permissions fixups fire, so they should now run after do_compile (which may change the permissions).
This means we don't need per-recipe fixes, and it covers all types of builds (directly invoked, makefiles, ones that don't inherit our variables etc).
Bruce
>
> Bruce
>
>
> >
> > Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> > ---
> > 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
> >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#9554):
> > https://lists.yoctoproject.org/g/meta-virtualization/message/9554
> > Mute This Topic: https://lists.yoctoproject.org/mt/117611093/1050810
> > Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> > Unsubscribe:
> > https://lists.yoctoproject.org/g/meta-virtualization/unsub [
> > bruce.ashfield@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
> >
>
> --
> - Thou shalt not follow the NULL pointer, for chaos and madness await
> thee at its end
> - "Use the force Harry" - Gandalf, Star Trek II
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-02-10 2:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-03 3:51 [meta-virtualization][PATCH] nerdctl: use -modcacherw to avoid do_rm_work failure Qi.Chen
2026-02-05 1:38 ` Bruce Ashfield
2026-02-09 20:06 ` Bruce Ashfield
2026-02-10 2:58 ` Chen, Qi
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.