[packages/mailutils] - fix building with gcc 10.x

baggins baggins at pld-linux.org
Tue Jun 2 21:20:33 CEST 2020


commit 70199115ad77fb58ef85811fc7cb147b0bdc4d59
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Jun 2 21:20:10 2020 +0200

    - fix building with gcc 10.x

 ggc10.patch    | 33 +++++++++++++++++++++++++++++++++
 mailutils.spec |  2 ++
 2 files changed, 35 insertions(+)
---
diff --git a/mailutils.spec b/mailutils.spec
index 3ec65e0..1bf7649 100644
--- a/mailutils.spec
+++ b/mailutils.spec
@@ -41,6 +41,7 @@ Patch3:		%{name}-includes.patch
 Patch4:		%{name}-examples.patch
 Patch5:		%{name}-extern.patch
 Patch6:		%{name}-cpp.patch
+Patch7:		ggc10.patch
 URL:		http://www.gnu.org/software/mailutils/mailutils.html
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake >= 1:1.11
@@ -190,6 +191,7 @@ skrzynek pocztowych.
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
+%patch7 -p1
 
 %{__rm} po/stamp-po
 
diff --git a/ggc10.patch b/ggc10.patch
new file mode 100644
index 0000000..36f4631
--- /dev/null
+++ b/ggc10.patch
@@ -0,0 +1,33 @@
+--- mailutils-3.9/lib/tcpwrap.h~	2020-03-13 07:52:46.000000000 +0100
++++ mailutils-3.9/lib/tcpwrap.h	2020-06-02 21:09:57.675538739 +0200
+@@ -17,7 +17,7 @@
+ #include <mailutils/types.h>
+ 
+ extern int mu_tcp_wrapper_enable;
+-const char *mu_tcp_wrapper_daemon;
++extern const char *mu_tcp_wrapper_daemon;
+ extern int mu_tcpwrapper_access (int fd);
+ extern void mu_tcpwrapper_cfg_init (void);
+ extern int mu_tcp_wrapper_prefork (int fd, 
+--- mailutils-3.9/imap4d/imap4d.h~	2020-03-13 07:52:44.000000000 +0100
++++ mailutils-3.9/imap4d/imap4d.h	2020-06-02 21:11:17.661720737 +0200
+@@ -229,7 +229,7 @@
+ extern int test_mode;
+ extern int silent_expunge;
+ 
+-int tls_available;
++extern int tls_available;
+ 
+ /* Input functions */
+ extern mu_stream_t iostream;
+--- mailutils-3.9/imap4d/imap4d.c~	2020-03-13 07:52:44.000000000 +0100
++++ mailutils-3.9/imap4d/imap4d.c	2020-06-02 21:11:49.814867424 +0200
+@@ -20,6 +20,8 @@
+ #include <mailutils/kwd.h>
+ #include "tcpwrap.h"
+ 
++int tls_available;
++
+ mu_m_server_t server;
+ unsigned int idle_timeout = 1800;
+ int imap4d_transcript;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mailutils.git/commitdiff/70199115ad77fb58ef85811fc7cb147b0bdc4d59



More information about the pld-cvs-commit mailing list