]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
qemu: Fix slirp determinism issue
authorSteve Sakoman <steve@sakoman.com>
Wed, 8 Feb 2023 19:42:49 +0000 (09:42 -1000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 13 Feb 2023 17:21:40 +0000 (07:21 -1000)
commite5dc03e4a3b71ff144896a8ce56a34b8677e8e27
treef3d0ae05e56a996eabd234ad58cca2c10cddb721
parentdaaee6fcb0d201f041678af433d8e1cd6f924d09
qemu: Fix slirp determinism issue

Add a PACKAGECONFIG option for slirp, defaulting to internal. This avoids
the presence of libslirp on the host causing qemu to link against that
instead breaking reproducibility and usability of the binary on hosts
where the library isn't present.

We need to add it to PACKAGECONFIG by default since users do expect slirp
to be enabled in the wider community.

Note: qemu version 4.2.0 doesn't support an "internal" option for
enable-slirp, so use "git" instead which uses the same configure
code path, avoids host libslirp contamination and forces use of the
qemu internal slirp implementation.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5a9a64132bf5ecac9d611d29751226a466c4a2c1)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/qemu/qemu-system-native_4.2.0.bb
meta/recipes-devtools/qemu/qemu.inc
meta/recipes-devtools/qemu/qemu_4.2.0.bb