powertop: fix update-alternatives link
authorSergey Matyukevich <sergey_matyukevich@mentor.com>
Tue, 9 Jul 2013 13:47:22 +0000 (17:47 +0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 13 Jul 2013 17:23:34 +0000 (18:23 +0100)
In the new stable busybox_1.21.1 default location of symbolic link for
powertop has been changed: /usr/sbin instead of /bin. This update breaks
creation of alternative links when both busybox and powertop packages are
installed on the system.

Fix: modification of ALTERNATIVE_LINK_NAME in powertop recipe.

(From OE-Core rev: d49cbc1e1aa65d759a5dcb0ab20b6fd5b233183b)

Signed-off-by: Sergey Matyukevich <sergey_matyukevich@mentor.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/powertop/powertop_2.3.bb

index 8ee349c..5dae1b6 100644 (file)
@@ -26,5 +26,5 @@ do_configure_prepend() {
 inherit update-alternatives
 ALTERNATIVE_${PN} = "powertop"
 ALTERNATIVE_TARGET[powertop] = "${sbindir}/powertop"
-ALTERNATIVE_LINK_NAME[powertop] = "${base_bindir}/powertop"
+ALTERNATIVE_LINK_NAME[powertop] = "${sbindir}/powertop"
 ALTERNATIVE_PRIORITY = "100"