public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Hlavinka <mhlavink@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/dovecot] f44: ftbfs fix
Date: Thu, 10 Sep 2026 04:42:26 GMT	[thread overview]
Message-ID: <178901534633.1.4636476086620120131.rpms-dovecot-077325226011@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/dovecot
Branch : f44
Commit : 0773252260112f46cc06614d9cb83f276369e01a
Author : Michal Hlavinka <mhlavink@redhat.com>
Date   : 2026-09-09T17:48:47+02:00
Stats  : +35/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/dovecot/c/0773252260112f46cc06614d9cb83f276369e01a?branch=f44

Log:
ftbfs fix

---
diff --git a/dovecot-2.4.5-pr314.patch b/dovecot-2.4.5-pr314.patch
new file mode 100644
index 0000000..531b53f
--- /dev/null
+++ b/dovecot-2.4.5-pr314.patch
@@ -0,0 +1,30 @@
+diff --git a/src/lib/xxh64.c b/src/lib/xxh64.c
+index 1c17833afd..4a151bd0c2 100644
+--- a/src/lib/xxh64.c
++++ b/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(const void *p)
+ {
+ 	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)

diff --git a/dovecot.spec b/dovecot.spec
index 3583fab..d160abc 100644
--- a/dovecot.spec
+++ b/dovecot.spec
@@ -51,6 +51,10 @@ Patch24: dovecot-2.4.2-fixbuild.patch
 # temporary workaround for s390x build test failure
 # https://dovecot.org/mailman3/archives/list/dovecot@dovecot.org/thread/FZBVU55TK5332SMZSSDNWIVJCWGUAJQS/
 Patch25: dovecot-2.4.2-ftbfs-workaround.patch
+# ftbfs fix from upstream, https://patch-diff.githubusercontent.com/raw/dovecot/core/pull/314.diff
+# test-hash-method.c:483: Assert(#29) failed: memcmp(result, test_vectors[i].output, test_vectors[i].olen) == 0
+# hash method xxh64 (test vectors) ..................................... : FAILED
+Patch26: dovecot-2.4.5-pr314.patch
 
 BuildRequires: gcc, gcc-c++, openssl-devel, pam-devel, zlib-devel, bzip2-devel, libcap-devel
 BuildRequires: libtool, autoconf, automake, pkgconfig
@@ -161,6 +165,7 @@ mv dovecot-pigeonhole-%{pigeonholever} dovecot-pigeonhole
 %patch -P 19 -p1 -b .lua55
 %patch -P 24 -p1 -b .fixbuild
 %patch -P 25 -p1 -b .ftbfs-workaround
+%patch -P 26 -p1 -b .pr314
 cp run-test-valgrind.supp dovecot-pigeonhole/
 # valgrind would fail with shell wrapper
 echo "testsuite" >dovecot-pigeonhole/run-test-valgrind.exclude

                 reply	other threads:[~2026-09-10  4:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178901534633.1.4636476086620120131.rpms-dovecot-077325226011@fedoraproject.org \
    --to=mhlavink@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox