summarylogtreecommitdiffstats
path: root/0001-Temporary-fix-for-compilation-with-GCC-10.patch
diff options
context:
space:
mode:
authorMichael Lass2020-05-19 20:45:17 +0200
committerMichael Lass2020-05-19 20:45:17 +0200
commitccdc867844c69a71ae74e7d5240f8ae98d123c3c (patch)
tree38fa7a2591eb15d797879c6df2049e256c3162dd /0001-Temporary-fix-for-compilation-with-GCC-10.patch
parent141a18ea22014dd87aa4ddb247429e30737ed092 (diff)
downloadaur-ccdc867844c69a71ae74e7d5240f8ae98d123c3c.tar.gz
Update to actual 1.8.6pre2 and fix build with GCC 10
Diffstat (limited to '0001-Temporary-fix-for-compilation-with-GCC-10.patch')
-rw-r--r--0001-Temporary-fix-for-compilation-with-GCC-10.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/0001-Temporary-fix-for-compilation-with-GCC-10.patch b/0001-Temporary-fix-for-compilation-with-GCC-10.patch
new file mode 100644
index 000000000000..7d3e4c501670
--- /dev/null
+++ b/0001-Temporary-fix-for-compilation-with-GCC-10.patch
@@ -0,0 +1,33 @@
+From 240278523907c8a0e733620d6acf7b3933d5cbdb Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michael=20La=C3=9F?= <lass@mail.uni-paderborn.de>
+Date: Tue, 19 May 2020 16:17:01 +0200
+Subject: [PATCH 1/2] Temporary fix for compilation with GCC 10
+
+See:
+* https://bugs.gentoo.org/706738
+* https://gerrit.openafs.org/14106
+
+Backporting that fix to OpenAFS 1.8 requires some changes in the xstat
+code so for now let's just allow duplicate declarations.
+
+Change-Id: I0bbf317dcf584d5531db714c5e9b986f3fbb6a0b
+---
+ src/cf/osconf.m4 | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/cf/osconf.m4 b/src/cf/osconf.m4
+index 29a79d7ce..ac11e9310 100644
+--- a/src/cf/osconf.m4
++++ b/src/cf/osconf.m4
+@@ -681,6 +681,8 @@ if test "x$GCC" = "xyes"; then
+ else
+ CFLAGS_NOSTRICT=
+ fi
++ else
++ XCFLAGS="${XCFLAGS} -fcommon"
+ fi
+ else
+ case $AFS_SYSNAME in
+--
+2.26.2
+