Accepting request 657506 from home:olh:branches:Virtualization
- building against xen-devel requires the XC_* compat macros to be set because this version of QEMU will be built against many versions of Xen. configure will decide on the appropriate function names it knows about today. To actually call these functions, future versions of Xen may require XC_* to be set. Furthermore, fix a bug in QEMU: xen_common.h undefines the XC_* macros unconditionally. OBS-URL: https://build.opensuse.org/request/show/657506 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=435
This commit is contained in:
parent
61d160304c
commit
d0542dbbf1
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 12 09:31:20 UTC 2018 - olaf@aepfle.de
|
||||
|
||||
- building against xen-devel requires the XC_* compat macros to be
|
||||
set because this version of QEMU will be built against many
|
||||
versions of Xen. configure will decide on the appropriate function
|
||||
names it knows about today. To actually call these functions,
|
||||
future versions of Xen may require XC_* to be set.
|
||||
Furthermore, fix a bug in QEMU: xen_common.h undefines the XC_*
|
||||
macros unconditionally.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 11 17:38:09 UTC 2018 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
|
11
qemu.changes
11
qemu.changes
@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 12 09:31:20 UTC 2018 - olaf@aepfle.de
|
||||
|
||||
- building against xen-devel requires the XC_* compat macros to be
|
||||
set because this version of QEMU will be built against many
|
||||
versions of Xen. configure will decide on the appropriate function
|
||||
names it knows about today. To actually call these functions,
|
||||
future versions of Xen may require XC_* to be set.
|
||||
Furthermore, fix a bug in QEMU: xen_common.h undefines the XC_*
|
||||
macros unconditionally.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 11 17:38:09 UTC 2018 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
|
11
qemu.spec.in
11
qemu.spec.in
@ -905,6 +905,15 @@ do
|
||||
done
|
||||
|
||||
%build
|
||||
XC_COMPAT="
|
||||
-DXC_WANT_COMPAT_DEVICEMODEL_API=1
|
||||
-DXC_WANT_COMPAT_EVTCHN_API=1
|
||||
-DXC_WANT_COMPAT_GNTTAB_API=1
|
||||
-DXC_WANT_COMPAT_MAP_FOREIGN_API=1
|
||||
"
|
||||
XC_COMPAT="`echo ${XC_COMPAT} | xargs`"
|
||||
sed -i~ /undef/d include/hw/xen/xen_common.h
|
||||
diff -u include/hw/xen/xen_common.h~ include/hw/xen/xen_common.h || :
|
||||
./configure \
|
||||
--prefix=%_prefix \
|
||||
--sysconfdir=%_sysconfdir \
|
||||
@ -918,7 +927,7 @@ done
|
||||
%else
|
||||
--python=%_bindir/python2 \
|
||||
%endif
|
||||
--extra-cflags="%{optflags}" \
|
||||
--extra-cflags="%{optflags} ${XC_COMPAT}" \
|
||||
--disable-stack-protector \
|
||||
--disable-strip \
|
||||
--with-pkgversion="%(echo '%{distro}' | sed 's/ (.*)//')" \
|
||||
|
Loading…
Reference in New Issue
Block a user