Skip to contentSkip to conversation

unzip: Add ALTERNATIVE configuration

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

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 unzip: Add ALTERNATIVE configuration

Since busybox also provides the unzip command use the update-alternatives mechanism to address this.

[YOCTO #7446]

---
 meta/recipes-extended/unzip/unzip_6.0.bb | 7 +++++++
 1 file changed, 7 insertions(+)
meta/recipes-extended/unzip/unzip_6.0.bb +7 -0
index 33c20f8..e203c06 100644
@@ -35,4 +35,11 @@ do_install() {
 	rmdir ${D}${prefix}/man/
 }
 
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "100"
+
+ALTERNATIVE_${PN} = "unzip"
+ALTERNATIVE_LINK_NAME[unzip] = "${bindir}/unzip"
+
 BBCLASSEXTEND = "native"
Signature · 1 line
2.1.0