* [PATCH] gdb-cross-canadian: fix enabling of Python support @ 2016-03-25 6:25 Jonathan Liu 2016-03-25 8:54 ` Richard Purdie 2016-03-25 11:35 ` Jonathan Liu 0 siblings, 2 replies; 7+ messages in thread From: Jonathan Liu @ 2016-03-25 6:25 UTC (permalink / raw) To: openembedded-core Python support was not being enabled because of a conflicting --without-python configure argument in OE_EXTRACONF. Signed-off-by: Jonathan Liu <net147@gmail.com> --- 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" SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb" -- 2.7.3 ^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH] gdb-cross-canadian: fix enabling of Python support 2016-03-25 6:25 [PATCH] gdb-cross-canadian: fix enabling of Python support Jonathan Liu @ 2016-03-25 8:54 ` Richard Purdie 2016-03-25 8:58 ` Jonathan Liu 2016-03-25 11:35 ` Jonathan Liu 1 sibling, 1 reply; 7+ messages in thread From: Richard Purdie @ 2016-03-25 8:54 UTC (permalink / raw) To: Jonathan Liu, openembedded-core 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 <net147@gmail.com> > --- > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gdb-cross-canadian: fix enabling of Python support 2016-03-25 8:54 ` Richard Purdie @ 2016-03-25 8:58 ` Jonathan Liu 2016-03-25 9:26 ` Richard Purdie 0 siblings, 1 reply; 7+ messages in thread From: Jonathan Liu @ 2016-03-25 8:58 UTC (permalink / raw) To: Richard Purdie; +Cc: openembedded-core@lists.openembedded.org Hi Richard, On 25 March 2016 at 19:54, Richard Purdie <richard.purdie@linuxfoundation.org> 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 <net147@gmail.com> >> --- >> 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. Regards, Jonathan ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gdb-cross-canadian: fix enabling of Python support 2016-03-25 8:58 ` Jonathan Liu @ 2016-03-25 9:26 ` Richard Purdie 2016-03-25 10:29 ` Jonathan Liu 0 siblings, 1 reply; 7+ messages in thread From: Richard Purdie @ 2016-03-25 9:26 UTC (permalink / raw) To: Jonathan Liu; +Cc: openembedded-core@lists.openembedded.org On Fri, 2016-03-25 at 19:58 +1100, Jonathan Liu wrote: > Hi Richard, > > On 25 March 2016 at 19:54, Richard Purdie > <richard.purdie@linuxfoundation.org> 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 <net147@gmail.com> > > > --- > > > 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 ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gdb-cross-canadian: fix enabling of Python support 2016-03-25 9:26 ` Richard Purdie @ 2016-03-25 10:29 ` Jonathan Liu 2016-03-25 10:34 ` Richard Purdie 0 siblings, 1 reply; 7+ messages in thread From: Jonathan Liu @ 2016-03-25 10:29 UTC (permalink / raw) To: Richard Purdie; +Cc: openembedded-core@lists.openembedded.org Hi Richard, On 25 March 2016 at 20:26, Richard Purdie <richard.purdie@linuxfoundation.org> wrote: > On Fri, 2016-03-25 at 19:58 +1100, Jonathan Liu wrote: >> Hi Richard, >> >> On 25 March 2016 at 19:54, Richard Purdie >> <richard.purdie@linuxfoundation.org> 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 <net147@gmail.com> >> > > --- >> > > 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 The path to python is different too. gdb-cross.inc: EXTRA_OECONF += "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python" gdb-cross-canadian.inc: EXTRA_OECONF_append = " --with-python=${WORKDIR}/python" Does it really make sense to have these PACKAGECONFIG options in a common include? babeltrace for example doesn't have have BBCLASSEXTEND for native and nativesdk. I wonder if the commit should just be reverted. Regards, Jonathan ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gdb-cross-canadian: fix enabling of Python support 2016-03-25 10:29 ` Jonathan Liu @ 2016-03-25 10:34 ` Richard Purdie 0 siblings, 0 replies; 7+ messages in thread From: Richard Purdie @ 2016-03-25 10:34 UTC (permalink / raw) To: Jonathan Liu; +Cc: openembedded-core@lists.openembedded.org On Fri, 2016-03-25 at 21:29 +1100, Jonathan Liu wrote: > Hi Richard, > > On 25 March 2016 at 20:26, Richard Purdie > <richard.purdie@linuxfoundation.org> wrote: > > On Fri, 2016-03-25 at 19:58 +1100, Jonathan Liu wrote: > > > Hi Richard, > > > > > > On 25 March 2016 at 19:54, Richard Purdie > > > <richard.purdie@linuxfoundation.org> 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 <net147@gmail.com> > > > > > --- > > > > > 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 > > The path to python is different too. > gdb-cross.inc: EXTRA_OECONF += > "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python" > gdb-cross-canadian.inc: EXTRA_OECONF_append = " --with > -python=${WORKDIR}/python" > > Does it really make sense to have these PACKAGECONFIG options in a > common include? > babeltrace for example doesn't have have BBCLASSEXTEND for native and > nativesdk. > > I wonder if the commit should just be reverted. The original code had other bugs and was very confused about other options which should have been enabled or not enabled in various combinations. So whilst we could revert it, it just swaps this issue for others. Given your comments above, I think the best option might be to set: PACKAGECONFIG += "python" PACKAGECONFIG[python] = "--with-python=${STAGING_BINDIR_NATIVE}/python-native/python,--without-python,python" in gcc-cross-canadian since that should correctly override the problem cases yet make it clearer what is going on. A comment about it would also likely be good. Cheers, Richard ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH] gdb-cross-canadian: fix enabling of Python support 2016-03-25 6:25 [PATCH] gdb-cross-canadian: fix enabling of Python support Jonathan Liu 2016-03-25 8:54 ` Richard Purdie @ 2016-03-25 11:35 ` Jonathan Liu 1 sibling, 0 replies; 7+ messages in thread From: Jonathan Liu @ 2016-03-25 11:35 UTC (permalink / raw) To: openembedded-core@lists.openembedded.org On 25 March 2016 at 17:25, Jonathan Liu <net147@gmail.com> wrote: > Python support was not being enabled because of a conflicting > --without-python configure argument in OE_EXTRACONF. > > Signed-off-by: Jonathan Liu <net147@gmail.com> > --- > 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" > > SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb" > -- > 2.7.3 > Please ignore this patch. It is is replaced by "gdb-cross-canadian: use PACKAGECONFIG for python and readline". Regards, Jonathan ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-03-25 11:35 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-03-25 6:25 [PATCH] gdb-cross-canadian: fix enabling of Python support Jonathan Liu 2016-03-25 8:54 ` Richard Purdie 2016-03-25 8:58 ` Jonathan Liu 2016-03-25 9:26 ` Richard Purdie 2016-03-25 10:29 ` Jonathan Liu 2016-03-25 10:34 ` Richard Purdie 2016-03-25 11:35 ` Jonathan Liu
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.