Skip to contentSkip to conversation

python-pygtk: fix native python path

PATCH New Robert Yang 1 participant 2 messages Aug 13, 2014

lore
Share & tools
lore
#0 lore raw

cover python-pygtk: fix native python path

The following changes since commit 4321c553d5ae816e566234e981a0815bba046d39:

SIGGEN_EXCLUDERECIPES_ABISAFE: add initscripts (2014-08-11 17:44:09 +0100)

are available in the git repository at:

git://git.openembedded.org/openembedded-core-contrib rbt/pygtk
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/pygtk

Robert Yang (1):
python-pygtk: fix native python path

 .../recipes-devtools/python/python-pygtk_2.24.0.bb |    1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 python-pygtk: fix native python path

Fixed:
1) Set IMAGE_INSTALL_append = " python-pygtk-demo" in local.conf
2) $ bitbake core-image-minimal
[snip]
Computing transaction...error: Can't install python-pygtk-demo-2.24.0-r1@core2_64: no package provides /usr/bin/python-native/python [snip]

---
 .../recipes-devtools/python/python-pygtk_2.24.0.bb |    1 +
 1 file changed, 1 insertion(+)
meta/recipes-devtools/python/python-pygtk_2.24.0.bb +1 -0
index 3dbef89..8fc194f 100644
@@ -44,6 +44,7 @@ do_install_append() {
 	find ${D} -name "*.la"|xargs rm -f
 	rm -f ${D}/${bindir}/pygtk-codegen-2.0
 	rm -rf ${D}/${libdir}/pkgconfig
+	sed -i -e '1s|^#!.*python|#!/usr/bin/env python|' ${D}${bindir}/pygtk-demo
 }
 
 # dirty fix #2: fix build system paths leaking in
Signature · 1 line
1.7.9.5