]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
buildtools-tarball: handle missing host pkg-config gracefully
authorDaniel Wagenknecht <dwagenknecht@emlix.com>
Tue, 9 Sep 2025 07:42:27 +0000 (09:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 11 Sep 2025 09:45:09 +0000 (10:45 +0100)
commit049a802cef23f9ecb5d373c0d27753a891a4b5a6
tree6d41a465774f08887ba9a6b62193bdd240bc229f
parentbcc74229e6d5a716a9f65546665a42478295dece
buildtools-tarball: handle missing host pkg-config gracefully

The host might not have pkg-config installed, which is OK when using the
buildtools-extended-tarball, since that contains pkg-config. So the command in
the generated environment-setup-* script for setting HOST_PKG_PATH is expected
to fail in some cases without this being an error.

The generated environment-setup-* script might be sourced in a shell with
activated `errexit` option. Prevent the expected failure of this command from
being treated as an error.

The only usage of the HOST_PKG_PATH variable is in this script and already
handles the case of the variable being empty. The variable is not exposed to
anywhere outside this script so the effects of this change are limited to this
script.

Signed-off-by: Daniel Wagenknecht <dwagenknecht@emlix.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/meta/buildtools-tarball.bb