[packages/fetchmail] - rel 4; fix openssl 1.1.1 build

arekm arekm at pld-linux.org
Sat Sep 15 16:15:00 CEST 2018


commit 9e1b6b54b2bd8193342219d965012538a652f8e6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Sep 15 16:13:47 2018 +0200

    - rel 4; fix openssl 1.1.1 build

 02_no_sslv3.patch | 16 ++++++++++++++++
 fetchmail.spec    |  4 +++-
 2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/fetchmail.spec b/fetchmail.spec
index 2693367..bf0e545 100644
--- a/fetchmail.spec
+++ b/fetchmail.spec
@@ -16,7 +16,7 @@ Summary(uk.UTF-8):	Утиліта отримання пошти з віддал
 Summary(zh_CN.UTF-8):	功能强大的 POP/IMAP 电子邮件收取守护进程
 Name:		fetchmail
 Version:	6.3.26
-Release:	3
+Release:	4
 License:	GPL v2 with OpenSSL exception
 Group:		Applications/Mail
 #Source0Download: http://developer.berlios.de/project/showfiles.php?group_id=1824
@@ -26,6 +26,7 @@ Source1:	%{name}conf.desktop
 Source2:	%{name}.sysconfig
 Source3:	%{name}.init
 Source4:	%{name}.logrotate
+Patch0:		02_no_sslv3.patch
 URL:		http://fetchmail.berlios.de/
 BuildRequires:	automake
 BuildRequires:	flex
@@ -171,6 +172,7 @@ demona.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 cp -f /usr/share/automake/config.* .
diff --git a/02_no_sslv3.patch b/02_no_sslv3.patch
new file mode 100644
index 0000000..497b85b
--- /dev/null
+++ b/02_no_sslv3.patch
@@ -0,0 +1,16 @@
+Description:  Remove sslv3 support to fix build with new openssl (Closes: 804604).
+Author: Peter Michael Green <plugwash at raspbian.org>
+Bug-Debian: https://bugs.debian.org/804604
+
+--- fetchmail-6.3.26.orig/socket.c
++++ fetchmail-6.3.26/socket.c
+@@ -914,7 +914,8 @@ int SSLOpen(int sock, char *mycert, char
+ 			return -1;
+ #endif
+ 		} else if(!strcasecmp("ssl3",myproto)) {
+-			_ctx[sock] = SSL_CTX_new(SSLv3_client_method());
++			report(stderr, GT_("Your operating system does not support SSLv3.\n"));
++			return -1;
+ 		} else if(!strcasecmp("tls1",myproto)) {
+ 			_ctx[sock] = SSL_CTX_new(TLSv1_client_method());
+ 		} else if (!strcasecmp("ssl23",myproto)) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fetchmail.git/commitdiff/9e1b6b54b2bd8193342219d965012538a652f8e6



More information about the pld-cvs-commit mailing list