xen/ipxe-use-rpm-opt-flags.patch
Charles Arnold 10a6644014 - bsc#980724 - VUL-0: CVE-2016-4441: Qemu: scsi: esp: OOB write
while writing to 's->cmdbuf' in get_cmd
  CVE-2016-4441-qemut-scsi-esp-OOB-write-while-writing-to-cmdbuf-in-get_cmd.patch
- bsc#980716 - VUL-0: CVE-2016-4439: xen: scsi: esp: OOB write
  while writing to 's->cmdbuf' in esp_reg_write
  CVE-2016-4439-qemut-scsi-esp-OOB-write-while-writing-to-cmdbuf-in-esp_reg_write.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=432
2016-05-23 20:09:30 +00:00

28 lines
1.1 KiB
Diff

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 -Wno-nonnull-compare -Wno-unused-const-variable -Wno-misleading-indentation -Wno-shift-negative-value
+ 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