From: Chen Qi Date: Thu, 6 Jun 2013 05:53:19 +0000 (+0800) Subject: busybox: remove the postinst part of the recipe X-Git-Tag: rev_ivi_2015_02_04~12051 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc4261657bd2eebc7050d0b6283497a86a9f883f;p=scm%2Fbb%2Ftizen-distro.git busybox: remove the postinst part of the recipe Remove the pkg_postinst_${PN} from this recipe, as it's redundant. It basically wants to do the same thing as the update-alternatives does. But it doesn't do it well. (From OE-Core rev: 5b961afc784747eb8240540e542a789849118596) Signed-off-by: Chen Qi Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index c8908b0..f4efeb8 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -265,14 +265,6 @@ python do_package_prepend () { f.close() } -pkg_postinst_${PN} () { - # If we are not making an image we create links for the utilities that doesn't exist - # so the update-alternatives script will get the utilities it needs - # (update-alternatives have no problem replacing links later anyway) - test -n 2> /dev/null || alias test='busybox test' - if test "x$D" = "x"; then while read link; do if test ! -h "$link"; then case "$link" in /*/*/*) to="../../bin/busybox";; /bin/*) to="busybox";; /*/*) to="../bin/busybox";; esac; busybox ln -s $to $link; fi; done