From f9f5de99949d58a308ae03ab2a0f4fd35b3e1160 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Nov 24 2021 17:42:43 +0000 Subject: Define STAP_SDT_ARG_CONSTRAINT=g on %%{arm}, workaround for: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395 See also /usr/include/sys/sdt.h --- diff --git a/qemu.spec b/qemu.spec index 10b02cf..4ed1206 100644 --- a/qemu.spec +++ b/qemu.spec @@ -287,7 +287,7 @@ Obsoletes: %{name}-system-unicore32-core <= %{epoch}:%{version}-%{release} Summary: QEMU is a FAST! processor emulator Name: qemu Version: 6.1.0 -Release: 11%{?rcrel}%{?dist} +Release: 12%{?rcrel}%{?dist} Epoch: 2 License: GPLv2 and BSD and MIT and CC-BY URL: http://www.qemu.org/ @@ -1349,7 +1349,11 @@ run_configure() { --docdir="%{_docdir}" \ --libexecdir="%{_libexecdir}" \ --extra-ldflags="%{build_ldflags}" \ +%ifnarch %{arm} --extra-cflags="%{optflags}" \ +%else + --extra-cflags="%{optflags} -DSTAP_SDT_ARG_CONSTRAINT=g" \ +%endif --with-pkgversion="%{name}-%{version}-%{release}" \ --with-suffix="%{name}" \ --firmwarepath="%firmwaredirs" \ @@ -2262,8 +2266,10 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ %changelog -* Mon Nov 22 2021 Richard W.M. Jones - 6.1.0-11 +* Wed Nov 24 2021 Richard W.M. Jones - 6.1.0-12 - Add support for qemu-nbd --selinux-relabel option (RHBZ#1984938) +- Define STAP_SDT_ARG_CONSTRAINT=g on %%{arm}, workaround for: + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395 * Mon Nov 08 2021 Adam Williamson - 6.1.0-10 - Fix snapshot creation with qxl graphics