[OE-core] [CONSOLIDATED REQUEST 05/64] console-tools: cleanup update-alternatives deprecated code
Richard Purdie
richard.purdie at linuxfoundation.org
Tue Aug 14 19:01:30 UTC 2012
On Tue, 2012-08-14 at 15:12 +0300, Saul Wold wrote:
> Signed-off-by: Saul Wold <sgw at linux.intel.com>
> ---
> .../console-tools/console-tools_0.3.2.bb | 8 ++++++--
> 1 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/meta/recipes-core/console-tools/console-tools_0.3.2.bb b/meta/recipes-core/console-tools/console-tools_0.3.2.bb
> index 6027d4a..1446368 100644
> --- a/meta/recipes-core/console-tools/console-tools_0.3.2.bb
> +++ b/meta/recipes-core/console-tools/console-tools_0.3.2.bb
> @@ -3,7 +3,7 @@ LICENSE = "GPLv2"
> LIC_FILES_CHKSUM = "file://COPYING.kbd;md5=9b2d91511d3d80d4d20ac6e6b0137fe9"
> SUMMARY = "Allows you to set-up and manipulate the Linux console."
> DESCRIPTION = "Provides tools that enable the set-up and manipulation of the linux console and console-font files."
> -PR = "r5"
> +PR = "r6"
>
> SRC_URI = "${SOURCEFORGE_MIRROR}/lct/console-tools-${PV}.tar.gz \
> file://codepage.patch \
> @@ -35,6 +35,10 @@ inherit autotools gettext update-alternatives
> ALTERNATIVE_PRIORITY = "100"
>
> bindir_progs = "chvt deallocvt fgconsole openvt"
> -ALTERNATIVE_LINKS = "${bindir}/${@' ${bindir}/'.join((d.getVar('bindir_progs', True)).split())}"
> +ALTERNATIVE_${PN} = "${bindir_progs}"
> +#python __anonymous() {
> +# for prog in d.getVar('bindir_progs', True).split():
> +# d.setVarFlag('ALTERNATIVE_LINK_NAME', prog, '%s/%s' % (d.getVar('base_bindir', True), prog))
> +#}
Any particular reason we're adding in this anonymous python function
which is commented out?
Cheers,
Richard
More information about the Openembedded-core
mailing list