- bsc#969377 - xen does not build with GCC 6

ipxe-use-rpm-opt-flags.patch
  gcc6-warnings-as-errors.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=411
This commit is contained in:
Charles Arnold 2016-03-04 23:20:29 +00:00 committed by Git OBS Bridge
parent e1fd44e3dc
commit a954e08dfb
4 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,33 @@
References: bsc#969377 - xen does not build with GCC 6
--- xen-4.6.1-testing/xen/arch/x86/cpu/mcheck/non-fatal.c.orig 2016-03-04 15:59:08.000000000 -0700
+++ xen-4.6.1-testing/xen/arch/x86/cpu/mcheck/non-fatal.c 2016-03-04 16:00:25.000000000 -0700
@@ -94,8 +94,8 @@ static int __init init_nonfatal_mce_chec
if (mce_disabled || !mce_available(c))
return -ENODEV;
- if ( __get_cpu_var(poll_bankmask) == NULL )
- return -EINVAL;
+ if ( __get_cpu_var(poll_bankmask) == NULL )
+ return -EINVAL;
/*
* Check for non-fatal errors every MCE_RATE s
--- xen-4.6.1-testing/extras/mini-os-remote/lib/sys.c.orig 2016-03-04 15:27:26.000000000 -0700
+++ xen-4.6.1-testing/extras/mini-os-remote/lib/sys.c 2016-03-04 15:30:32.000000000 -0700
@@ -634,6 +634,7 @@ int closedir(DIR *dir)
/* We assume that only the main thread calls select(). */
+#if defined(LIBC_VERBOSE) || defined(LIBC_DEBUG)
static const char file_types[] = {
[FTYPE_NONE] = 'N',
[FTYPE_CONSOLE] = 'C',
@@ -646,6 +647,7 @@ static const char file_types[] = {
[FTYPE_KBD] = 'K',
[FTYPE_FB] = 'G',
};
+#endif
#ifdef LIBC_DEBUG
static void dump_set(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
{

View File

@ -0,0 +1,27 @@
References: bsc#969377 - xen does not build with GCC 6
Index: xen-4.6.1-testing/tools/firmware/etherboot/patches/ipxe-use-rpm-opt-flags.patch
===================================================================
--- /dev/null
+++ xen-4.6.1-testing/tools/firmware/etherboot/patches/ipxe-use-rpm-opt-flags.patch
@@ -0,0 +1,11 @@
+--- ipxe/src/Makefile.orig 2016-03-04 15:48:15.000000000 -0700
++++ ipxe/src/Makefile 2016-03-04 15:48:40.000000000 -0700
+@@ -4,7 +4,7 @@
+ #
+
+ CLEANUP :=
+-CFLAGS :=
++CFLAGS := $(RPM_OPT_FLAGS) -Wno-error=array-bounds
+ ASFLAGS :=
+ LDFLAGS :=
+ MAKEDEPS := Makefile
Index: xen-4.6.1-testing/tools/firmware/etherboot/patches/series
===================================================================
--- xen-4.6.1-testing.orig/tools/firmware/etherboot/patches/series
+++ xen-4.6.1-testing/tools/firmware/etherboot/patches/series
@@ -5,3 +5,4 @@ build_fix_3.patch
build-compare.patch
build_fix_4.patch
ipxe-no-error-logical-not-parentheses.patch
+ipxe-use-rpm-opt-flags.patch

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Mar 4 16:11:02 MST 2016 - carnold@suse.com
- bsc#969377 - xen does not build with GCC 6
ipxe-use-rpm-opt-flags.patch
gcc6-warnings-as-errors.patch
-------------------------------------------------------------------
Thu Mar 3 10:27:55 MST 2016 - carnold@suse.com

View File

@ -301,6 +301,8 @@ Patch601: xen.build-compare.doc_html.patch
Patch602: xen.build-compare.seabios.patch
Patch603: xen.build-compare.man.patch
Patch604: ipxe-no-error-logical-not-parentheses.patch
Patch605: ipxe-use-rpm-opt-flags.patch
Patch606: gcc6-warnings-as-errors.patch
# Build patches
Patch99996: xen.stubdom.newlib.patch
Patch99998: tmp_build.patch
@ -611,6 +613,8 @@ Authors:
%patch602 -p1
%patch603 -p1
%patch604 -p1
%patch605 -p1
%patch606 -p1
# Build patches
%patch99996 -p1
%patch99998 -p1