From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 830A560761 for ; Fri, 25 Mar 2016 09:26:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u2P9QvtO026929; Fri, 25 Mar 2016 09:26:57 GMT Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id VujEhGzWXIek; Fri, 25 Mar 2016 09:26:57 +0000 (GMT) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id u2P9Qpew026926 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 25 Mar 2016 09:26:52 GMT Message-ID: <1458898011.3073.48.camel@linuxfoundation.org> From: Richard Purdie To: Jonathan Liu Date: Fri, 25 Mar 2016 09:26:51 +0000 In-Reply-To: References: <1458887112-27434-1-git-send-email-net147@gmail.com> <1458896056.3073.45.camel@linuxfoundation.org> X-Mailer: Evolution 3.16.5-1ubuntu3.1 Mime-Version: 1.0 Cc: "openembedded-core@lists.openembedded.org" Subject: Re: [PATCH] gdb-cross-canadian: fix enabling of Python support X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2016 09:27:00 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2016-03-25 at 19:58 +1100, Jonathan Liu wrote: > Hi Richard, > > On 25 March 2016 at 19:54, Richard Purdie > wrote: > > On Fri, 2016-03-25 at 17:25 +1100, Jonathan Liu wrote: > > > Python support was not being enabled because of a conflicting > > > --without-python configure argument in OE_EXTRACONF. > > > > > > Signed-off-by: Jonathan Liu > > > --- > > > meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc > > > b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc > > > index ae97759..6fd3e3e 100644 > > > --- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc > > > +++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc > > > @@ -13,6 +13,7 @@ RDEPENDS_${PN} += "nativesdk-python-core > > > nativesdk > > > -python-lang nativesdk-python- > > > > > > GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'" > > > > > > +EXTRA_OECONF_remove = "--without-python" > > > EXTRA_OECONF_append = " --with-python=${WORKDIR}/python" > > > > Would a PACKAGECONFIG += "python" have the same effect? > > > > Cheers, > > > > Richard > > > > > > > > No, it wouldn't. It would depend on python and python-codecs then > fail > when building SDK. Ok, I still don't think the above is the right fix though as it still leaves things fragile, if for example I try and enable python for gdb by default on target. I think we may need to do something like: -PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without -python,python,python python-codecs" + PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without -python,python,${GDBPYTHON_RDEPENDS}" +GDBPYTHON_RDEPENDS = "python python-codecs" and then set: GDBPYTHON_RDEPENDS = "" PACKAGECONFIG += "python" in the cross recipes. Would that work? Cheers, Richard