diff options
| author | Ross Burton <ross.burton@intel.com> | 2018-10-12 12:55:02 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-16 16:33:09 +0000 |
| commit | 74408fe75017ea3ce42a9cdc46ab179320bb295f (patch) | |
| tree | 7248b89b03e871c75a7e9b6ea304ac11f25eeb30 /meta/recipes-devtools/python/python_2.7.15.bb | |
| parent | 62f52fdda08e2a8fad08b94ce326cae12e4b8757 (diff) | |
| download | poky-74408fe75017ea3ce42a9cdc46ab179320bb295f.tar.gz | |
python: clean up ptest
As the manifest handling is done differently now, just inherit ptest with the
other inherits.
test_shutil needs unzip so add to RDEPENDS.
Instead of using a patched Makefile, call test.regrtest directly.
(From OE-Core rev: 84f34ad223b1e3f36cab2ac12246eb90efc919bc)
(From OE-Core rev: c4647674da480c5925178cd821ce2d485c7467b7)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python_2.7.15.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python_2.7.15.bb | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/meta/recipes-devtools/python/python_2.7.15.bb b/meta/recipes-devtools/python/python_2.7.15.bb index 3044c3d363..1168f2a167 100644 --- a/meta/recipes-devtools/python/python_2.7.15.bb +++ b/meta/recipes-devtools/python/python_2.7.15.bb | |||
| @@ -23,7 +23,6 @@ SRC_URI += "\ | |||
| 23 | file://avoid_warning_about_tkinter.patch \ | 23 | file://avoid_warning_about_tkinter.patch \ |
| 24 | file://avoid_warning_for_sunos_specific_module.patch \ | 24 | file://avoid_warning_for_sunos_specific_module.patch \ |
| 25 | file://python-2.7.3-remove-bsdb-rpath.patch \ | 25 | file://python-2.7.3-remove-bsdb-rpath.patch \ |
| 26 | file://fix-makefile-for-ptest.patch \ | ||
| 27 | file://run-ptest \ | 26 | file://run-ptest \ |
| 28 | file://parallel-makeinst-create-bindir.patch \ | 27 | file://parallel-makeinst-create-bindir.patch \ |
| 29 | file://use_sysroot_ncurses_instead_of_host.patch \ | 28 | file://use_sysroot_ncurses_instead_of_host.patch \ |
| @@ -34,7 +33,7 @@ SRC_URI += "\ | |||
| 34 | 33 | ||
| 35 | S = "${WORKDIR}/Python-${PV}" | 34 | S = "${WORKDIR}/Python-${PV}" |
| 36 | 35 | ||
| 37 | inherit autotools multilib_header python-dir pythonnative | 36 | inherit autotools multilib_header python-dir pythonnative ptest |
| 38 | 37 | ||
| 39 | CONFIGUREOPTS += " --with-system-ffi " | 38 | CONFIGUREOPTS += " --with-system-ffi " |
| 40 | 39 | ||
| @@ -167,27 +166,7 @@ FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}" | |||
| 167 | RDEPENDS_${PN}-modules += "${PN}-misc" | 166 | RDEPENDS_${PN}-modules += "${PN}-misc" |
| 168 | 167 | ||
| 169 | # ptest | 168 | # ptest |
| 170 | RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests" | 169 | RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip" |
| 171 | #inherit ptest after "require python-${PYTHON_MAJMIN}-manifest.inc" so PACKAGES doesn't get overwritten | ||
| 172 | inherit ptest | ||
| 173 | |||
| 174 | # This must come after inherit ptest for the override to take effect | ||
| 175 | do_install_ptest() { | ||
| 176 | cp ${B}/Makefile ${D}${PTEST_PATH} | ||
| 177 | sed -e s:LIBDIR/python/ptest:${PTEST_PATH}:g \ | ||
| 178 | -e s:LIBDIR:${libdir}:g \ | ||
| 179 | -i ${D}${PTEST_PATH}/run-ptest | ||
| 180 | |||
| 181 | #Remove build host references | ||
| 182 | sed -i \ | ||
| 183 | -e 's:--with-libtool-sysroot=${STAGING_DIR_TARGET}'::g \ | ||
| 184 | -e 's:--sysroot=${STAGING_DIR_TARGET}::g' \ | ||
| 185 | -e 's|${DEBUG_PREFIX_MAP}||g' \ | ||
| 186 | -e 's:${HOSTTOOLS_DIR}/::g' \ | ||
| 187 | -e 's:${RECIPE_SYSROOT}::g' \ | ||
| 188 | -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \ | ||
| 189 | ${D}/${PTEST_PATH}/Makefile | ||
| 190 | } | ||
| 191 | 170 | ||
| 192 | # catch manpage | 171 | # catch manpage |
| 193 | PACKAGES += "${PN}-man" | 172 | PACKAGES += "${PN}-man" |
