Skip to contentSkip to conversation

travis: Fix build with newer Qemu

PATCH In review Andrew Cooper 2 participants 2 messages Sep 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
CC: Doug Goldstein <[email protected]>
CC: Wei Liu <[email protected]>

---
 scripts/travis-build | 5 +++++
 1 file changed, 5 insertions(+)
scripts/travis-build +5 -0
index 0cb15a89e4..08a1f66b84 100755
@@ -16,6 +16,11 @@ cfgargs+=("--disable-rombios")
 cfgargs+=("--enable-docs")
 cfgargs+=("--with-system-seabios=/usr/share/seabios/bios.bin")
 
+# Qemu requires Python 3.7 or later
+if ! type python3 || python3 -c "import sys; res = sys.version_info < (3, 7); exit(not(res))"; then
+    cfgargs+=("--with-system-qemu=/bin/false")
+fi
+
 if [[ "${XEN_TARGET_ARCH}" == "x86_64" ]]; then
     cfgargs+=("--enable-tools")
 else
Signature · 1 line
2.11.0