commit:     09749f23e7eb708f0f26c57a47cbb899595ffe99
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 26 01:39:06 2022 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Mar 26 01:41:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09749f23

app-containers/podman: add cgroup-hybrid USE flag

Closes: https://bugs.gentoo.org/763267
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-containers/podman/metadata.xml        | 3 +++
 app-containers/podman/podman-3.4.4.ebuild | 5 +++--
 app-containers/podman/podman-4.0.2.ebuild | 5 +++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/app-containers/podman/metadata.xml 
b/app-containers/podman/metadata.xml
index 844d5c0dcd45..11d7dc7603dc 100644
--- a/app-containers/podman/metadata.xml
+++ b/app-containers/podman/metadata.xml
@@ -22,6 +22,9 @@
                        Enables dependencies for the "btrfs" graph driver, 
including
                        necessary kernel flags.
                </flag>
+               <flag name="cgroup-hybrid">
+                       Default to hybrid (legacy) cgroup hierarchy instead of 
unified (modern).
+               </flag>
                <flag name="fuse">
                        Enables fuse dependencies (fuse-overlayfs is especially 
useful
                        for rootless mode).

diff --git a/app-containers/podman/podman-3.4.4.ebuild 
b/app-containers/podman/podman-3.4.4.ebuild
index f6e9ac8b1006..d9c90056d70c 100644
--- a/app-containers/podman/podman-3.4.4.ebuild
+++ b/app-containers/podman/podman-3.4.4.ebuild
@@ -15,13 +15,14 @@ LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
 SLOT="0"
 
 KEYWORDS="amd64 arm64 ~ppc64 ~riscv"
-IUSE="apparmor btrfs +fuse +rootless selinux"
+IUSE="apparmor btrfs +cgroup-hybrid +fuse +rootless selinux"
 RESTRICT+=" test"
 
 COMMON_DEPEND="
        app-crypt/gpgme:=
        >=app-containers/conmon-2.0.0
-       || ( >=app-containers/runc-1.0.0_rc6 app-containers/crun )
+       cgroup-hybrid? ( >=app-containers/runc-1.0.0_rc6  )
+       !cgroup-hybrid? ( app-containers/crun )
        dev-libs/libassuan:=
        dev-libs/libgpg-error:=
        >=net-misc/cni-plugins-0.8.6

diff --git a/app-containers/podman/podman-4.0.2.ebuild 
b/app-containers/podman/podman-4.0.2.ebuild
index d5e19cc828de..62f957b6252a 100644
--- a/app-containers/podman/podman-4.0.2.ebuild
+++ b/app-containers/podman/podman-4.0.2.ebuild
@@ -15,13 +15,14 @@ LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT MPL-2.0"
 SLOT="0"
 
 KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv"
-IUSE="apparmor btrfs +fuse +init +rootless selinux"
+IUSE="apparmor btrfs cgroup-hybrid +fuse +init +rootless selinux"
 RESTRICT+=" test"
 
 COMMON_DEPEND="
        app-crypt/gpgme:=
        >=app-containers/conmon-2.0.0
-       || ( app-containers/crun >=app-containers/runc-1.0.0_rc6 )
+       cgroup-hybrid? ( >=app-containers/runc-1.0.0_rc6  )
+       !cgroup-hybrid? ( app-containers/crun )
        dev-libs/libassuan:=
        dev-libs/libgpg-error:=
        >=net-misc/cni-plugins-0.8.6

Reply via email to