Hello community, here is the log from the commit of package ddccontrol for openSUSE:Factory checked in at 2020-06-23 21:05:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ddccontrol (Old) and /work/SRC/openSUSE:Factory/.ddccontrol.new.2956 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ddccontrol" Tue Jun 23 21:05:56 2020 rev:4 rq:816438 version:0.4.2+20140105+git9d89d8c Changes: -------- --- /work/SRC/openSUSE:Factory/ddccontrol/ddccontrol.changes 2020-02-05 19:41:23.559258856 +0100 +++ /work/SRC/openSUSE:Factory/.ddccontrol.new.2956/ddccontrol.changes 2020-06-23 21:06:21.958185619 +0200 @@ -1,0 +2,7 @@ +Tue Jun 9 10:06:00 UTC 2020 - Stefan Dirsch <[email protected]> + +- gcc10.patch + * fixed build against gcc10, which uses -fno-common by default + (patch picked from https://bugs.gentoo.org/707184) + +------------------------------------------------------------------- New: ---- gcc10.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ddccontrol.spec ++++++ --- /var/tmp/diff_new_pack.oBDDZs/_old 2020-06-23 21:06:22.554187544 +0200 +++ /var/tmp/diff_new_pack.oBDDZs/_new 2020-06-23 21:06:22.554187544 +0200 @@ -28,6 +28,7 @@ Source1: %{name}-rpmlintrc Source2: 90-ddccontrol-i2c.rules Patch50: 0002_cerrors.patch +Patch51: gcc10.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build ExcludeArch: s390 s390x BuildRequires: autoconf @@ -98,6 +99,7 @@ %prep %setup -q %patch50 -p1 +%patch51 -p1 %build ./autogen.sh ++++++ gcc10.patch ++++++ Index: ddccontrol-0.4.2+20140105+git9d89d8c/src/gddccontrol/notebook.h =================================================================== --- ddccontrol-0.4.2+20140105+git9d89d8c.orig/src/gddccontrol/notebook.h +++ ddccontrol-0.4.2+20140105+git9d89d8c/src/gddccontrol/notebook.h @@ -43,12 +43,12 @@ #endif /* globals */ -struct monitor* mon; +extern struct monitor* mon; -GtkWidget* main_app_window; +extern GtkWidget* main_app_window; -GtkWidget* monitor_manager; -GtkWidget* profile_manager; +extern GtkWidget* monitor_manager; +extern GtkWidget* profile_manager; /* notebook.c */ @@ -91,13 +91,13 @@ void set_message_ok(char* message, int w GtkWidget *stock_label_button(const gchar * stockid, const gchar *label_text, const gchar *tool_tip); -GtkWidget* profile_manager_button; -GtkWidget* saveprofile_button; -GtkWidget* cancelprofile_button; -GtkWidget* refresh_controls_button; +extern GtkWidget* profile_manager_button; +extern GtkWidget* saveprofile_button; +extern GtkWidget* cancelprofile_button; +extern GtkWidget* refresh_controls_button; /* Multimonitor support */ -int current_monitor; /* current monitor */ -int num_monitor; /* total number of monitors */ +extern int current_monitor; /* current monitor */ +extern int num_monitor; /* total number of monitors */ #endif //NOTEBOOK_H Index: ddccontrol-0.4.2+20140105+git9d89d8c/src/gddccontrol/main.c =================================================================== --- ddccontrol-0.4.2+20140105+git9d89d8c.orig/src/gddccontrol/main.c +++ ddccontrol-0.4.2+20140105+git9d89d8c/src/gddccontrol/main.c @@ -28,6 +28,24 @@ #include "notebook.h" +/* Globals previously in notebook.h */ + +struct monitor* mon; +GtkWidget* main_app_window; +GtkWidget* monitor_manager; +GtkWidget* profile_manager; +GtkWidget* profile_manager_button; +GtkWidget* saveprofile_button; +GtkWidget* cancelprofile_button; +GtkWidget* refresh_controls_button; + +/* Multimonitor support */ +int current_monitor; /* current monitor */ +int num_monitor; /* total number of monitors */ + +/* End Globals moved for -fno-common/gcc10 fix */ + + GtkWidget* table; GtkWidget *combo_box;
