patch for gcc 4.6 compatibility

This commit is contained in:
Andrew Lukoshko 2012-03-30 15:10:19 +03:00
parent 24b2bc49d8
commit 728da8047b
2 changed files with 20 additions and 6 deletions

11
xen-4.1.0-gcc46.patch Normal file
View file

@ -0,0 +1,11 @@
--- xen-4.0.1/Config.mk.orig 2010-08-25 11:22:44.000000000 +0100
+++ xen-4.0.1/Config.mk 2011-01-29 17:40:43.000000000 +0000
@@ -135,6 +135,8 @@
LDFLAGS += $(foreach i, $(EXTRA_LIB), -L$(i))
CFLAGS += $(foreach i, $(EXTRA_INCLUDES), -I$(i))
+# temporary compile fix for rawhide
+CFLAGS += -Wunused-but-set-variable -Wno-error=unused-but-set-variable -Wuninitialized -Wno-error=uninitialized
EMBEDDED_EXTRA_CFLAGS := -nopie -fno-stack-protector -fno-stack-protector-all
EMBEDDED_EXTRA_CFLAGS += -fno-exceptions

View file

@ -39,6 +39,7 @@ Patch10: xen-no-werror.patch
Patch11: xen-4.0.1-gcc45.patch
Patch12: xen-4.0.1-gcc451.patch
Patch13: xen-4.0.1-py2.7.patch
Patch14: xen-4.1.0-gcc46.patch
Requires: python
Requires: python-twisted-core
Requires: python-pyxml
@ -81,7 +82,7 @@ BuildRequires: ghostscript
BuildRequires: transfig
BuildRequires: texinfo
BuildRequires: tetex-latex
BuildRequires: tetex-texi2html
BuildRequires: texi2html
Obsoletes: xen-uptodate
Requires: xen-hypervisor = %{version}
BuildRoot: %{_tmppath}/%{name}-%{version}
@ -140,6 +141,8 @@ to compile applications linked with Xen libraries.
#patch11 -p 1
%patch12 -p1
#patch13 -p1
%patch14 -p1
# stub domain
cp %{SOURCE10} stubdom
@ -755,18 +758,18 @@ rm -rf %{buildroot}
- x86_64 fixes for binutils 2.16.9x
- requires glibc-xen for */nosegneg/ libs
* Fri Aug 12 2005 Flávio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050823.5mdk
* Fri Aug 12 2005 Fl\E1vio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050823.5mdk
- updated to snapshot of 2005-08-23 (last know working)
* Fri Aug 12 2005 Flávio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050829.4mdk
* Fri Aug 12 2005 Fl\E1vio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050829.4mdk
- updated to snapshot of 2005-08-29
* Fri Aug 12 2005 Flávio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050811.3mdk
* Fri Aug 12 2005 Fl\E1vio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050811.3mdk
- updated to snapshot of 2005-08-19
* Fri Aug 12 2005 Flávio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050811.2mdk
* Fri Aug 12 2005 Fl\E1vio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050811.2mdk
- updated to snapshot of 2005-08-11
* Sat Aug 06 2005 Flávio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050801.1mdk
* Sat Aug 06 2005 Fl\E1vio Bruno Leitner <fbl@mandriva.com> 3.0-0.20050801.1mdk
- created package.