Hello community,

here is the log from the commit of package openocd for openSUSE:Factory checked 
in at 2020-06-11 10:09:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/openocd (Old)
 and      /work/SRC/openSUSE:Factory/.openocd.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "openocd"

Thu Jun 11 10:09:03 2020 rev:9 rq:813243 version:0.10.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/openocd/openocd.changes  2020-02-04 
19:54:41.633368515 +0100
+++ /work/SRC/openSUSE:Factory/.openocd.new.3606/openocd.changes        
2020-06-11 10:11:25.540456699 +0200
@@ -1,0 +2,5 @@
+Sun Jun  7 08:31:54 UTC 2020 - Matwey Kornilov <[email protected]>
+
+- Add 0001-bitbang-Fix-FTBFS-with-GCC-10.patch: fix building for gcc 10
+
+-------------------------------------------------------------------

New:
----
  0001-bitbang-Fix-FTBFS-with-GCC-10.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ openocd.spec ++++++
--- /var/tmp/diff_new_pack.pstBPe/_old  2020-06-11 10:11:26.708460438 +0200
+++ /var/tmp/diff_new_pack.pstBPe/_new  2020-06-11 10:11:26.716460463 +0200
@@ -36,6 +36,7 @@
 Source1:        
http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2.sig
 Source2:        
http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2.sha1
 Source3:        %name.keyring
+Patch0:         0001-bitbang-Fix-FTBFS-with-GCC-10.patch
 BuildRequires:  autoconf >= 2.64
 BuildRequires:  automake
 BuildRequires:  fdupes
@@ -81,6 +82,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %if !%{external_jimtcl}

++++++ 0001-bitbang-Fix-FTBFS-with-GCC-10.patch ++++++
>From c60252ac2b636c4d99b766a574b9df0966151696 Mon Sep 17 00:00:00 2001
From: Andreas Fritiofson <[email protected]>
Date: Fri, 17 Apr 2020 13:49:28 +0200
Subject: [PATCH] bitbang: Fix FTBFS with GCC 10

GCC 10 defaults to -fno-common which breaks the sharing of bitbang_swd
struct between bitbang drivers due to a missing extern.

Change-Id: I2b4122f7939cec91a72284006748f99a23548324
Signed-off-by: Andreas Fritiofson <[email protected]>
Reviewed-on: http://openocd.zylin.com/5592
Tested-by: jenkins
Reviewed-by: Antonio Borneo <[email protected]>
Reviewed-by: Jonathan McDowell <[email protected]>
---
 src/jtag/drivers/bitbang.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/jtag/drivers/bitbang.h b/src/jtag/drivers/bitbang.h
index edb779ca..bbbc693d 100644
--- a/src/jtag/drivers/bitbang.h
+++ b/src/jtag/drivers/bitbang.h
@@ -56,7 +56,7 @@ struct bitbang_interface {
        void (*swdio_drive)(bool on);
 };
 
-const struct swd_driver bitbang_swd;
+extern const struct swd_driver bitbang_swd;
 
 extern bool swd_mode;
 
-- 
2.25.0




Reply via email to