From: Saul Wold Date: Thu, 12 Mar 2015 19:58:17 +0000 (-0700) Subject: unzip: Add ALTERNATIVE configuration X-Git-Tag: 2015-4~155 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=3e6654f7b7f8e0e18c8115513410ecb308a0ad5f;p=openembedded-core.git 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 Signed-off-by: Ross Burton --- diff --git a/meta/recipes-extended/unzip/unzip_6.0.bb b/meta/recipes-extended/unzip/unzip_6.0.bb index 33c20f8b4c..e203c069f4 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"