summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/python/python_2.7.13.bb12
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 4d73cd25c8..877069943e 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.*"
154PACKAGES += "${PN}-misc" 154PACKAGES += "${PN}-misc"
155FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}" 155FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}"
156RDEPENDS_${PN}-modules += "${PN}-misc" 156RDEPENDS_${PN}-modules += "${PN}-misc"
157RDEPENDS_${PN}-ptest = "${PN}-modules" 157RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests"
158#inherit ptest after "require python-${PYTHON_MAJMIN}-manifest.inc" so PACKAGES doesn't get overwritten 158#inherit ptest after "require python-${PYTHON_MAJMIN}-manifest.inc" so PACKAGES doesn't get overwritten
159inherit ptest 159inherit ptest
160 160
@@ -164,6 +164,16 @@ do_install_ptest() {
164 sed -e s:LIBDIR/python/ptest:${PTEST_PATH}:g \ 164 sed -e s:LIBDIR/python/ptest:${PTEST_PATH}:g \
165 -e s:LIBDIR:${libdir}:g \ 165 -e s:LIBDIR:${libdir}:g \
166 -i ${D}${PTEST_PATH}/run-ptest 166 -i ${D}${PTEST_PATH}/run-ptest
167
168 #Remove build host references
169 sed -i \
170 -e 's:--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \
171 -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \
172 -e 's|${DEBUG_PREFIX_MAP}||g' \
173 -e 's:${HOSTTOOLS_DIR}/::g' \
174 -e 's:${RECIPE_SYSROOT}::g' \
175 -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
176 ${D}/${PTEST_PATH}/Makefile
167} 177}
168 178
169# catch manpage 179# catch manpage