From e5504b6ad42caf4ee6ff2560257e6021d07032a2 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Fri, 21 Jun 2019 08:18:53 -0400 Subject: [PATCH] Only use slirp on fedora > 30, to fix virt-preview builds --- qemu.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qemu.spec b/qemu.spec index db4c9bb..ca9a5d7 100644 --- a/qemu.spec +++ b/qemu.spec @@ -313,7 +313,9 @@ BuildRequires: libudev-devel # qemu 4.0: Use for qauth infrastructure BuildRequires: pam-devel # qemu 4.0: user-mode networking +%if 0%{?fedora} > 30 BuildRequires: libslirp-devel +%endif # qemu 4.0: sphinx-build used for some docs %if 0%{?fedora} > 30 BuildRequires: python3-sphinx @@ -957,7 +959,9 @@ run_configure() { --enable-trace-backend=$tracebackends \ --extra-ldflags="$extraldflags -Wl,-z,relro -Wl,-z,now" \ --extra-cflags="%{optflags}" \ +%if 0%{?fedora} > 30 --enable-slirp=system \ +%endif "$@" || cat config.log }