From e50e9918595cacb5d2c9df2b06e27f0043161382 Mon Sep 17 00:00:00 2001 From: Than Ngo Date: Wed, 14 Dec 2016 17:09:11 +0100 Subject: [PATCH] fixed bz#1403760, big endian issue --- dovecot-2.2.27-endian.patch | 12 ++++++++++++ dovecot.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 dovecot-2.2.27-endian.patch diff --git a/dovecot-2.2.27-endian.patch b/dovecot-2.2.27-endian.patch new file mode 100644 index 0000000..75c1e37 --- /dev/null +++ b/dovecot-2.2.27-endian.patch @@ -0,0 +1,12 @@ +diff -up dovecot-2.2.27/src/lib/sha3.c.than dovecot-2.2.27/src/lib/sha3.c +--- dovecot-2.2.27/src/lib/sha3.c.than 2016-12-13 07:46:26.173797063 -0500 ++++ dovecot-2.2.27/src/lib/sha3.c 2016-12-13 07:45:47.693129174 -0500 +@@ -232,7 +232,7 @@ sha3_finalize(struct sha3_ctx *ctx) + SHA3_CONST(0x8000000000000000UL); + keccakf(ctx->s); + +-#ifndef WORDS_BIGENDIAN ++#ifdef WORDS_BIGENDIAN + { + unsigned i; + for(i = 0; i < SHA3_KECCAK_SPONGE_WORDS; i++) { diff --git a/dovecot.spec b/dovecot.spec index a143afc..ab85cf6 100644 --- a/dovecot.spec +++ b/dovecot.spec @@ -5,7 +5,7 @@ Name: dovecot Epoch: 1 Version: 2.2.27 %global prever %{nil} -Release: 1%{?dist} +Release: 2%{?dist} #dovecot itself is MIT, a few sources are PD, pigeonhole is LGPLv2 License: MIT and LGPLv2 Group: System Environment/Daemons @@ -33,6 +33,7 @@ Patch7: dovecot-2.2.13-online.patch Patch8: dovecot-2.2.20-initbysystemd.patch Patch9: dovecot-2.2.22-systemd_w_protectsystem.patch +Patch10: dovecot-2.2.27-endian.patch Source15: prestartscript @@ -129,6 +130,8 @@ This package provides the development files for dovecot. %patch7 -p1 -b .online %patch8 -p1 -b .initbysystemd %patch9 -p1 -b .systemd_w_protectsystem +%patch10 -p1 -b .endian + #pushd dovecot-2*2-pigeonhole-%{pigeonholever} #popd sed -i '/DEFAULT_INCLUDES *=/s|$| '"$(pkg-config --cflags libclucene-core)|" src/plugins/fts-lucene/Makefile.in @@ -484,6 +487,9 @@ make check %{_libdir}/%{name}/dict/libdriver_pgsql.so %changelog +* Wed Dec 14 2016 Than Ngo - 1:2.2.27-2 +- fixed bz#1403760, big endian issue + * Mon Dec 05 2016 Michal Hlavinka - 1:2.2.27-1 - Fixed crash in auth process when auth-policy was configured and authentication was aborted/failed without a username set.