From 46ffeed9183ec12ff20dbb5c5b46ea35555835d5 Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Mon, 16 Apr 2012 11:04:50 -0500 Subject: findutils: Use update-alternatives Change to using update-alternatives to ensure that we're consistently using the class, and the package provides are being setup properly. (From OE-Core rev: be2dbd1abfb4e0e6989d1c34c09047e439d8194e) Signed-off-by: Mark Hatle Signed-off-by: Richard Purdie --- meta/recipes-extended/findutils/findutils_4.4.2.bb | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'meta/recipes-extended/findutils/findutils_4.4.2.bb') diff --git a/meta/recipes-extended/findutils/findutils_4.4.2.bb b/meta/recipes-extended/findutils/findutils_4.4.2.bb index b2898ed5d9..d80511c4dc 100644 --- a/meta/recipes-extended/findutils/findutils_4.4.2.bb +++ b/meta/recipes-extended/findutils/findutils_4.4.2.bb @@ -1,6 +1,6 @@ require findutils.inc -PR = "r2" +PR = "r3" SRC_URI += "file://01-27017.patch \ file://02-28824.patch \ @@ -13,19 +13,4 @@ SRC_URI[sha256sum] = "434f32d171cbc0a5e72cfc5372c6fc4cb0e681f8dce566a0de5b6fccd7 # http://savannah.gnu.org/bugs/?27299 CACHED_CONFIGUREVARS += "${@base_contains('DISTRO_FEATURES', 'libc-posix-clang-wchar', 'gl_cv_func_wcwidth_works=yes', '', d)}" -do_install_append () { - if [ -e ${D}${bindir}/find ]; then - mv ${D}${bindir}/find ${D}${bindir}/find.${PN} - mv ${D}${bindir}/xargs ${D}${bindir}/xargs.${PN} - fi -} - -pkg_postinst_${PN} () { - for i in find xargs; do update-alternatives --install ${bindir}/$i $i $i.${PN} 100; done -} - -pkg_prerm_${PN} () { - for i in find xargs; do update-alternatives --remove $i $i.${PN}; done -} - BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf