All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gdb-cross-canadian: Depend on nativesdk-python3-misc
@ 2016-12-05 16:38 George McCollister
  2016-12-05 21:21 ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: George McCollister @ 2016-12-05 16:38 UTC (permalink / raw)
  To: openembedded-core

Add missing dependency on nativesdk-python3-misc so the imp Python
module is installed.

Before this patch, running gdb from the sdk would give the following
error:

Python Exception <class 'ImportError'> No module named 'imp':

Signed-off-by: George McCollister <george.mccollister@gmail.com>
---
 meta/recipes-devtools/gdb/gdb-cross-canadian.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
index e53081d..844daf2 100644
--- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
+++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
@@ -14,7 +14,8 @@ GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
 PACKAGECONFIG ??= "python readline"
 PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,nativesdk-python3, \
                          nativesdk-python3-core nativesdk-python3-lang nativesdk-python3-re \
-                         nativesdk-python3-codecs nativesdk-python3-netclient"
+                         nativesdk-python3-codecs nativesdk-python3-netclient \
+                         nativesdk-python3-misc"
 PACKAGECONFIG[readline] = "--with-system-readline,--without-system-readline,nativesdk-readline"
 
 SSTATE_DUPWHITELIST += "${STAGING_DATADIR}/gdb"
-- 
2.9.3



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] gdb-cross-canadian: Depend on nativesdk-python3-misc
  2016-12-05 16:38 [PATCH] gdb-cross-canadian: Depend on nativesdk-python3-misc George McCollister
@ 2016-12-05 21:21 ` Burton, Ross
  2016-12-06  0:16   ` George McCollister
  0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2016-12-05 21:21 UTC (permalink / raw)
  To: George McCollister; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

On 5 December 2016 at 16:38, George McCollister <
george.mccollister@gmail.com> wrote:

> Add missing dependency on nativesdk-python3-misc so the imp Python
> module is installed.
>

So imp is the Python-facing API for 'import', and python-misc is a grab-bag
of random stuff.  Should imp be moved to be in python3-importlib (where its
replacement already lives) or moved into python3-core?

Ross

[-- Attachment #2: Type: text/html, Size: 830 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gdb-cross-canadian: Depend on nativesdk-python3-misc
  2016-12-05 21:21 ` Burton, Ross
@ 2016-12-06  0:16   ` George McCollister
  2016-12-06  9:14     ` Burton, Ross
  0 siblings, 1 reply; 4+ messages in thread
From: George McCollister @ 2016-12-06  0:16 UTC (permalink / raw)
  To: Burton, Ross; +Cc: OE-core

On Mon, Dec 5, 2016 at 3:21 PM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 5 December 2016 at 16:38, George McCollister
> <george.mccollister@gmail.com> wrote:
>>
>> Add missing dependency on nativesdk-python3-misc so the imp Python
>> module is installed.
>
>
> So imp is the Python-facing API for 'import', and python-misc is a grab-bag
> of random stuff.  Should imp be moved to be in python3-importlib (where its
> replacement already lives) or moved into python3-core?

importlib is the replacement for imp (it's deprecated since version
3.4) so this sounds reasonable to me. Shall I send a patch to add
imp.py to python3-importlib and another to add python3-importlib to
PACKAGECONFIG[python] in gdb-cross-canadian.inc?

-George


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] gdb-cross-canadian: Depend on nativesdk-python3-misc
  2016-12-06  0:16   ` George McCollister
@ 2016-12-06  9:14     ` Burton, Ross
  0 siblings, 0 replies; 4+ messages in thread
From: Burton, Ross @ 2016-12-06  9:14 UTC (permalink / raw)
  To: George McCollister; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

On 6 December 2016 at 00:16, George McCollister <
george.mccollister@gmail.com> wrote:

> importlib is the replacement for imp (it's deprecated since version
> 3.4) so this sounds reasonable to me. Shall I send a patch to add
> imp.py to python3-importlib and another to add python3-importlib to
> PACKAGECONFIG[python] in gdb-cross-canadian.inc?
>

Yes, that sounds like the best idea to me.

Ross

[-- Attachment #2: Type: text/html, Size: 822 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-06  9:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-05 16:38 [PATCH] gdb-cross-canadian: Depend on nativesdk-python3-misc George McCollister
2016-12-05 21:21 ` Burton, Ross
2016-12-06  0:16   ` George McCollister
2016-12-06  9:14     ` Burton, Ross

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.