Skip to contentSkip to conversation

util-linux: Remove kill from native install

PATCH New Mike Crowe 1 participant 1 message Mar 7, 2018

lore
Share & tools
lore

Mike Crowe

author
#0 lore raw

PATCH 1/1 util-linux: Remove kill from native install

util-linux installs kill as ${base_bindir}/kill. coreutils installs kill as ${bindir}/kill. If base_bindir and bindir are the same (as they are in meta-micro) then this causes a conflict for recipes that depend on util-linux-native and coreutils-native.

This means that in the unlikely event that a recipe needs to run kill during the build, it will need to depend on coreutils-native.

core-image-sato built successfully for me with this change.

---
 meta/recipes-core/util-linux/util-linux.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-core/util-linux/util-linux.inc +2 -0
index e228bde299..5e40b2019a 100644
@@ -196,8 +196,10 @@ do_install () {
 }
 
 # nologin causes a conflict with shadow-native
+# kill causes a conflict with coreutils-native (if ${bindir}==${base_bindir})
 do_install_append_class-native () {
 	rm -f ${D}${base_sbindir}/nologin
+	rm -f ${D}${base_bindir}/kill
 }
 
 ALTERNATIVE_PRIORITY = "80"
Signature · 1 line
2.11.0