diff options
author | Joe Slater <jslater@windriver.com> | 2017-10-13 15:40:25 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-12-04 17:23:57 +0000 |
commit | 8d706de096f20de7fb25f4bde9296b03399029b8 (patch) | |
tree | 1321d0405048815494073a2c29638bc627b80c0e /meta/recipes-devtools | |
parent | 59cbf692992befd605935ce0880ba77078e3cfd1 (diff) | |
download | poky-8d706de096f20de7fb25f4bde9296b03399029b8.tar.gz |
rpm: remove --sysroot from macros on target
We do not want to specify --sysroot when defining __cc
used on a target.
(From OE-Core rev: 328201fe185b948eacceceefd9d2d2d0ba1ab676)
Signed-off-by: Joe Slater <jslater@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm_git.bb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rpm/rpm_git.bb b/meta/recipes-devtools/rpm/rpm_git.bb index ea894a3470..7866314ad4 100644 --- a/meta/recipes-devtools/rpm/rpm_git.bb +++ b/meta/recipes-devtools/rpm/rpm_git.bb | |||
@@ -107,7 +107,8 @@ do_install_append_class-target() { | |||
107 | } | 107 | } |
108 | 108 | ||
109 | do_install_append () { | 109 | do_install_append () { |
110 | sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}/${libdir}/rpm/macros | 110 | sed -i -e 's:${HOSTTOOLS_DIR}/::g' \ |
111 | ${D}/${libdir}/rpm/macros | ||
111 | 112 | ||
112 | sed -i -e 's|/usr/bin/python|${USRBINPATH}/env ${PYTHON_PN}|' \ | 113 | sed -i -e 's|/usr/bin/python|${USRBINPATH}/env ${PYTHON_PN}|' \ |
113 | ${D}${libdir}/rpm/pythondistdeps.py | 114 | ${D}${libdir}/rpm/pythondistdeps.py |
@@ -127,3 +128,11 @@ FILES_python3-rpm = "${PYTHON_SITEPACKAGES_DIR}/rpm/*" | |||
127 | RPROVIDES_${PN} += "rpm-build" | 128 | RPROVIDES_${PN} += "rpm-build" |
128 | 129 | ||
129 | RDEPENDS_${PN} = "bash perl python3-core" | 130 | RDEPENDS_${PN} = "bash perl python3-core" |
131 | |||
132 | PACKAGE_PREPROCESS_FUNCS += "rpm_package_preprocess" | ||
133 | |||
134 | # Do not specify a sysroot when compiling on a target. | ||
135 | rpm_package_preprocess () { | ||
136 | sed -i -e 's:--sysroot[^ ]*::g' \ | ||
137 | ${PKGD}/${libdir}/rpm/macros | ||
138 | } | ||