diff --git a/ckb-next-gcc10.patch b/ckb-next-gcc10.patch new file mode 100644 index 0000000..abe12c4 --- /dev/null +++ b/ckb-next-gcc10.patch @@ -0,0 +1,28 @@ +From a9f41cd8b8f5b04c0c66c6d94f96a9725943831e Mon Sep 17 00:00:00 2001 +From: Erik Zeek +Date: Tue, 12 May 2020 09:56:49 -0600 +Subject: [PATCH] Fix gcc-10/-fno-common error + +gcc-10 now defaults to -fno-common and does not automatically add extern +to variables declared in headers. + +https://gcc.gnu.org/gcc-10/porting_to.html + +Signed-off-by: Erik Zeek +--- + src/daemon/devnode.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/daemon/devnode.h b/src/daemon/devnode.h +index a0b3a931..349e778d 100644 +--- a/src/daemon/devnode.h ++++ b/src/daemon/devnode.h +@@ -5,7 +5,7 @@ + #include "usb.h" + + /// Device path base ("/dev/input/ckb" or "/var/run/ckb") +-const char *const devpath; ++extern const char *const devpath; + + /// Group ID for the control nodes. -1 to give read/write access to everybody + extern long gid; diff --git a/ckb-next.changes b/ckb-next.changes index 45b7b4d..36251a9 100644 --- a/ckb-next.changes +++ b/ckb-next.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 8 07:44:47 UTC 2020 - aloisio@gmx.com + +- Add ckb-next-gcc10.patch + ------------------------------------------------------------------- Wed Nov 20 23:15:31 UTC 2019 - Simon Lees diff --git a/ckb-next.spec b/ckb-next.spec index 9932a5a..ec764a2 100644 --- a/ckb-next.spec +++ b/ckb-next.spec @@ -1,7 +1,7 @@ # # spec file for package ckb-next # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -34,6 +34,8 @@ Patch3: ckb-next-no-cmake-modules.patch Patch4: ckb-next-udev.patch # PATCH-FIX-UPSTREAM 422.patch boo#1135528 Patch5: 422.patch +# PATCH-FIX-UPSTREAM ckb-next-gcc10.patch +Patch6: ckb-next-gcc10.patch BuildRequires: ImageMagick BuildRequires: cmake BuildRequires: hicolor-icon-theme