app-emulation/xen-tools: drop old vulnerable versions
[gentoo.git] / app-emulation / xen-pvgrub / files / xen-4.3-fix_dotconfig-gcc.patch
1 # Fix gcc-4.6
2 diff -ur xen-4.2.0.orig/extras/mini-os/minios.mk xen-4.2.0/extras/mini-os/minios.mk
3 --- extras/mini-os/minios.mk    2012-09-17 18:21:17.000000000 +0800
4 +++ extras/mini-os/minios.mk    2012-12-05 14:01:10.653260260 +0800
5 @@ -6,7 +6,7 @@
6  
7  # Define some default flags.
8  # NB. '-Wcast-qual' is nasty, so I omitted it.
9 -DEF_CFLAGS += -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -Wno-redundant-decls
10 +DEF_CFLAGS += -fno-builtin -Wall -Wredundant-decls -Wno-format -Wno-redundant-decls
11  DEF_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
12  DEF_CFLAGS += $(call cc-option,$(CC),-fgnu89-inline)
13  DEF_CFLAGS += -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline
14 diff -ur xen-4.2.0.orig/tools/libxc/Makefile xen-4.2.0/tools/libxc/Makefile
15 --- tools/libxc/Makefile       2012-09-17 18:21:18.000000000 +0800
16 +++ tools/libxc/Makefile       2012-12-05 14:01:10.653260260 +0800
17 @@ -85,7 +85,7 @@
18
19  -include $(XEN_TARGET_ARCH)/Makefile
20
21 -CFLAGS   += -Werror -Wmissing-prototypes
22 +CFLAGS   += -Wmissing-prototypes
23  CFLAGS   += -I. $(CFLAGS_xeninclude)
24
25  # Needed for posix_fadvise64() in xc_linux.c
26 # Drop .config
27 diff -ur xen-4.2.0.orig/Config.mk xen-4.2.0/Config.mk
28 --- Config.mk   2012-09-17 18:23:12.000000000 +0800
29 +++ Config.mk   2012-12-05 14:01:10.641260261 +0800
30 @@ -7,7 +7,6 @@ Drop .config
31  # fallback for older make
32  realpath = $(wildcard $(foreach file,$(1),$(shell cd -P $(dir $(file)) && echo "$$PWD/$(notdir $(file))")))
33  
34 --include $(XEN_ROOT)/.config
35  
36  # A debug build of Xen and tools?
37  debug ?= n
38 @@ -24,7 +24,7 @@
39  
40  # Tools to run on system hosting the build
41  HOSTCC      = gcc
42 -HOSTCFLAGS  = -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer
43 +HOSTCFLAGS  = -Wstrict-prototypes -O2 -fomit-frame-pointer
44  HOSTCFLAGS += -fno-strict-aliasing
45  
46  DISTDIR     ?= $(XEN_ROOT)/dist
47 @@ -156,7 +156,7 @@
48  
49  CFLAGS += -std=gnu99
50  
51 -CFLAGS += -Wall -Wstrict-prototypes
52 +CFLAGS += -Wstrict-prototypes
53  
54  # Clang complains about macros that expand to 'if ( ( foo == bar ) ) ...'
55  # and is over-zealous with the printf format lint
56 diff -ur xen-4.2.1.orig/tools/blktap2/drivers/Makefile xen-4.2.1/tools/blktap2/drivers/Makefile
57 --- tools/blktap2/drivers/Makefile      2012-12-17 23:00:11.000000000 +0800
58 +++ tools/blktap2/drivers/Makefile      2013-01-30 12:31:43.539941099 +0800
59 @@ -9,7 +9,7 @@
60  LOCK_UTIL  = lock-util
61  INST_DIR   = $(SBINDIR)
62  
63 -CFLAGS    += -Werror -g
64 +CFLAGS    += -g
65  CFLAGS    += -Wno-unused
66  CFLAGS    += -fno-strict-aliasing
67  CFLAGS    += -I$(BLKTAP_ROOT)/include -I$(BLKTAP_ROOT)/drivers
68 diff -ur xen-4.2.1.orig/tools/debugger/gdbsx/Rules.mk xen-4.2.1/tools/debugger/gdbsx/Rules.mk
69 --- tools/debugger/gdbsx/Rules.mk       2012-12-17 23:00:22.000000000 +0800
70 +++ tools/debugger/gdbsx/Rules.mk       2013-01-30 12:31:43.516941098 +0800
71 @@ -1,4 +1,4 @@
72  include $(XEN_ROOT)/tools/Rules.mk
73  
74 -CFLAGS   += -Werror -Wmissing-prototypes 
75 +CFLAGS   += -Wmissing-prototypes 
76  # (gcc 4.3x and later)   -Wconversion -Wno-sign-conversion
77 diff -ur xen-4.2.1.orig/tools/libaio/harness/Makefile xen-4.2.1/tools/libaio/harness/Makefile
78 --- tools/libaio/harness/Makefile       2012-12-17 23:00:35.000000000 +0800
79 +++ tools/libaio/harness/Makefile       2013-01-30 12:31:43.541941099 +0800
80 @@ -4,7 +4,7 @@
81  HARNESS_SRCS:=main.c
82  # io_queue.c
83  
84 -CFLAGS=-Wall -Werror -g -O -laio
85 +CFLAGS=-Wall -g -O -laio
86  #-lpthread -lrt
87  
88  all: $(PROGS)
89 diff -ur xen-4.2.1.orig/tools/libfsimage/Rules.mk xen-4.2.1/tools/libfsimage/Rules.mk
90 --- tools/libfsimage/Rules.mk   2012-12-17 23:00:36.000000000 +0800
91 +++ tools/libfsimage/Rules.mk   2013-01-30 12:31:43.515941097 +0800
92 @@ -1,7 +1,7 @@
93  include $(XEN_ROOT)/tools/Rules.mk
94  
95  CFLAGS += -Wno-unknown-pragmas -I$(XEN_ROOT)/tools/libfsimage/common/ -DFSIMAGE_FSDIR=\"$(FSDIR)\"
96 -CFLAGS += -Werror -D_GNU_SOURCE
97 +CFLAGS += -D_GNU_SOURCE
98  LDFLAGS += -L../common/
99  
100  PIC_OBJS := $(patsubst %.c,%.opic,$(LIB_SRCS-y))
101 diff -ur xen-4.2.1.orig/tools/libxl/Makefile xen-4.2.1/tools/libxl/Makefile
102 --- tools/libxl/Makefile        2012-12-17 23:01:08.000000000 +0800
103 +++ tools/libxl/Makefile        2013-01-30 12:31:43.541941099 +0800
104 @@ -11,7 +11,7 @@
105  XLUMAJOR = 1.0
106  XLUMINOR = 1
107  
108 -CFLAGS += -Werror -Wno-format-zero-length -Wmissing-declarations \
109 +CFLAGS += -Wno-format-zero-length -Wmissing-declarations \
110         -Wno-declaration-after-statement -Wformat-nonliteral
111  CFLAGS += -I. -fPIC
112  
113 diff -ur xen-4.2.1.orig/tools/qemu-xen/pc-bios/optionrom/Makefile xen-4.2.1/tools/qemu-xen/pc-bios/optionrom/Makefile
114 --- tools/qemu-xen/pc-bios/optionrom/Makefile   2012-09-11 02:10:52.000000000 +0800
115 +++ tools/qemu-xen/pc-bios/optionrom/Makefile   2013-01-30 12:31:43.528941098 +0800
116 @@ -9,7 +9,7 @@
117  
118  .PHONY : all clean build-all
119  
120 -CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
121 +CFLAGS := -Wall -Wstrict-prototypes -fomit-frame-pointer -fno-builtin
122  CFLAGS += -I$(SRC_PATH)
123  CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
124  QEMU_CFLAGS = $(CFLAGS)
125 diff -ur xen-4.2.1.orig/tools/xenstat/xentop/Makefile xen-4.2.1/tools/xenstat/xentop/Makefile
126 --- tools/xenstat/xentop/Makefile       2012-12-17 23:01:35.000000000 +0800
127 +++ tools/xenstat/xentop/Makefile       2013-01-30 12:31:43.535941098 +0800
128 @@ -18,7 +18,7 @@
129  all install xentop:
130  else
131  
132 -CFLAGS += -DGCC_PRINTF -Wall -Werror $(CFLAGS_libxenstat)
133 +CFLAGS += -DGCC_PRINTF -Wall $(CFLAGS_libxenstat)
134  LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(SOCKET_LIBS)
135  CFLAGS += -DHOST_$(XEN_OS)
136  
137 diff -ur xen-4.2.1.orig/xen/arch/arm/Rules.mk xen-4.2.1/xen/arch/arm/Rules.mk
138 --- xen/arch/arm/Rules.mk       2012-12-17 23:01:37.000000000 +0800
139 +++ xen/arch/arm/Rules.mk       2013-01-30 12:31:43.498941097 +0800
140 @@ -9,7 +9,7 @@
141  HAS_DEVICE_TREE := y
142  
143  CFLAGS += -fno-builtin -fno-common -Wredundant-decls
144 -CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
145 +CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe
146  CFLAGS += -I$(BASEDIR)/include
147  
148  # Prevent floating-point variables from creeping into Xen.
149 diff -ur xen-4.2.1.orig/xen/arch/x86/Rules.mk xen-4.2.1/xen/arch/x86/Rules.mk
150 --- xen/arch/x86/Rules.mk       2012-12-17 23:01:37.000000000 +0800
151 +++ xen/arch/x86/Rules.mk       2013-01-30 12:31:43.490941096 +0800
152 @@ -24,7 +24,7 @@
153  endif
154  
155  CFLAGS += -fno-builtin -fno-common -Wredundant-decls
156 -CFLAGS += -iwithprefix include -Werror -Wno-pointer-arith -pipe
157 +CFLAGS += -iwithprefix include -Wno-pointer-arith -pipe
158  CFLAGS += -I$(BASEDIR)/include 
159  CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-generic
160  CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default
161 diff -ur xen-4.2.1.orig/xen/include/Makefile xen-4.2.1/xen/include/Makefile
162 --- xen/include/Makefile        2012-12-17 23:01:55.000000000 +0800
163 +++ xen/include/Makefile        2013-01-30 12:31:43.502941097 +0800
164 @@ -78,7 +78,7 @@
165  all: headers.chk
166  
167  headers.chk: $(filter-out public/arch-% public/%ctl.h public/xsm/% public/%hvm/save.h, $(wildcard public/*.h public/*/*.h) $(public-y)) Makefile
168 -       for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -Werror -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new
169 +       for i in $(filter %.h,$^); do $(CC) -ansi -include stdint.h -Wall -W -S -o /dev/null -xc $$i || exit 1; echo $$i; done >$@.new
170         mv $@.new $@
171  
172  endif
173 diff -ur xen-4.2.1.orig/tools/tests/mce-test/tools/Makefile xen-4.2.1/tools/tests/mce-test/tools/Makefile
174 --- tools/tests/mce-test/tools/Makefile  2012-12-17 23:01:35.000000000 +0800
175 +++ tools/tests/mce-test/tools/Makefile       2013-01-30 13:01:44.890020152 +0800
176 @@ -1,7 +1,7 @@
177  XEN_ROOT=$(CURDIR)/../../../..
178  include $(XEN_ROOT)/tools/Rules.mk
179  
180 -CFLAGS += -Werror
181 +CFLAGS +=
182  CFLAGS += $(CFLAGS_libxenctrl)
183  CFLAGS += $(CFLAGS_libxenguest)
184  CFLAGS += $(CFLAGS_libxenstore)
185 diff -ur xen-4.2.1.orig/tools/tests/mem-sharing/Makefile xen-4.2.1/tools/tests/mem-sharing/Makefile
186 --- tools/tests/mem-sharing/Makefile     2012-12-17 23:01:35.000000000 +0800
187 +++ tools/tests/mem-sharing/Makefile  2013-01-30 13:01:44.890020152 +0800
188 @@ -1,7 +1,7 @@
189  XEN_ROOT=$(CURDIR)/../../..
190  include $(XEN_ROOT)/tools/Rules.mk
191  
192 -CFLAGS += -Werror
193 +CFLAGS +=
194  
195  CFLAGS += $(CFLAGS_libxenctrl)
196  CFLAGS += $(CFLAGS_xeninclude)
197 diff -ur xen-4.2.1.orig/tools/tests/xen-access/Makefile xen-4.2.1/tools/tests/xen-access/Makefile
198 --- tools/tests/xen-access/Makefile      2012-12-17 23:01:35.000000000 +0800
199 +++ tools/tests/xen-access/Makefile   2013-01-30 13:01:44.891020152 +0800
200 @@ -1,7 +1,7 @@
201  XEN_ROOT=$(CURDIR)/../../..
202  include $(XEN_ROOT)/tools/Rules.mk
203  
204 -CFLAGS += -Werror
205 +CFLAGS +=
206  
207  CFLAGS += $(CFLAGS_libxenctrl)
208  CFLAGS += $(CFLAGS_libxenguest)
209 diff -ur xen-4.3.0.orig/tools/firmware/Rules.mk xen-4.3.0/tools/firmware/Rules.mk
210 --- tools/firmware/Rules.mk     2013-07-09 18:46:56.000000000 +0800
211 +++ ttools/firmware/Rules.mk    2013-07-20 20:28:57.811836505 +0800
212 @@ -11,8 +11,6 @@
213  CFLAGS += -DNDEBUG
214  endif
215  
216 -CFLAGS += -Werror
217 -
218  $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
219  
220  # Extra CFLAGS suitable for an embedded type of environment.