Only use slirp on fedora > 30, to fix virt-preview builds

This commit is contained in:
Cole Robinson 2019-06-21 08:18:53 -04:00
parent 40fbd86194
commit e5504b6ad4

View File

@ -313,7 +313,9 @@ BuildRequires: libudev-devel
# qemu 4.0: Use for qauth infrastructure # qemu 4.0: Use for qauth infrastructure
BuildRequires: pam-devel BuildRequires: pam-devel
# qemu 4.0: user-mode networking # qemu 4.0: user-mode networking
%if 0%{?fedora} > 30
BuildRequires: libslirp-devel BuildRequires: libslirp-devel
%endif
# qemu 4.0: sphinx-build used for some docs # qemu 4.0: sphinx-build used for some docs
%if 0%{?fedora} > 30 %if 0%{?fedora} > 30
BuildRequires: python3-sphinx BuildRequires: python3-sphinx
@ -957,7 +959,9 @@ run_configure() {
--enable-trace-backend=$tracebackends \ --enable-trace-backend=$tracebackends \
--extra-ldflags="$extraldflags -Wl,-z,relro -Wl,-z,now" \ --extra-ldflags="$extraldflags -Wl,-z,relro -Wl,-z,now" \
--extra-cflags="%{optflags}" \ --extra-cflags="%{optflags}" \
%if 0%{?fedora} > 30
--enable-slirp=system \ --enable-slirp=system \
%endif
"$@" || cat config.log "$@" || cat config.log
} }