pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/gcc9



Module Name:    pkgsrc
Committed By:   rillig
Date:           Fri Jan 10 07:49:48 UTC 2020

Modified Files:
        pkgsrc/lang/gcc9: distinfo
Added Files:
        pkgsrc/lang/gcc9/patches: patch-libgomp_affinity-fmt.c

Log Message:
lang/gcc9: fix build problem on CentOS 6

There may still be follow-up problems. This fix is just based on the bulk
build logs.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/gcc9/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/lang/gcc9/patches/patch-libgomp_affinity-fmt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/gcc9/distinfo
diff -u pkgsrc/lang/gcc9/distinfo:1.1 pkgsrc/lang/gcc9/distinfo:1.2
--- pkgsrc/lang/gcc9/distinfo:1.1       Sun Jan  5 21:15:45 2020
+++ pkgsrc/lang/gcc9/distinfo   Fri Jan 10 07:49:48 2020
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.1 2020/01/05 21:15:45 rillig Exp $
+$NetBSD: distinfo,v 1.2 2020/01/10 07:49:48 rillig Exp $
 
 SHA1 (gcc-9.2.0.tar.xz) = 306d27c3465fa36862c206738d06d65fff5c3645
 RMD160 (gcc-9.2.0.tar.xz) = a51d7f812f45980c517c4505e04a217cf319a992
 SHA512 (gcc-9.2.0.tar.xz) = a12dff52af876aee0fd89a8d09cdc455f35ec46845e154023202392adc164848faf8ee881b59b681b696e27c69fd143a214014db4214db62f9891a1c8365c040
 Size (gcc-9.2.0.tar.xz) = 70607648 bytes
+SHA1 (patch-libgomp_affinity-fmt.c) = 4dd5c204f1d45b466269e7a854ecadb99a7d6eeb
 SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__base.h) = f12f6a97f94d13efa73a2500411bc77b27887edd
 SHA1 (patch-libstdc++-v3_config_os_bsd_netbsd_ctype__configure__char.cc) = 007bce70f75deace18f60924b5a3f94bf7a0af2f

Added files:

Index: pkgsrc/lang/gcc9/patches/patch-libgomp_affinity-fmt.c
diff -u /dev/null pkgsrc/lang/gcc9/patches/patch-libgomp_affinity-fmt.c:1.1
--- /dev/null   Fri Jan 10 07:49:48 2020
+++ pkgsrc/lang/gcc9/patches/patch-libgomp_affinity-fmt.c       Fri Jan 10 07:49:48 2020
@@ -0,0 +1,23 @@
+$NetBSD: patch-libgomp_affinity-fmt.c,v 1.1 2020/01/10 07:49:48 rillig Exp $
+
+https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93219
+
+On RedHat EL 6 x86_64:
+
+> ../../../gcc-9.2.0/libgomp/affinity-fmt.c: In function 'gomp_print_string':
+> ../../../gcc-9.2.0/libgomp/affinity-fmt.c:43:3: error: ignoring return value of 'fwrite', declared with attribute warn_unused_result [-Werror=unused-result]
+>    43 |   fwrite (str, 1, len, stderr);
+>       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+
+--- libgomp/affinity-fmt.c.orig        2019-01-01 12:31:55.000000000 +0000
++++ libgomp/affinity-fmt.c
+@@ -40,7 +40,7 @@
+ void
+ gomp_print_string (const char *str, size_t len)
+ {
+-  fwrite (str, 1, len, stderr);
++  (void)fwrite (str, 1, len, stderr);
+ }
+ 
+ void



Home | Main Index | Thread Index | Old Index