]> code.ossystems Code Review - openembedded-core.git/commitdiff
rpm: Add dependencies on bash, perl and python3-core
authorPeter Kjellerstedt <pkj@axis.com>
Tue, 15 Aug 2017 21:41:52 +0000 (16:41 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 15 Aug 2017 23:11:51 +0000 (00:11 +0100)
Also modify a Python script (pythondistdeps.py) to use Python 3.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/rpm/rpm_git.bb

index 59836d0b11d0a225adbcbd4acf34e03af03b8f8d..2f814c44e77c146a758713f0d71aabf72fb32326 100644 (file)
@@ -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"