Hello community, here is the log from the commit of package atomix for openSUSE:Factory checked in at 2020-06-04 17:56:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/atomix (Old) and /work/SRC/openSUSE:Factory/.atomix.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "atomix" Thu Jun 4 17:56:59 2020 rev:13 rq:811485 version:3.34.0 Changes: -------- --- /work/SRC/openSUSE:Factory/atomix/atomix.changes 2019-10-18 14:31:43.256506990 +0200 +++ /work/SRC/openSUSE:Factory/.atomix.new.3606/atomix.changes 2020-06-04 17:56:59.537106180 +0200 @@ -1,0 +2,5 @@ +Thu Jun 4 10:47:20 UTC 2020 - Dominique Leuenberger <dims...@opensuse.org> + +- Add atomix-gcc10.patch: Fix build with GCC 10. + +------------------------------------------------------------------- New: ---- atomix-gcc10.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ atomix.spec ++++++ --- /var/tmp/diff_new_pack.5CPYJg/_old 2020-06-04 17:57:00.197108246 +0200 +++ /var/tmp/diff_new_pack.5CPYJg/_new 2020-06-04 17:57:00.201108260 +0200 @@ -1,7 +1,7 @@ # # spec file for package atomix # -# 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 @@ -24,7 +24,8 @@ Group: Amusements/Games/Board/Other URL: https://wiki.gnome.org/Apps/Atomix Source0: https://download.gnome.org/sources/atomix/3.34/%{name}-%{version}.tar.xz - +# PATCH-FIX-UPSTREAM atomix-gcc10.patch dims...@opensuse.org -- Fix build with gcc10 +Patch0: atomix-gcc10.patch BuildRequires: meson BuildRequires: pkgconfig BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= 2.0.5 @@ -43,7 +44,7 @@ %lang_package %prep -%autosetup +%autosetup -p1 %build %meson ++++++ atomix-gcc10.patch ++++++ >From be7f44f1945a569494d46c60eaf6e7b39b2bb48b Mon Sep 17 00:00:00 2001 From: Hans de Goede <hdego...@redhat.com> Date: Tue, 25 Feb 2020 10:15:42 +0100 Subject: [PATCH] Fix compilation with gcc10 / -fno-common gcc10 defaults to -fno-common, meaning that non static symbols can only be declared once. Make the parent_class variable in level.c and theme.c static to fix building with gcc10. --- src/level.c | 2 +- src/theme.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/level.c b/src/level.c index 160672d..5fbf6af 100644 --- a/src/level.c +++ b/src/level.c @@ -31,7 +31,7 @@ static void level_class_init (GObjectClass *class); static void level_init (Level *level); static void level_finalize (GObject *object); -GObjectClass *parent_class; +static GObjectClass *parent_class; /*================================================================= diff --git a/src/theme.c b/src/theme.c index 45f3086..88acb00 100644 --- a/src/theme.c +++ b/src/theme.c @@ -32,7 +32,7 @@ static void theme_init (Theme *theme); static void theme_finalize (GObject *object); static void destroy_theme_image (gpointer data); -GObjectClass *parent_class; +static GObjectClass *parent_class; GType theme_get_type (void) { -- 2.26.2