#1 Fix build with python3.8
Merged 4 years ago by zbyszek. Opened 4 years ago by zbyszek.
rpms/ zbyszek/xen python38  into  master

file modified
+5 -2
@@ -58,7 +58,7 @@ 

  Summary: Xen is a virtual machine monitor

  Name:    xen

  Version: 4.12.0

- Release: 3%{?dist}

+ Release: 4%{?dist}

  License: GPLv2+ and LGPLv2+ and BSD

  URL:     http://xen.org/

  Source0: https://downloads.xenproject.org/release/xen/%{version}/xen-%{version}.tar.gz
@@ -372,7 +372,7 @@ 

  %define seabiosloc /usr/share/seabios/bios.bin

  %endif

  #export XEN_VENDORVERSION="-%{release}"

- export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS"

+ export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS -Wno-declaration-after-statement"

  export EXTRA_CFLAGS_QEMU_TRADITIONAL="$RPM_OPT_FLAGS"

  export EXTRA_CFLAGS_QEMU_XEN="$RPM_OPT_FLAGS"

  export PYTHON="/usr/bin/python3"
@@ -896,6 +896,9 @@ 

  %endif

  

  %changelog

+ * Tue Jun 18 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 4.12.0-4

+ - Fix build with python3.8 (#1704807)

+ 

  * Sat Jun 01 2019 Michael Young <m.a.young@durham.ac.uk> - 4.12.0-3

  - fix HVM DomU boot on some chipsets

  - fix expected FTBFS with Python 3.8 (#1704807)

This fails with:

Error: Transaction check error:
  file /usr/lib/debug/usr/bin/xenstore-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-chmod-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-control-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-exists-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-list-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-ls-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-read-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-rm-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-watch-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64
  file /usr/lib/debug/usr/bin/xenstore-write-4.12.0-4.fc31.x86_64.debug conflicts between attempted installs of xen-runtime-debuginfo-4.12.0-4.fc31.x86_64 and xen-runtime-4.12.0-4.fc31.x86_64

But is probably a step in the right direction.

Oh, OK, this only happens when I do mock --postinstall. So this is good to go.

Pull-Request has been merged by zbyszek

4 years ago