[oe-commits] Robert Yang : python-pygtk: remove invalid sed command

git at git.openembedded.org git at git.openembedded.org
Sun Jul 12 21:51:08 UTC 2015


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

Author: Robert Yang <liezhi.yang at windriver.com>
Date:   Fri Jul 10 00:14:55 2015 -0700

python-pygtk: remove invalid sed command

* There is no 'tests docs' in Makefile.am any more, so remove:
    sed -i 's:tests docs:tests:' ${S}/Makefile.am
* Remove the invalid sed command in do_install_append, only the one for
  pygtk-demo is needed.

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 | 21 ---------------------
 1 file changed, 21 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 053f37f..e4c33a8 100644
--- a/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
+++ b/meta/recipes-devtools/python/python-pygtk_2.24.0.bb
@@ -37,31 +37,10 @@ do_configure_prepend() {
 		-e s:'`$PKG_CONFIG --variable codegendir pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/2.0/codegen\":g \
 		-e s:'`$PKG_CONFIG --variable=fixxref pygobject-2.0`':\"${STAGING_DATADIR}/pygobject/xsl/fixxref.py\":g \
 		${S}/configure.ac
-	sed -i 's:tests docs:tests:' ${S}/Makefile.am
 }
 
 # dirty fix #2: fix build system paths leaking in
 do_install_append() {
-        for i in `find ${D} -name "*.py"` ; do \
-            sed -i -e s:${D}::g $i
-        done
-
-        for i in `find ${D} -name "*.la"` ; do \
-            sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i
-        done
-        
-        if test -e ${D}${bindir} ; then
-            for i in ${D}${bindir}/* ; do \
-                sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
-            done
-        fi
-
-        if test -e ${D}${sbindir} ; then
-            for i in ${D}${sbindir}/* ; do \
-                sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
-            done
-        fi
-
 	sed -i -e '1s|^#!.*python|#!/usr/bin/env python|' ${D}${bindir}/pygtk-demo
 }
 



More information about the Openembedded-commits mailing list