[oe-commits] Robert Yang : python-pygtk: fix native python path

git at git.openembedded.org git at git.openembedded.org
Fri Aug 15 07:44:40 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: c3cda23b3764e690780da769d945f8d6aa5dbd8a
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c3cda23b3764e690780da769d945f8d6aa5dbd8a

Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Wed Aug 13 01:23:13 2014 -0700

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 at core2_64: no package provides /usr/bin/python-native/python
[snip]

Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/python/python-pygtk_2.24.0.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
index 3dbef89..8fc194f 100644
--- a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
+++ b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
@@ -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



More information about the Openembedded-commits mailing list