summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-01-23 15:22:14 -0500
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-01-23 22:29:11 -0500
commitfb2d1d8a47909b8e7e49df65ae30263ca236236f (patch)
tree9bf70f7be27d749e8c2aa497d6ec4afe28dc0791
parentd7b6ee0369cd7bd891a443a41306d77ce5899ad9 (diff)
downloadmeta-virtualization-fb2d1d8a47909b8e7e49df65ae30263ca236236f.tar.gz
crun: add RCONFLICTS to prevent runc package conflict
When CRUN_AS_RUNC is enabled (default), crun creates a /usr/bin/runc symlink that conflicts with the runc package's /usr/bin/runc binary. Add RCONFLICTS to declare this conflict so package managers prevent both from being installed simultaneously. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-containers/crun/crun_git.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-containers/crun/crun_git.bb b/recipes-containers/crun/crun_git.bb
index 7653bf9e..46c14b79 100644
--- a/recipes-containers/crun/crun_git.bb
+++ b/recipes-containers/crun/crun_git.bb
@@ -57,6 +57,9 @@ do_install() {
57 fi 57 fi
58} 58}
59 59
60# When crun provides /usr/bin/runc symlink, it conflicts with the runc package
61RCONFLICTS:${PN} = "${@'runc' if d.getVar('CRUN_AS_RUNC') else ''}"
62
60REQUIRED_DISTRO_FEATURES:class-native ?= "" 63REQUIRED_DISTRO_FEATURES:class-native ?= ""
61DEPENDS:class-native += "yajl libcap go-md2man m4 libseccomp" 64DEPENDS:class-native += "yajl libcap go-md2man m4 libseccomp"
62BBCLASSEXTEND = "native" 65BBCLASSEXTEND = "native"