[packages/gcc] - fix libgo -Werror breakage - test if libgo builds on i486

baggins baggins at pld-linux.org
Mon Oct 8 16:07:52 CEST 2012


commit 9f46105cb7052aa838dddef6870a62727961e9f5
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Oct 8 16:07:29 2012 +0200

    - fix libgo -Werror breakage
    - test if libgo builds on i486

 gcc.spec           |  8 +++++---
 libgo-werror.patch | 12 ++++++++++++
 2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/gcc.spec b/gcc.spec
index 46ff96c..8700d2d 100644
--- a/gcc.spec
+++ b/gcc.spec
@@ -66,10 +66,10 @@
 %undefine	with_multilib
 %endif
 
-%ifarch i386 i486
+#ifarch i386 i486
 # __i686.get_pc_thunk.bx undefined in libgo (TODO: recheck on gcc updates)
-%undefine	with_go
-%endif
+#undefine	with_go
+#endif
 
 %ifarch sparc64
 %undefine	with_ada
@@ -120,6 +120,7 @@ Patch6:		%{name}-ppc64-m32-m64-multilib-only.patch
 Patch7:		%{name}-libjava-multilib.patch
 Patch8:		%{name}-enable-java-awt-qt.patch
 Patch10:	%{name}-moresparcs.patch
+Patch11:	libgo-werror.patch
 Patch13:	issue4664051.patch
 URL:		http://gcc.gnu.org/
 BuildRequires:	autoconf >= 2.64
@@ -1511,6 +1512,7 @@ Statyczna biblioteka języka Go - wersja 32-bitowa.
 %patch8 -p1
 %endif
 %patch10 -p1
+%patch11 -p1
 
 %patch13 -p0
 
diff --git a/libgo-werror.patch b/libgo-werror.patch
new file mode 100644
index 0000000..880be95
--- /dev/null
+++ b/libgo-werror.patch
@@ -0,0 +1,12 @@
+--- gcc-4.7.1/libgo/runtime/print.c
++++ gcc-4.7.1/libgo/runtime/print.c
+@@ -17,7 +17,8 @@
+ 	G* g = runtime_g();
+ 
+ 	if(g == nil || g->writebuf == nil) {
+-		runtime_write(2, v, n);
++		ssize_t bytesWritten = runtime_write(2, v, n);
++		(void)bytesWritten;
+ 		return;
+ 	}
+ 	
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gcc.git/commitdiff/9f46105cb7052aa838dddef6870a62727961e9f5



More information about the pld-cvs-commit mailing list