commit:     3153e9afab90ac5741c621bad7e6c39c72764181
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Mar  2 23:40:18 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Mar  2 23:40:49 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3153e9af

net-ftp/proftpd: tweak for gcc-10

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 net-ftp/proftpd/files/proftpd-1.3.6c-gcc-10.patch | 21 +++++++++++++++++++++
 net-ftp/proftpd/proftpd-1.3.6c.ebuild             |  1 +
 2 files changed, 22 insertions(+)

diff --git a/net-ftp/proftpd/files/proftpd-1.3.6c-gcc-10.patch 
b/net-ftp/proftpd/files/proftpd-1.3.6c-gcc-10.patch
new file mode 100644
index 00000000000..c3ee704c085
--- /dev/null
+++ b/net-ftp/proftpd/files/proftpd-1.3.6c-gcc-10.patch
@@ -0,0 +1,21 @@
+--- a/contrib/mod_quotatab.c
++++ b/contrib/mod_quotatab.c
+@@ -50,6 +50,7 @@ typedef struct regtab_obj {
+ module quotatab_module;
+ 
+ /* Quota objects for the current session */
++quota_deltas_t quotatab_deltas;
+ static quota_table_t *limit_tab = NULL;
+ static quota_limit_t sess_limit;
+ 
+--- a/contrib/mod_quotatab.h
++++ b/contrib/mod_quotatab.h
+@@ -188,7 +188,7 @@ typedef struct table_obj {
+ #define QUOTATAB_TALLY_SRC      0x0002
+ 
+ /* Quota objects for the current session. */
+-quota_deltas_t quotatab_deltas;
++extern quota_deltas_t quotatab_deltas;
+ 
+ /* Function prototypes necessary for quotatab sub-modules */
+ int quotatab_log(const char *, ...)

diff --git a/net-ftp/proftpd/proftpd-1.3.6c.ebuild 
b/net-ftp/proftpd/proftpd-1.3.6c.ebuild
index 5c8f9eb610d..d2441f41e29 100644
--- a/net-ftp/proftpd/proftpd-1.3.6c.ebuild
+++ b/net-ftp/proftpd/proftpd-1.3.6c.ebuild
@@ -71,6 +71,7 @@ S="${WORKDIR}/${P/_/}"
 PATCHES=(
        "${FILESDIR}"/${PN}-1.3.6-use-trace.patch
        "${FILESDIR}"/${PN}-1.3.6a-fix-libcheck.patch
+       "${FILESDIR}"/${PN}-1.3.6c-gcc-10.patch
 )
 
 RESTRICT=test # tests corrupt memory. need to be fixed upstream first

Reply via email to