Hello community,

here is the log from the commit of package osmo-sgsn for openSUSE:Factory 
checked in at 2020-06-18 10:30:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/osmo-sgsn (Old)
 and      /work/SRC/openSUSE:Factory/.osmo-sgsn.new.3606 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "osmo-sgsn"

Thu Jun 18 10:30:05 2020 rev:4 rq:815559 version:1.6.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/osmo-sgsn/osmo-sgsn.changes      2020-01-09 
22:49:57.942690401 +0100
+++ /work/SRC/openSUSE:Factory/.osmo-sgsn.new.3606/osmo-sgsn.changes    
2020-06-18 10:30:43.381312909 +0200
@@ -1,0 +2,6 @@
+Thu Jun 11 19:03:31 UTC 2020 - Martin Hauke <mar...@gmx.de>
+
+- Add patch to fix gcc10 compilation errors (boo#1160244)
+  * 0001-gtphub_test-Fix-compilation-with-gcc-10.patch
+
+-------------------------------------------------------------------

New:
----
  0001-gtphub_test-Fix-compilation-with-gcc-10.patch

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

Other differences:
------------------
++++++ osmo-sgsn.spec ++++++
--- /var/tmp/diff_new_pack.jrrXlT/_old  2020-06-18 10:30:44.597316784 +0200
+++ /var/tmp/diff_new_pack.jrrXlT/_new  2020-06-18 10:30:44.601316796 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package osmo-sgsn
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 # Copyright (c) 2017, Martin Hauke <mar...@gmx.de>
 #
 # All modifications and additions to the file contributed by third parties
@@ -28,6 +28,7 @@
 Group:          Productivity/Telephony/Servers
 URL:            https://osmocom.org/projects/osmosgsn/wiki/OsmoSGSN
 Source:         %{name}-%{version}.tar.xz
+Patch0:         0001-gtphub_test-Fix-compilation-with-gcc-10.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  libtool
@@ -72,6 +73,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 echo "%{version}" >.tarball-version

++++++ 0001-gtphub_test-Fix-compilation-with-gcc-10.patch ++++++
>From 9d550cb36972173fadaaa1e1c8f3d4428106079e Mon Sep 17 00:00:00 2001
From: Harald Welte <lafo...@osmocom.org>
Date: Mon, 20 Apr 2020 19:47:19 +0200
Subject: [PATCH] gtphub_test: Fix compilation with gcc-10

/usr/bin/ld: 
../../src/gtphub/gtphub.o:/home/laforge/projects/git/osmo-sgsn/src/gtphub/gtphub.c:50:
 multiple definition of `osmo_gtphub_ctx'; 
gtphub_test.o:/home/laforge/projects/git/osmo-sgsn/tests/gtphub/gtphub_test.c:57:
 first defined here
collect2: error: ld returned 1 exit status

See also 
https://alioth-lists.debian.net/pipermail/debian-mobcom-maintainers/Week-of-Mon-20200413/000653.html

Change-Id: I19c1eef6649d2747f0b624f5292d7ae47c4ca839
---
 tests/gtphub/gtphub_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/gtphub/gtphub_test.c b/tests/gtphub/gtphub_test.c
index 2e48bb10..ed461762 100644
--- a/tests/gtphub/gtphub_test.c
+++ b/tests/gtphub/gtphub_test.c
@@ -54,7 +54,7 @@
 void gtphub_init(struct gtphub *hub);
 void gtphub_free(struct gtphub *hub);
 
-void *osmo_gtphub_ctx;
+extern void *osmo_gtphub_ctx;
 
 static void nr_mapping_free(struct expiring_item *e)
 {
-- 
2.26.2


Reply via email to