]> code.ossystems Code Review - openembedded-core.git/commitdiff
buildtools-tarball: Fix conflicts with oe-selftest and other tooling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Sep 2020 22:23:10 +0000 (23:23 +0100)
committerSteve Sakoman <steve@sakoman.com>
Wed, 30 Sep 2020 14:35:15 +0000 (04:35 -1000)
OECORE_NATIVE_SYSROOT is used by tools like oe-run-native and hence
we were seeing selftest failures when newer buildtools-tarballs that
use this were run on the autobuilder.

Unset the variable after use to avoid these issues.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit ea5128fde10eb9be7fefbbb87ae6181edd2bcdff)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/meta/buildtools-tarball.bb

index 44d658687d57332f8465938b2beba11b9273097e..434ffdc3341a76de173c083c0c0a5681606655ee 100644 (file)
@@ -79,6 +79,9 @@ if [ -d "\$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; then
                . \$envfile
        done
 fi
+# We have to unset this else it can confuse oe-selftest and other tools
+# which may also use the overlapping namespace.
+unset OECORE_NATIVE_SYSROOT
 EOF
 
        mkdir -p ${SDK_OUTPUT}/${SDKPATHNATIVE}${sysconfdir}/