From b89254a8bbc518b35289a49f16faf8d38921e221 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 17 Feb 2020 19:28:38 -0800 Subject: rsyslog: Use python3 in ptests Adjusts rdeps accordingly Signed-off-by: Khem Raj --- meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb b/meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb index 29bba2d9a7..f82caf7b5c 100644 --- a/meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb +++ b/meta-oe/recipes-extended/rsyslog/rsyslog_8.1911.0.bb @@ -77,6 +77,12 @@ PACKAGECONFIG[libdbi] = "--enable-libdbi,--disable-libdbi,libdbi," PACKAGECONFIG[mail] = "--enable-mail,--disable-mail,," PACKAGECONFIG[valgrind] = "--enable-valgrind,--disable-valgrind,valgrind," +do_configure_prepend() { + sed -i -e 's|python |python3 |g' ${S}/tests/*.sh + sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/tests/*.py + sed -i -e 's|/usr/bin/env python|/usr/bin/env python3|g' ${S}/tests/testsuites/*.py +} + TESTDIR = "tests" do_compile_ptest() { echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${TESTDIR}/Makefile @@ -186,6 +192,6 @@ VALGRIND_riscv64 = "" RDEPENDS_${PN}-ptest += "\ make diffutils gzip bash gawk coreutils procps \ - libgcc python-core python-io \ + libgcc python3-core python3-io \ " RRECOMMENDS_${PN}-ptest += "${TCLIBC}-dbg ${VALGRIND}" -- cgit v1.2.3-54-g00ecf