Patchwork bash: Update to new update-alternatives syntax

login
register
mail settings
Submitter Richard Purdie
Date May 30, 2012, 11:55 a.m.
Message ID <1338378931.20169.128.camel@ted>
Download mbox | patch
Permalink /patch/28931/
State Accepted
Commit 6176dbd6ee770c0c2849f53b213866b61ac29ff1
Headers show

Comments

Richard Purdie - May 30, 2012, 11:55 a.m.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---

Patch

diff --git a/meta/recipes-extended/bash/bash.inc b/meta/recipes-extended/bash/bash.inc
index 876be1e..ff9b0ce 100644
--- a/meta/recipes-extended/bash/bash.inc
+++ b/meta/recipes-extended/bash/bash.inc
@@ -17,9 +17,9 @@  sbindir = "/sbin"
 EXTRA_OECONF = "--enable-job-control"
 export CC_FOR_BUILD = "${BUILD_CC}"
 
-ALTERNATIVE_NAME = "sh"
-ALTERNATIVE_PATH = "${base_bindir}/bash"
-ALTERNATIVE_LINK = "${base_bindir}/sh"
+ALTERNATIVE_${PN} = "sh"
+ALTERNATIVE_LINK_NAME[sh] = "${base_bindir}/sh"
+ALTERNATIVE_TARGET[sh] = "${base_bindir}/bash"
 ALTERNATIVE_PRIORITY = "100"
 
 export AUTOHEADER = "true"