From 873b8c347160fa707617919cd75ea2f4c5546377 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Fri, 10 Aug 2018 12:35:23 +0200 Subject: [PATCH] - rel 2; fix crypt segfaults on glibc 2.28 --- crypt.patch | 10 ++++++++++ dovecot.spec | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 crypt.patch diff --git a/crypt.patch b/crypt.patch new file mode 100644 index 0000000..3e17cb9 --- /dev/null +++ b/crypt.patch @@ -0,0 +1,10 @@ +--- dovecot-2.3.2.1/src/auth/mycrypt.c~ 2018-04-30 15:52:04.000000000 +0200 ++++ dovecot-2.3.2.1/src/auth/mycrypt.c 2018-08-10 12:30:04.828556600 +0200 +@@ -14,6 +14,7 @@ + # define _XPG6 /* Some Solaris versions require this, some break with this */ + #endif + #include ++#include + + #include "mycrypt.h" + diff --git a/dovecot.spec b/dovecot.spec index 79e1500..b8d3969 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -12,7 +12,7 @@ Summary: IMAP and POP3 server written with security primarily in mind Summary(pl.UTF-8): Serwer IMAP i POP3 pisany głównie z myślą o bezpieczeństwie Name: dovecot Version: 2.3.2.1 -Release: 1 +Release: 2 Epoch: 1 License: MIT (libraries), LGPL v2.1 (the rest) Group: Networking/Daemons @@ -24,6 +24,7 @@ Source3: %{name}.sysconfig Source4: %{name}.tmpfiles Patch0: %{name}-config.patch Patch1: %{name}-rpath.patch +Patch2: crypt.patch URL: http://dovecot.org/ BuildRequires: autoconf BuildRequires: automake @@ -160,6 +161,7 @@ Pakiet programistyczny do tworzenia wtyczek dla Dovecota. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %{__sed} -i 's,/usr/lib/dovecot,%{_libdir}/dovecot,g' doc/example-config/*.conf doc/example-config/conf.d/*.conf -- 2.43.0