From 0e3619e0576f6c78ba7dc9787b7f0678f9105625 Mon Sep 17 00:00:00 2001 From: Michael Young Date: Jan 17 2023 22:07:23 +0000 Subject: build fix for gcc13 --- diff --git a/xen.gcc13.fixes.patch b/xen.gcc13.fixes.patch new file mode 100644 index 0000000..d9800e2 --- /dev/null +++ b/xen.gcc13.fixes.patch @@ -0,0 +1,10 @@ +--- xen-4.17.0/xen/common/bunzip2.c.orig 2022-12-08 18:03:08.000000000 +0000 ++++ xen-4.17.0/xen/common/bunzip2.c 2023-01-17 21:35:39.251292015 +0000 +@@ -223,6 +223,7 @@ + for (j = 0; j < groupCount; j++) { + unsigned char length[MAX_SYMBOLS], temp[MAX_HUFCODE_BITS+1]; + int minLen, maxLen, pp; ++ length[0]=0; + /* Read Huffman code lengths for each symbol. They're + stored in a way similar to mtf; record a starting + value for the first symbol, and an offset from the diff --git a/xen.spec b/xen.spec index 91a199a..bb50fcd 100644 --- a/xen.spec +++ b/xen.spec @@ -55,7 +55,7 @@ Summary: Xen is a virtual machine monitor Name: xen Version: 4.17.0 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2+ and LGPLv2+ and BSD URL: http://xen.org/ Source0: https://downloads.xenproject.org/release/xen/%{version}/xen-%{version}.tar.gz @@ -109,6 +109,7 @@ Patch41: xen.gcc9.fixes.patch Patch43: xen.gcc11.fixes.patch Patch45: xen.gcc12.fixes.patch Patch46: xen.efi.build.patch +Patch47: xen.gcc13.fixes.patch %if %build_qemutrad @@ -319,6 +320,7 @@ manage Xen virtual machines. %patch43 -p1 %patch45 -p1 %patch46 -p1 +%patch47 -p1 # qemu-xen-traditional patches pushd tools/qemu-xen-traditional @@ -933,6 +935,9 @@ fi %endif %changelog +* Tue Jan 17 2023 Michael Young - 4.17.0-3 +- build fix for gcc13 + * Sun Jan 08 2023 Michael Young - 4.17.0-2 - fix clean up of init scripts if /etc/rc.d/init.d doesn't exist