[oe-commits] Saul Wold : unzip: Add ALTERNATIVE configuration

git at git.openembedded.org git at git.openembedded.org
Fri Mar 20 11:10:05 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 3e6654f7b7f8e0e18c8115513410ecb308a0ad5f
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=3e6654f7b7f8e0e18c8115513410ecb308a0ad5f

Author: Saul Wold <sgw at linux.intel.com>
Date:   Thu Mar 12 12:58:17 2015 -0700

unzip: Add ALTERNATIVE configuration

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>
Signed-off-by: Ross Burton <ross.burton at 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"



More information about the Openembedded-commits mailing list