summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2014-08-13 01:23:13 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-15 18:21:51 +0100
commitae8d3bc5228d8f1a265c81b1539d60f4ccf541a7 (patch)
tree4aa02b96d49322fb1466d1b31c6376ec5e9c9680 /meta/recipes-devtools/python/python-pygtk_2.24.0.bb
parent9a30d34a4e6db62c1631587d9c651563c5c0fd7e (diff)
downloadast2050-yocto-poky-ae8d3bc5228d8f1a265c81b1539d60f4ccf541a7.zip
ast2050-yocto-poky-ae8d3bc5228d8f1a265c81b1539d60f4ccf541a7.tar.gz
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] (From OE-Core rev: d70bc02a80f8508995cdf8ae536a0153cebee8c9) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python-pygtk_2.24.0.bb')
-rw-r--r--meta/recipes-devtools/python/python-pygtk_2.24.0.bb1
1 files changed, 1 insertions, 0 deletions
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
OpenPOWER on IntegriCloud