]> xenbits.xensource.com Git - xen.git/commitdiff
travis: Fix build with newer Qemu
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 14 Sep 2020 13:21:01 +0000 (14:21 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 14 Sep 2020 15:37:30 +0000 (16:37 +0100)
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 <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
scripts/travis-build

index 0cb15a89e4ee970ec269b9f9276e3388ce4bb34c..84d74266a01f11a648a8894bda32289e63c5ac03 100755 (executable)
@@ -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