Patchwork [10/19] time: use new update-alternatives

login
register
mail settings
Submitter Morgan Little
Date Aug. 1, 2012, 2:12 p.m.
Message ID <1343830340-25351-11-git-send-email-morgan.little@windriver.com>
Download mbox | patch
Permalink /patch/33551/
State New
Headers show

Comments

Morgan Little - Aug. 1, 2012, 2:12 p.m.
Signed-off-by: Morgan Little <morgan.little@windriver.com>
---
 meta/recipes-extended/time/time.inc |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

 ALTERNATIVE_PRIORITY = "100"
Mark Hatle - Aug. 1, 2012, 3:16 p.m.
On 8/1/12 9:12 AM, Morgan Little wrote:
>
> Signed-off-by: Morgan Little <morgan.little@windriver.com>
> ---
>   meta/recipes-extended/time/time.inc |    6 +++---
>   1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/meta/recipes-extended/time/time.inc b/meta/recipes-extended/time/time.inc
> index 8e35843..b7cedac 100644
> --- a/meta/recipes-extended/time/time.inc
> +++ b/meta/recipes-extended/time/time.inc
> @@ -12,7 +12,7 @@
>   do_install_append () {
>           mv ${D}${bindir}/time ${D}${bindir}/time.${BPN}
>   }
>
> -ALTERNATIVE_NAME = "time"
> -ALTERNATIVE_LINK = "${bindir}/time"
> -ALTERNATIVE_PATH = "${bindir}/time.${BPN}"
> +ALTERNATIVE_${PN} = "time"
> +ALTERNATIVE_LINK_NAME[time] = "${bindir}/time"
> +ALTERNATIVE_TARGET[time] = "${bindir}/time.${BPN}"
>   ALTERNATIVE_PRIORITY = "100"
>

Remove the do_install_append, and then the ALTERNATIVE_TARGET[time] won't be needed.

--Mark

Patch

diff --git a/meta/recipes-extended/time/time.inc b/meta/recipes-extended/time/time.inc
index 8e35843..b7cedac 100644
--- a/meta/recipes-extended/time/time.inc
+++ b/meta/recipes-extended/time/time.inc
@@ -12,7 +12,7 @@ 
 do_install_append () {
         mv ${D}${bindir}/time ${D}${bindir}/time.${BPN}
 }
 
-ALTERNATIVE_NAME = "time"
-ALTERNATIVE_LINK = "${bindir}/time"
-ALTERNATIVE_PATH = "${bindir}/time.${BPN}"
+ALTERNATIVE_${PN} = "time"
+ALTERNATIVE_LINK_NAME[time] = "${bindir}/time"
+ALTERNATIVE_TARGET[time] = "${bindir}/time.${BPN}"