Hello community, here is the log from the commit of package iftop for openSUSE:Factory checked in at 2020-07-27 17:42:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/iftop (Old) and /work/SRC/openSUSE:Factory/.iftop.new.3592 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "iftop" Mon Jul 27 17:42:17 2020 rev:31 rq:822848 version:0.99.4 Changes: -------- --- /work/SRC/openSUSE:Factory/iftop/iftop.changes 2019-04-22 12:26:51.940950706 +0200 +++ /work/SRC/openSUSE:Factory/.iftop.new.3592/iftop.changes 2020-07-27 17:44:18.675220133 +0200 @@ -1,0 +2,7 @@ +Fri Jul 10 17:35:13 UTC 2020 - Brice DEKANY <[email protected]> + +- added 007-iftop-declare-extern-vars.patch: fix for compilations + error with GCC10 (Default to -fno-common) + See: https://www.gnu.org/software/gcc/gcc-10/porting_to.html + +------------------------------------------------------------------- New: ---- 007-iftop-declare-extern-vars.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ iftop.spec ++++++ --- /var/tmp/diff_new_pack.Sjc3Gb/_old 2020-07-27 17:44:21.779223047 +0200 +++ /var/tmp/diff_new_pack.Sjc3Gb/_new 2020-07-27 17:44:21.783223051 +0200 @@ -34,6 +34,7 @@ Patch4: 004-iftop-unlimited_text_output.patch Patch5: 0001-Prefer-ncurses6w.patch Patch6: 006-iftop-choose_first_running_interface.patch +Patch7: 007-iftop-declare-extern-vars.patch %if 0%{?suse_version} >= 1500 BuildRequires: pkgconfig(ncursesw) %else @@ -58,6 +59,9 @@ %patch5 -p1 %endif %patch6 -p1 +%if 0%{?suse_version} >= 1500 +%patch7 -p1 +%endif %build autoreconf -fiv ++++++ 007-iftop-declare-extern-vars.patch ++++++ diff -u a/ui_common.c b/ui_common.c --- a/ui_common.c 2020-07-10 16:35:47.874322400 +0000 +++ b/ui_common.c 2020-07-10 16:37:16.862322400 +0000 @@ -24,6 +24,12 @@ char* unit_bits[UNIT_DIVISIONS] = { "b", "Kb", "Mb", "Gb"}; char* unit_bytes[UNIT_DIVISIONS] = { "B", "KB", "MB", "GB"}; +sorted_list_type screen_list; +host_pair_line totals; +int peaksent, peakrecv, peaktotal; +hash_type* screen_hash; +hash_type* service_hash; + extern hash_type* history; extern int history_pos; extern int history_len; diff -u a/ui_common.h b/ui_common.h --- a/ui_common.h 2020-07-10 16:35:47.874322400 +0000 +++ b/ui_common.h 2020-07-10 16:36:41.182322400 +0000 @@ -33,12 +33,12 @@ extern options_t options; -sorted_list_type screen_list; -host_pair_line totals; -int peaksent, peakrecv, peaktotal; +extern sorted_list_type screen_list; +extern host_pair_line totals; +extern int peaksent, peakrecv, peaktotal; extern history_type history_totals; -hash_type* screen_hash; -hash_type* service_hash; +extern hash_type* screen_hash; +extern hash_type* service_hash; void analyse_data(void); void screen_list_init(void);
