[OE-core] [PATCH 07/19] mktemp: use new update-alternatives

Mark Hatle mark.hatle at windriver.com
Wed Aug 1 15:15:40 UTC 2012


On 8/1/12 9:12 AM, Morgan Little wrote:
>
> Signed-off-by: Morgan Little <morgan.little at 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




More information about the Openembedded-core mailing list