[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7979/8267] python-ptest: various fixes



commit 299a44f227b03ae2fd158a9b7fd050382b255bb3
Author: Juro Bystricky <juro bystricky intel com>
Date:   Thu Oct 5 11:22:28 2017 -0700

    python-ptest: various fixes
    
    python-ptest needs python-tests package installed in order to
    run any tests.
    This patch adds python-tests as a runtime dependency, so the test suite
    will be present in the image.
    While in there, also removed several build host references.
    
    [YOCTO #12144]
    
    (From OE-Core rev: ff83e15289e4b47cd3926220a0039bf97ec35120)
    
    Signed-off-by: Juro Bystricky <juro bystricky intel com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/recipes-devtools/python/python_2.7.13.bb |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/meta/recipes-devtools/python/python_2.7.13.bb b/meta/recipes-devtools/python/python_2.7.13.bb
index 4d73cd2..8770699 100644
--- a/meta/recipes-devtools/python/python_2.7.13.bb
+++ b/meta/recipes-devtools/python/python_2.7.13.bb
@@ -154,7 +154,7 @@ FILES_lib${BPN}2 = "${libdir}/libpython*.so.*"
 PACKAGES += "${PN}-misc"
 FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}"
 RDEPENDS_${PN}-modules += "${PN}-misc"
-RDEPENDS_${PN}-ptest = "${PN}-modules"
+RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests"
 #inherit ptest after "require python-${PYTHON_MAJMIN}-manifest.inc" so PACKAGES doesn't get overwritten
 inherit ptest
 
@@ -164,6 +164,16 @@ do_install_ptest() {
        sed -e s:LIBDIR/python/ptest:${PTEST_PATH}:g \
         -e s:LIBDIR:${libdir}:g \
         -i ${D}${PTEST_PATH}/run-ptest
+
+       #Remove build host references
+       sed -i \
+               -e 's:--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \
+           -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \
+           -e 's|${DEBUG_PREFIX_MAP}||g' \
+           -e 's:${HOSTTOOLS_DIR}/::g' \
+           -e 's:${RECIPE_SYSROOT}::g' \
+           -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
+       ${D}/${PTEST_PATH}/Makefile
 }
 
 # catch manpage


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]