Your message dated Wed, 02 Sep 2026 19:36:47 +0000
with message-id <[email protected]>
and subject line Bug#1146449: fixed in dovecot 1:2.4.5+dfsg1-2
has caused the Debian Bug report #1146449,
regarding dovecot: ftbfs: test suite failures on s390x
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1146449: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146449
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: dovecot
Version: 1:2.4.5+dfsg1-1
Severity: serious
Tags: ftbfs upstream patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: s390x

Dovecot includes an implementation of the xxh64 has algorithm.  The
implementation contains an endianness bug that impacts builds on s390x and
other big-endian ports.

The issue is that xxh64 requires data to be stored in little-endian format,
but the dovecot implementation does not account for this when interpreting
multi-byte values as uint32_t and uint64_t.  The solution is to call the
appropriate endian conversion function when reading these values from
memory.

The attached patch should accomplish this.

noah
Index: dovecot/src/lib/xxh64.c
===================================================================
--- dovecot.orig/src/lib/xxh64.c
+++ dovecot/src/lib/xxh64.c
@@ -8,6 +8,8 @@
 #include "lib.h"
 #include "xxh64.h"
 
+#include <endian.h>
+
 #define XXH64_PRIME1  UINT64_C(0x9E3779B185EBCA87)
 #define XXH64_PRIME2  UINT64_C(0xC2B2AE3D27D4EB4F)
 #define XXH64_PRIME3  UINT64_C(0x165667B19E3779F9)
@@ -20,14 +22,14 @@ static inline uint64_t xxh64_read64(cons
 {
        uint64_t v;
        memcpy(&v, p, sizeof(v));
-       return v;
+       return le64toh(v);  /* Convert from little-endian to host byte order */
 }
 
 static inline uint32_t xxh64_read32(const void *p)
 {
        uint32_t v;
        memcpy(&v, p, sizeof(v));
-       return v;
+       return le32toh(v);  /* Convert from little-endian to host byte order */
 }
 
 static uint64_t ATTR_UNSIGNED_WRAPS xxh64_round(uint64_t acc, uint64_t input)

--- End Message ---
--- Begin Message ---
Source: dovecot
Source-Version: 1:2.4.5+dfsg1-2
Done: Noah Meyerhans <[email protected]>

We believe that the bug you reported is fixed in the latest version of
dovecot, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Noah Meyerhans <[email protected]> (supplier of updated dovecot package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 02 Sep 2026 12:17:57 -0400
Source: dovecot
Architecture: source
Version: 1:2.4.5+dfsg1-2
Distribution: unstable
Urgency: medium
Maintainer: Dovecot Maintainers <[email protected]>
Changed-By: Noah Meyerhans <[email protected]>
Closes: 1146449 1146490
Changes:
 dovecot (1:2.4.5+dfsg1-2) unstable; urgency=medium
 .
   * [8b432dd] lib: xxh64: fix byte ordering issue on big-endian systems
     (Closes: #1146449)
   * [45b5e14] Fix loong64 ftbfs (Closes: #1146490)
Checksums-Sha1:
 eaf588124052dbf6016f2c2e21075580fc207db0 4184 dovecot_2.4.5+dfsg1-2.dsc
 18d00694b1defe51bd9c9890e9a36994912340b5 91452 
dovecot_2.4.5+dfsg1-2.debian.tar.xz
 52ad03a3fed7a3d49efebabd474828adc2786e63 7918 
dovecot_2.4.5+dfsg1-2_source.buildinfo
Checksums-Sha256:
 bf7f2344e109d29e883f17567b1f1bd1b8307138f2b11f8aeec19b3a61c437ae 4184 
dovecot_2.4.5+dfsg1-2.dsc
 8199fe7db5c0b096e23a88f02444182fa7e6c8770c3f7a341c8982262d976902 91452 
dovecot_2.4.5+dfsg1-2.debian.tar.xz
 116bb342b00bc7832a9d938b0e3f44843e06e0740f580011753be199be741022 7918 
dovecot_2.4.5+dfsg1-2_source.buildinfo
Files:
 21a020403d9b7bbea03a5b165242ca96 4184 mail optional dovecot_2.4.5+dfsg1-2.dsc
 afaaf2e9f3bf969a9a2f489b615be177 91452 mail optional 
dovecot_2.4.5+dfsg1-2.debian.tar.xz
 6bd9ee9e631917ebed565228f515147f 7918 mail optional 
dovecot_2.4.5+dfsg1-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE5G+E0xEKhJuZ7RJ34+c1IpshdTUFAmqYTJoACgkQ4+c1Ipsh
dTXLbRAA08MH24aF981c2CBPZQVD0aBiAf813k6CUVHri7gMuXQxwjIMIvr1aTjT
1+HS3rBfdjZFLVEN+8mdyglotEyOzB3vILmiG7G95iy02GiTHBOCy7SyjRwoFuOO
Pkdno7ubDmW7ONcfirxS/BjDWDNnLvouXjaavW5NQ9GbgadAfZNes19WIKzgUPia
NFPrj+SefEs1NtfD/4WRMfbm8odn8qQsdulc/LiQuN+ZR4wMVUzROAqIlxxB1c3T
agkl8zwIJaguaUAWiHPJFDtqn97uqlGO2GZv/IYeljRxyoWmnP157nkgvG2+S+ri
KgJE5/eTfb60Y97y8QyOFtQyGQ1k6tPqRqBelQiVIzLm8WiqenJJ56QJdbrbHFTM
TFL7B3Ihwl1F7Gugp0CRnW7aanHTLMAL7Ow8S9Pchk7M/cTdyDePZgBZRoFKVHHc
p6w2GuAqzLjlUmxUv44X4C6p9AEQINDHzIKlybIG9XBNrJwnpNpgM7C89vJcua6+
HoV/3CCWAvQ3taw0AmH7RoHvJTvqj/pOBUBg97b9aq8T+zxkiZrAzd7dxS9trYIV
BYRKLaPHKbqhJFF8kKNvq01luXtWeKOBafE3fnd7OOmaVDm/Q1W31PxFnsBoR7fR
fq7ST4C0/bE0mCXBND163cSSGeIf6T9NaIJ0SAXsR3l5IFnxDdM=
=qHr4
-----END PGP SIGNATURE-----

Attachment: pgpPCUndD0WfS.pgp
Description: PGP signature


--- End Message ---

Reply via email to