From: Peter Kjellerstedt Date: Tue, 15 Aug 2017 21:41:52 +0000 (-0500) Subject: rpm: Add dependencies on bash, perl and python3-core X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2906dbebfd547a630a4eafdcbaa1ceefa5e257c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rpm: Add dependencies on bash, perl and python3-core Also modify a Python script (pythondistdeps.py) to use Python 3. Signed-off-by: Peter Kjellerstedt Signed-off-by: Mark Hatle Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/rpm/rpm_git.bb b/meta/recipes-devtools/rpm/rpm_git.bb index 59836d0b11d..2f814c44e77 100644 --- a/meta/recipes-devtools/rpm/rpm_git.bb +++ b/meta/recipes-devtools/rpm/rpm_git.bb @@ -107,6 +107,9 @@ do_install_append_class-target() { do_install_append () { sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}/${libdir}/rpm/macros + + sed -i -e 's|/usr/bin/python|${USRBINPATH}/env ${PYTHON_PN}|' \ + ${D}${libdir}/rpm/pythondistdeps.py } FILES_${PN} += "${libdir}/rpm-plugins/*.so \ @@ -121,3 +124,5 @@ FILES_python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" # rpm 5.x was packaging the rpm build tools separately RPROVIDES_${PN} += "rpm-build" + +RDEPENDS_${PN} = "bash perl python3-core"