[OE-core] [PATCH] gdb-cross-canadian: disable conflicting PACKAGECONFIG variables

Khem Raj raj.khem at gmail.com
Sun Mar 27 06:42:27 UTC 2016


On Sat, Mar 26, 2016 at 5:45 PM, Jonathan Liu <net147 at gmail.com> wrote:
> The PACKAGECONFIG variables in gdb-common.inc don't work correctly for
> the cross recipes so they need to be disabled.
>
> Python support was not being enabled because the python PACKAGECONFIG
> added --without-python to OE_EXTRACONF.
>
> The recipe depends on nativesdk-readline and the readline PACKAGECONFIG
> just adds an unnecessary extra dependency on readline. The
> --with-system-readline configure argument is explicitly added
> to EXTRA_OECONF to ensure we link to nativesdk-readline.
>
> Signed-off-by: Jonathan Liu <net147 at gmail.com>
> ---
>  meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
> index ae97759..952f28f 100644
> --- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
> +++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
> @@ -13,7 +13,12 @@ RDEPENDS_${PN} += "nativesdk-python-core nativesdk-python-lang nativesdk-python-
>
>  GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
>
> -EXTRA_OECONF_append = " --with-python=${WORKDIR}/python"
> +EXTRA_OECONF += "--with-python=${WORKDIR}/python"

should this point to a valid python location ?

> +EXTRA_OECONF += "--with-system-readline"
> +
> +# Disable conflicting PACKAGECONFIG variables in gdb-common.inc
> +PACKAGECONFIG[python] = ""
> +PACKAGECONFIG[readline] = ""
>
>  SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb"
>
> --
> 2.7.4
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list