summaryrefslogtreecommitdiffstats
path: root/recipes-containers/crun
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-02-09 03:34:08 +0000
commitcfab7d389bcbbf0327ced8b320ab03f07ec4fb65 (patch)
treeaa77592baaaec916aa983414d60768ca3e4f0aff /recipes-containers/crun
parent572bc8369e9813a3f8c84af0f19cdf27f4492af0 (diff)
downloadmeta-virtualization-cfab7d389bcbbf0327ced8b320ab03f07ec4fb65.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>
Diffstat (limited to 'recipes-containers/crun')
-rw-r--r--recipes-containers/crun/crun_git.bb7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-containers/crun/crun_git.bb b/recipes-containers/crun/crun_git.bb
index edaf15b8..9dcbd2b6 100644
--- a/recipes-containers/crun/crun_git.bb
+++ b/recipes-containers/crun/crun_git.bb
@@ -56,3 +56,10 @@ do_install() {
56 ln -sr "${D}/${bindir}/crun" "${D}${bindir}/runc" 56 ln -sr "${D}/${bindir}/crun" "${D}${bindir}/runc"
57 fi 57 fi
58} 58}
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
63REQUIRED_DISTRO_FEATURES:class-native ?= ""
64DEPENDS:class-native += "yajl libcap go-md2man m4 libseccomp"
65BBCLASSEXTEND = "native"