Patchwork [07/19] mktemp: use new update-alternatives

login
register
mail settings
Submitter Morgan Little
Date Aug. 1, 2012, 2:12 p.m.
Message ID <1343830340-25351-8-git-send-email-morgan.little@windriver.com>
Download mbox | patch
Permalink /patch/33537/
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/mktemp/mktemp_1.7.bb |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

         file://disable-strip.patch \
@@ -25,7 +25,7 @@
 do_install_append () {
 	rmdir ${D}${bindir}
 }
 
-ALTERNATIVE_NAME = "mktemp"
-ALTERNATIVE_LINK = "${base_bindir}/mktemp"
-ALTERNATIVE_PATH = "${base_bindir}/mktemp.${BPN}"
+ALTERNATIVE_${PN} = "mktemp"
+ALTERNAITVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp"
+ALTERNATIVE_TARGET[mktemp] = "${base_bindir}/mktemp.${BPN}"
 ALTERNATIVE_PRIORITY = "100"
Mark Hatle - Aug. 1, 2012, 3:15 p.m.
On 8/1/12 9:12 AM, Morgan Little wrote:
>
> Signed-off-by: Morgan Little <morgan.little@windriver.com>
> ---
>   meta/recipes-extended/mktemp/mktemp_1.7.bb |    8 ++++----
>   1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-extended/mktemp/mktemp_1.7.bb b/meta/recipes-extended/mktemp/mktemp_1.7.bb
> index b3a3d51..57f0df3 100644
> --- a/meta/recipes-extended/mktemp/mktemp_1.7.bb
> +++ b/meta/recipes-extended/mktemp/mktemp_1.7.bb
> @@ -5,7 +5,7 @@
>   SECTION = "console/utils"
>   LICENSE = "ISC"
>   LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4"
>
> -PR = "r2"
> +PR = "r3"
>
>   SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \
>           file://disable-strip.patch \
> @@ -25,7 +25,7 @@
>   do_install_append () {
>   	rmdir ${D}${bindir}
>   }
>
> -ALTERNATIVE_NAME = "mktemp"
> -ALTERNATIVE_LINK = "${base_bindir}/mktemp"
> -ALTERNATIVE_PATH = "${base_bindir}/mktemp.${BPN}"
> +ALTERNATIVE_${PN} = "mktemp"
> +ALTERNAITVE_LINK_NAME[mktemp] = "${base_bindir}/mktemp"
> +ALTERNATIVE_TARGET[mktemp] = "${base_bindir}/mktemp.${BPN}"
>   ALTERNATIVE_PRIORITY = "100"
>

Similar to the previous, figure out where mktemp.${BPN} is generated, the 
update-alternatives will do it automatically..  Then ALTERNATIVE_TARGET[mktemp] 
shouldn't be needed.

--Mark

Patch

diff --git a/meta/recipes-extended/mktemp/mktemp_1.7.bb b/meta/recipes-extended/mktemp/mktemp_1.7.bb
index b3a3d51..57f0df3 100644
--- a/meta/recipes-extended/mktemp/mktemp_1.7.bb
+++ b/meta/recipes-extended/mktemp/mktemp_1.7.bb
@@ -5,7 +5,7 @@ 
 SECTION = "console/utils"
 LICENSE = "ISC"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=430680f6322a1eb87199b5e01a82c0d4"
 
-PR = "r2"
+PR = "r3"
 
 SRC_URI = "ftp://ftp.mktemp.org/pub/mktemp/${BPN}-${PV}.tar.gz \