aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/which/which_2.20.bb
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-07-26 17:10:28 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-15 14:18:40 +0100
commit929d7ec6ad5a27b6fcc6ac8c0af1a9f25a7ff6df (patch)
treecebcc5cfa4190416fed7b58ccac69306a5f8768c /meta/recipes-extended/which/which_2.20.bb
parent4807d938023ce06f2924c8a0503c32d083be23b5 (diff)
downloadopenembedded-core-contrib-929d7ec6ad5a27b6fcc6ac8c0af1a9f25a7ff6df.tar.gz
which: cleanup update-alternatives deprecated code
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-extended/which/which_2.20.bb')
-rw-r--r--meta/recipes-extended/which/which_2.20.bb10
1 files changed, 2 insertions, 8 deletions
diff --git a/meta/recipes-extended/which/which_2.20.bb b/meta/recipes-extended/which/which_2.20.bb
index 9b4394331c..312688fe1e 100644
--- a/meta/recipes-extended/which/which_2.20.bb
+++ b/meta/recipes-extended/which/which_2.20.bb
@@ -8,7 +8,7 @@ DEPENDS = "cwautomacros-native"
inherit autotools update-alternatives
-PR = "r2"
+PR = "r3"
EXTRA_OECONF = "--disable-iberty"
@@ -22,11 +22,5 @@ do_configure_prepend() {
sed -i -e 's%@ACLOCAL_CWFLAGS@%-I ${STAGING_DIR_NATIVE}/usr/share/cwautomacros/m4%g' ${S}/Makefile.am ${S}/tilde/Makefile.am
}
-do_install() {
- autotools_do_install
- mv ${D}${bindir}/which ${D}${bindir}/which.${BPN}
-}
-
-ALTERNATIVE_NAME = "which"
-ALTERNATIVE_PATH = "which.${BPN}"
+ALTERNATIVE_${PN} = "which"
ALTERNATIVE_PRIORITY = "100"