Skip to contentSkip to conversation

gdb: Add missing runtime dependency for python option

PATCH New Andre McCurdy 1 participant 1 message Jun 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gdb: Add missing runtime dependency for python option

From: Andreas Oberritter <[email protected]>

With python enabled, gdb refuses to start without core python modules:

| Could not find platform independent libraries <prefix>
| Could not find platform dependent libraries <exec_prefix>
| Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
| ImportError: No module named site

It also complains if python-codecs is missing.

---
 meta/recipes-devtools/gdb/gdb_7.9.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/gdb/gdb_7.9.1.bb +1 -1
index 1abc9d8..cd52e27 100644
@@ -4,7 +4,7 @@ require gdb-${PV}.inc
 inherit python-dir
 
 PACKAGECONFIG ??= ""
-PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python"
+PACKAGECONFIG[python] = "--with-python=${WORKDIR}/python,--without-python,python,python python-codecs"
 PACKAGECONFIG[babeltrace] = "--with-babeltrace,--without-babeltrace,babeltrace"
 
 do_configure_prepend() {
Signature · 1 line
1.9.1