SHA256
1
0
forked from pool/qemu

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:
Bruce Rogers 2018-12-12 14:49:37 +00:00 committed by Git OBS Bridge
parent 57b090e911
commit 870f0091dd
3 changed files with 32 additions and 1 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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/ (.*)//')" \