[packages/cyrus-imapd] fix build with gcc 10

atler atler at pld-linux.org
Thu Jul 2 11:12:57 CEST 2020


commit df92a33c05342b381963e261a9252cbe19e92af9
Author: Jan Palus <atler at pld-linux.org>
Date:   Thu Jul 2 11:08:29 2020 +0200

    fix build with gcc 10

 cyrus-imapd-gcc10.patch | 37 +++++++++++++++++++++++++++++++++++++
 cyrus-imapd.spec        |  2 ++
 2 files changed, 39 insertions(+)
---
diff --git a/cyrus-imapd.spec b/cyrus-imapd.spec
index 1b015bb..c9c8347 100644
--- a/cyrus-imapd.spec
+++ b/cyrus-imapd.spec
@@ -40,6 +40,7 @@ Patch1:		link.patch
 Patch2:		%{name}-clamav-0.101.patch
 Patch3:		%{name}-icu.patch
 Patch4:		%{name}-libcap.patch
+Patch5:		%{name}-gcc10.patch
 URL:		http://www.cyrusimap.org/
 BuildRequires:	autoconf >= 2.63
 BuildRequires:	automake
@@ -207,6 +208,7 @@ Perlowy interfejs do biblioteki cyrus-imapd.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 cp -p %{SOURCE1} %{SOURCE2} %{SOURCE4} %{SOURCE5} .
 
diff --git a/cyrus-imapd-gcc10.patch b/cyrus-imapd-gcc10.patch
new file mode 100644
index 0000000..a385968
--- /dev/null
+++ b/cyrus-imapd-gcc10.patch
@@ -0,0 +1,37 @@
+From 817449994d4acae0023c34ab045649c38a6d37eb Mon Sep 17 00:00:00 2001
+From: Bron Gondwana <brong at fastmail.fm>
+Date: Sun, 15 Jul 2018 03:34:46 +1000
+Subject: [PATCH] conversations: move open_conversationsdb to conversations.c
+
+Thanks Chris Newman
+---
+ imap/conversations.c | 2 ++
+ imap/conversations.h | 2 +-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/imap/conversations.c b/imap/conversations.c
+index 620486afc..5c96eb1bb 100644
+--- a/imap/conversations.c
++++ b/imap/conversations.c
+@@ -100,6 +100,8 @@
+ 
+ #define CONVERSATIONS_VERSION 0
+ 
++struct conversations_open *open_conversations;
++
+ static conv_status_t NULLSTATUS = { 0, 0, 0};
+ 
+ static char *convdir = NULL;
+diff --git a/imap/conversations.h b/imap/conversations.h
+index 179969f0a..cd77df856 100644
+--- a/imap/conversations.h
++++ b/imap/conversations.h
+@@ -78,7 +78,7 @@ struct conversations_open {
+     struct conversations_open *next;
+ };
+ 
+-struct conversations_open *open_conversations;
++extern struct conversations_open *open_conversations;
+ 
+ typedef struct conversation conversation_t;
+ typedef struct conv_folder  conv_folder_t;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cyrus-imapd.git/commitdiff/1e80cade6a65537af5124c4d04d3b6bfb9faf389



More information about the pld-cvs-commit mailing list