[OE-core] [PATCH] unzip: Add ALTERNATIVE configuration
Saul Wold
sgw at linux.intel.com
Thu Mar 12 19:58:17 UTC 2015
Since busybox also provides the unzip command use the update-alternatives
mechanism to address this.
[YOCTO #7446]
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-extended/unzip/unzip_6.0.bb | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/meta/recipes-extended/unzip/unzip_6.0.bb b/meta/recipes-extended/unzip/unzip_6.0.bb
index 33c20f8..e203c06 100644
--- a/meta/recipes-extended/unzip/unzip_6.0.bb
+++ b/meta/recipes-extended/unzip/unzip_6.0.bb
@@ -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"
--
2.1.0
More information about the Openembedded-core
mailing list