From: Andrew Cooper Date: Mon, 14 Sep 2020 13:21:01 +0000 (+0100) Subject: travis: Fix build with newer Qemu X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~1639 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fc4e79c3f77f4360064f3614e32557a105458bae;p=xen.git travis: Fix build with newer Qemu Qemu requires a bleeding edge version of Python, not found in the current travis environment. Skip building Qemu in that case. Signed-off-by: Andrew Cooper Acked-by: Wei Liu --- diff --git a/scripts/travis-build b/scripts/travis-build index 0cb15a89e4..84d74266a0 100755 --- a/scripts/travis-build +++ b/scripts/travis-build @@ -16,6 +16,11 @@ cfgargs+=("--disable-rombios") cfgargs+=("--enable-docs") cfgargs+=("--with-system-seabios=/usr/share/seabios/bios.bin") +# Qemu requires Python 3.5 or later +if ! type python3 || python3 -c "import sys; res = sys.version_info < (3, 5); exit(not(res))"; then + cfgargs+=("--with-system-qemu=/bin/false") +fi + if [[ "${XEN_TARGET_ARCH}" == "x86_64" ]]; then cfgargs+=("--enable-tools") else