Skip to contentSkip to conversation

util-linux-native: Fixed conflicts with shadow-native and ncurses-native

PATCH New Saul Wold 1 participant 1 message Mar 20, 2015

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 util-linux-native: Fixed conflicts with shadow-native and ncurses-native

From: Caner Altinbasak <[email protected]>

util-linux-native provides /bin/reset and /sbin/nologin. shadow-native provides /sbin/nologin and ncurses-native provides /bin/reset. This creates a conlict.

[YOCTO #7484]

This commit fixes the conflict by deleting the /bin/reset and /sbin/nologin from util-linux-native installation.

---
 meta/recipes-core/util-linux/util-linux.inc | 6 ++++++
 1 file changed, 6 insertions(+)
meta/recipes-core/util-linux/util-linux.inc +6 -0
index 4cca897..10b14b3 100644
@@ -163,6 +163,12 @@ do_install () {
 	rm -f ${D}${bindir}/chkdupexe
 }
 
+# reset and nologin causes a conflict with ncurses-native and shadow-native
+do_install_append_class-native () {
+	rm -f ${D}${base_bindir}/reset
+	rm -f ${D}${base_sbindir}/nologin
+}
+
 ALTERNATIVE_PRIORITY = "100"
 
 ALTERNATIVE_${PN}  = "dmesg kill more mkswap blockdev pivot_root switch_root"
Signature · 1 line
2.1.0