public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dovecot] f43: ftbfs fix
@ 2026-09-10  4:42 Michal Hlavinka
  0 siblings, 0 replies; only message in thread
From: Michal Hlavinka @ 2026-09-10  4:42 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/dovecot
Branch : f43
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=f43

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-10  4:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-10  4:42 [rpms/dovecot] f43: ftbfs fix Michal Hlavinka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox