diff mbox series

travis: Fix build with newer Qemu

Message ID 20200914132355.21076-1-andrew.cooper3@citrix.com (mailing list archive)
State New, archived
Headers show
Series travis: Fix build with newer Qemu | expand

Commit Message

Andrew Cooper Sept. 14, 2020, 1:23 p.m. UTC
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>
---
CC: Doug Goldstein <cardoe@cardoe.com>
CC: Wei Liu <wl@xen.org>
---
 scripts/travis-build | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Wei Liu Sept. 14, 2020, 3:32 p.m. UTC | #1
On Mon, Sep 14, 2020 at 02:23:55PM +0100, Andrew Cooper wrote:
> 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>
diff mbox series

Patch

diff --git a/scripts/travis-build b/scripts/travis-build
index 0cb15a89e4..08a1f66b84 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.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