diff -Nru telegram-cli-1.3.1+git20160323.6547c0b21/debian/changelog telegram-cli-1.3.1+git20160323.6547c0b21/debian/changelog --- telegram-cli-1.3.1+git20160323.6547c0b21/debian/changelog 2019-10-19 19:58:40.000000000 +0000 +++ telegram-cli-1.3.1+git20160323.6547c0b21/debian/changelog 2020-07-25 16:06:56.000000000 +0000 @@ -1,8 +1,9 @@ -telegram-cli (1.3.1+git20160323.6547c0b21-1build1) focal; urgency=medium +telegram-cli (1.3.1+git20160323.6547c0b21-2) unstable; urgency=low - * No-change rebuild for libevent soname changes. + * Port to GCC-10 (Closes: #957865) + - debian/patches/0003_port_to_gcc10.patch - -- Matthias Klose Sat, 19 Oct 2019 19:58:40 +0000 + -- Ying-Chun Liu (PaulLiu) Sun, 26 Jul 2020 00:06:56 +0800 telegram-cli (1.3.1+git20160323.6547c0b21-1) unstable; urgency=low diff -Nru telegram-cli-1.3.1+git20160323.6547c0b21/debian/patches/0003_port_to_gcc10.patch telegram-cli-1.3.1+git20160323.6547c0b21/debian/patches/0003_port_to_gcc10.patch --- telegram-cli-1.3.1+git20160323.6547c0b21/debian/patches/0003_port_to_gcc10.patch 1970-01-01 00:00:00.000000000 +0000 +++ telegram-cli-1.3.1+git20160323.6547c0b21/debian/patches/0003_port_to_gcc10.patch 2020-07-25 16:06:56.000000000 +0000 @@ -0,0 +1,76 @@ +Description: Porting to GCC-10 + GCC 10 uses -fno-common. Thus we should not duplicate global variables. +Author: Ying-Chun Liu (PaulLiu) +Bug-Debian: https://bugs.debian.org/957865 +Last-Update: 2020-07-25 + +Index: telegram-cli-1.3.1+git20160323.6547c0b21/loop.c +=================================================================== +--- telegram-cli-1.3.1+git20160323.6547c0b21.orig/loop.c ++++ telegram-cli-1.3.1+git20160323.6547c0b21/loop.c +@@ -74,7 +74,7 @@ + + #include + +-int verbosity; ++extern int verbosity; + extern int readline_disabled; + extern char *bot_hash; + +@@ -87,7 +87,7 @@ extern int binlog_enabled; + + extern int unknown_user_list_pos; + extern int unknown_user_list[]; +-int register_mode; ++extern int register_mode; + extern int safe_quit; + extern int sync_from_start; + +@@ -389,7 +389,7 @@ int zero[512]; + + int readline_active; + int new_dc_num; +-int wait_dialog_list; ++extern int wait_dialog_list; + + extern struct tgl_update_callback upd_cb; + +Index: telegram-cli-1.3.1+git20160323.6547c0b21/interface.c +=================================================================== +--- telegram-cli-1.3.1+git20160323.6547c0b21.orig/interface.c ++++ telegram-cli-1.3.1+git20160323.6547c0b21/interface.c +@@ -117,11 +117,11 @@ extern int one_string_len; + extern char *one_string_prompt; + extern int one_string_flags; + extern int enable_json; +-int disable_auto_accept; +-int msg_num_mode; +-int permanent_msg_id_mode; +-int permanent_peer_id_mode; +-int disable_colors; ++extern int disable_auto_accept; ++extern int msg_num_mode; ++extern int permanent_msg_id_mode; ++extern int permanent_peer_id_mode; ++extern int disable_colors; + extern int alert_sound; + extern int binlog_read; + extern char *home_directory; +@@ -130,7 +130,7 @@ int do_html; + int safe_quit; + + int in_readline; +-int readline_active; ++extern int readline_active; + + int log_level; + +@@ -3711,7 +3711,7 @@ void interpreter (char *line) { + interpreter_ex (line, 0); + } + +-int readline_active; ++extern int readline_active; + /*void rprintf (const char *format, ...) { + mprint_start (ev); + va_list ap; diff -Nru telegram-cli-1.3.1+git20160323.6547c0b21/debian/patches/series telegram-cli-1.3.1+git20160323.6547c0b21/debian/patches/series --- telegram-cli-1.3.1+git20160323.6547c0b21/debian/patches/series 2019-01-20 06:16:17.000000000 +0000 +++ telegram-cli-1.3.1+git20160323.6547c0b21/debian/patches/series 2020-07-25 15:58:15.000000000 +0000 @@ -1,2 +1,3 @@ 0001_use_system_tl-parser.patch 0002_use_system_tgl.patch +0003_port_to_gcc10.patch