1qemu: Ensure pip and the python venv aren't used for meson 2 3Qemu wants to use a supported python version and a specific meson version 4to "help" users and uses pip and creates a venv to do this. This is a nightmare 5for us. Our versions stay up to date and should be supported so we don't 6really need/want this wrapping. Tweak things to disable it. 7 8There was breakage from the wrapper shown by: 9 10bitbake qemu-system-native 11<add DISTRO_FEATURES:remove = "opengl" to local.conf> 12bitbake qemu-system-native -c configure 13 14which would crash. The issue is the change in configuration removes pieces 15from the sysroot but pyc files remainm as do pieces of pip which causes 16problems. 17 18Ideally we'd convince upstream to allow some way to disable the venv on 19the understanding that if/when it breaks, we keep the pieces. The patch 20as it stands is a workaround. 21 22Upstream-Status: Inappropriate [oe specific] 23Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 24 25Index: qemu-8.2.0/configure 26=================================================================== 27--- qemu-8.2.0.orig/configure 28+++ qemu-8.2.0/configure 29@@ -937,7 +937,7 @@ python="$(command -v "$python")" 30 echo "python determined to be '$python'" 31 echo "python version: $($python --version)" 32 33-python="$($python -B "${source_path}/python/scripts/mkvenv.py" create pyvenv)" 34+python=python3 35 if test "$?" -ne 0 ; then 36 error_exit "python venv creation failed" 37 fi 38@@ -945,6 +945,7 @@ fi 39 # Suppress writing compiled files 40 python="$python -B" 41 mkvenv="$python ${source_path}/python/scripts/mkvenv.py" 42+mkvenv=true 43 44 # Finish preparing the virtual environment using vendored .whl files 45 46