Package: gadmin-proftpd Version: 1:0.4.2-1 Followup-For: Bug #957248 User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu hirsute ubuntu-patch Control: tags -1 patch
Hi, In Ubuntu, the attached patch was applied to achieve the following: * d/p/05_gcc-10.patch: Mark variables as extern to fix FTBFS with GCC 10. Thanks for considering the patch. Logan
diff -Nru gadmin-proftpd-0.4.2/debian/patches/05-gcc_10.patch gadmin-proftpd-0.4.2/debian/patches/05-gcc_10.patch --- gadmin-proftpd-0.4.2/debian/patches/05-gcc_10.patch 1969-12-31 19:00:00.000000000 -0500 +++ gadmin-proftpd-0.4.2/debian/patches/05-gcc_10.patch 2021-01-18 19:54:22.000000000 -0500 @@ -0,0 +1,15 @@ +--- a/src/apply_user.c ++++ b/src/apply_user.c +@@ -51,10 +51,10 @@ + extern gchar *homedir; + + /* The directory checkbox values */ +-gchar *dir_val[19]; ++extern gchar *dir_val[19]; + extern long num_rows; + extern int row_pos; +-char *user_profile; ++extern char *user_profile; + + + /* Check if the user exists in the selected server */ diff -Nru gadmin-proftpd-0.4.2/debian/patches/series gadmin-proftpd-0.4.2/debian/patches/series --- gadmin-proftpd-0.4.2/debian/patches/series 2011-03-11 21:56:35.000000000 -0500 +++ gadmin-proftpd-0.4.2/debian/patches/series 2021-01-18 19:53:51.000000000 -0500 @@ -2,3 +2,4 @@ 02-icondir.patch 03-desktop.patch 04-spell_in_binary.patch +05-gcc_10.patch