From 34cab486f0fad6915f69dc88bdd0495e5b574369 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Wed, 3 Apr 2013 20:11:13 +0000 Subject: [PATCH] fbset: Replace deprecated update-alternatives syntax Building fbset gave the following warning: WARNING: fbset: Use of ALTERNATIVE_NAME is deprecated, see update-alternatives.bbclass for more info. update-alternatives.bbclass states that this warning will eventually become an error so this is worth fixing. The use of deprecated syntax is replaced with current syntax to do the same thing. To test that this works, a .deb package was created and the post-install script was checked to ensure that update-alternatives would be called with the exact same arguments as it was by the script generated by the old recipe. (From meta-openembedded rev: b0fb477a11d24cc64a40f29dfd934b5e78f6cc7d) Signed-off-by: Paul Barker Signed-off-by: Martin Jansa Signed-off-by: Patrick Ohly --- meta-openembedded/meta-oe/recipes-support/fbset/fbset_2.1.bb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/meta-openembedded/meta-oe/recipes-support/fbset/fbset_2.1.bb b/meta-openembedded/meta-oe/recipes-support/fbset/fbset_2.1.bb index 12c1c94..9fe2728 100644 --- a/meta-openembedded/meta-oe/recipes-support/fbset/fbset_2.1.bb +++ b/meta-openembedded/meta-oe/recipes-support/fbset/fbset_2.1.bb @@ -27,12 +27,10 @@ do_install() { install -m 0644 ${WORKDIR}/${P}/*.8 ${D}${datadir}/man/man8 } -ALTERNATIVE_NAME = "fbset" -ALTERNATIVE_LINK = "${sbindir}/${ALTERNATIVE_NAME}" -ALTERNATIVE_PATH = "${sbindir}/fbset.real" -ALTERNATIVE_PRIORITY = "55" - - +ALTERNATIVE_fbset = "fbset" +ALTERNATIVE_LINK_NAME[fbset] = "${sbindir}/fbset" +ALTERNATIVE_TARGET[fbset] = "${sbindir}/fbset.real" +ALTERNATIVE_PRIORITY[fbset] = "55" SRC_URI[md5sum] = "40ed9608f46d787bfb65fd1269f7f459" SRC_URI[sha256sum] = "517fa062d7b2d367f931a1c6ebb2bef84907077f0ce3f0c899e34490bbea9338" -- 2.7.4