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

Jonathan Liu net147 at gmail.com
Fri Apr 1 11:42:19 UTC 2016


Hi Khem,

On 27 March 2016 at 17:42, Khem Raj <raj.khem at gmail.com> wrote:
> 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 ?

${WORKDIR}/python is created by do_configure_prepend()

>
>> +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

Regards,
Jonathan



More information about the Openembedded-core mailing list