From cfab7d389bcbbf0327ced8b320ab03f07ec4fb65 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Fri, 23 Jan 2026 15:22:14 -0500 Subject: 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 --- recipes-containers/crun/crun_git.bb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'recipes-containers') 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() { ln -sr "${D}/${bindir}/crun" "${D}${bindir}/runc" fi } + +# When crun provides /usr/bin/runc symlink, it conflicts with the runc package +RCONFLICTS:${PN} = "${@'runc' if d.getVar('CRUN_AS_RUNC') else ''}" + +REQUIRED_DISTRO_FEATURES:class-native ?= "" +DEPENDS:class-native += "yajl libcap go-md2man m4 libseccomp" +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf