Re: [meta-virtualization][PATCH] podman: Use packageconfig to control fuse-overlayfs depend

Bruce Ashfield <[email protected]>
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <CADkTA4MdEsBoich9Xz9MKQ9KJ7MDNNhxMJDGOP1v2jkcBb+Syg@mail.gmail.com>
On Tue, Mar 10, 2026 at 10:27 PM Yiding Liu (Fujitsu) <
[email protected]> wrote:

> Hi Bruce
>
>      Do you mean a new patch like this:
>

No. But maybe I misunderstood what you are trying to do. Are you
saying that fuse-overlayfs is causing an issue when it is enabled
for rootless ?

I was saying that you can add a new package config for it, but also
leave it enabled in rootless, since it is currently enabled and builds
may be expecting it.

i.e. just add this:

 +PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"

And leave rootless alone. That way if you just want fuse, you'll
get it via "fuse", if rootless is used, you get both (just as was the
case previously).

Bruce




>              --- a/recipes-containers/podman/podman_git.bb
> +++ b/recipes-containers/podman/podman_git.bb
> @@ -68,7 +68,7 @@ EXTRA_OEMAKE = " \
>  PODMAN_FEATURES ?= "docker"
>
>  PACKAGECONFIG ?= ""
> -PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
> +PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
>
>  do_compile() {
>         cd ${S}/src
> @@ -142,9 +142,16 @@ VIRTUAL-RUNTIME_base-utils-nsenter ?=
> "util-linux-nsenter"
>
>  COMPATIBLE_HOST = "^(?!mips).*"
>
> +def get_fuse_overlayfs_dep(d):
> +    if bb.utils.contains('PACKAGECONFIG', 'rootless', True, False, d) and
> \
> +       bb.utils.contains('PACKAGECONFIG', 'fuse', True, False, d):
> +        return "fuse-overlayfs"
> +    return ""
> +
>  RDEPENDS:${PN} += "\
>         catatonit conmon ${VIRTUAL-RUNTIME_container_runtime} gpgme
> iptables libdevmapper \
>         ${VIRTUAL-RUNTIME_container_dns}
> ${VIRTUAL-RUNTIME_container_networking}
> ${VIRTUAL-RUNTIME_base-utils-nsenter} \
> +       ${@get_fuse_overlayfs_dep(d)} \
>  "
>  RRECOMMENDS:${PN} += "slirp4netns
>
> Or do you have a more elegant code?
>
> Liu
> ------------------------------
> *发件人:* Bruce Ashfield <[email protected]>
> *发送时间:* 2026年3月11日 06:40
> *收件人:* Liu, Yiding/刘 乙丁 <[email protected]>
> *抄送:* [email protected] <
> [email protected]>
> *主题:* Re: [meta-virtualization][PATCH] podman: Use packageconfig to
> control fuse-overlayfs depend
>
> In message: [meta-virtualization][PATCH] podman: Use packageconfig to
> control fuse-overlayfs depend
> on 10/03/2026 Yiding Liu (Fujitsu) via lists.yoctoproject.org wrote:
>
> > The RDEPEND fuse-overlayfs is an Optional package so use packageconfig
> to control it.
> >
> > Refer to https://podman.io/docs/installation
> >
> > Signed-off-by: Liu Yiding <[email protected]>
> > ---
> >  recipes-containers/podman/podman_git.bb | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/recipes-containers/podman/podman_git.bb
> b/recipes-containers/podman/podman_git.bb
> > index 53b9b6a0..4495d2d9 100644
> > --- a/recipes-containers/podman/podman_git.bb
> > +++ b/recipes-containers/podman/podman_git.bb
> > @@ -68,7 +68,8 @@ EXTRA_OEMAKE = " \
> >  PODMAN_FEATURES ?= "docker"
> >
> >  PACKAGECONFIG ?= ""
> > -PACKAGECONFIG[rootless] = ",,,fuse-overlayfs slirp4netns,,"
> > +PACKAGECONFIG[rootless] = ",,,slirp4netns,,"
> > +PACKAGECONFIG[fuse] = ",,,fuse-overlayfs,,"
>
> Whether right or wrong, fuse-overlayfs was being pulled in
> by rootless.
>
> So it should stay pulled in by rootless (unless you can show
> me that there's no requirement at all from rootless .. and
> that information needs to be in the commit message).
>
> It can also just stay in both, since last I checked, having
> the depdendency in twice doesn't cause any issues.
>
> Bruce
>
> >
> >  do_compile() {
> >        cd ${S}/src
> > --
> > 2.43.0
> >
>
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#9631):
> https://lists.yoctoproject.org/g/meta-virtualization/message/9631
> > Mute This Topic: https://lists.yoctoproject.org/mt/118237141/1050810
> > Group Owner: [email protected]
> > Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub
> [[email protected]]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.