public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dovecot] f44: fix ftbfs for ppc64le cause by big pipe buffer
@ 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 : f44
Commit : f0ebc99140df4f6bcc79a4bc3f10a1a4089da7e0
Author : Michal Hlavinka <mhlavink@redhat.com>
Date : 2026-09-09T23:49:24+02:00
Stats : +38/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/dovecot/c/f0ebc99140df4f6bcc79a4bc3f10a1a4089da7e0?branch=f44
Log:
fix ftbfs for ppc64le cause by big pipe buffer
---
diff --git a/dovecot-2.4.5-test_w_small_pipe.patch b/dovecot-2.4.5-test_w_small_pipe.patch
new file mode 100644
index 0000000..dbcc670
--- /dev/null
+++ b/dovecot-2.4.5-test_w_small_pipe.patch
@@ -0,0 +1,32 @@
+diff --git a/src/lib/test-ostream-multiplex.c b/src/lib/test-ostream-multiplex.c
+index 59dcf02ed1..35f141313f 100644
+--- a/src/lib/test-ostream-multiplex.c
++++ b/src/lib/test-ostream-multiplex.c
+@@ -1,5 +1,6 @@
+ /* Copyright (c) Dovecot authors, see top-level COPYING file */
+
++#define _GNU_SOURCE /* for F_SETPIPE_SZ */
+ #include "test-lib.h"
+ #include "ioloop.h"
+ #include "lib-signals.h"
+@@ -11,6 +11,7 @@
+ #include "iostream-multiplex-private.h"
+ #include "ostream.h"
+ #include <unistd.h>
++#include <fcntl.h>
+
+ #include "hex-binary.h"
+
+@@ -712,6 +713,12 @@ static int test_stream_backpressure_child(void *context ATTR_UNUSED)
+ i_fatal("pipe() failed: %m");
+ fd_set_nonblock(fd[0], TRUE);
+ fd_set_nonblock(fd[1], TRUE);
++#ifdef F_SETPIPE_SZ
++ /* Shrink the pipe so the test triggers on ppc64le which defaults
++ to a 1 MB pipe (vs 64 KB on x86_64)
++ Called on a freshly created empty pipe so EBUSY cannot occur. */
++ (void)fcntl(fd[1], F_SETPIPE_SZ, 65536);
++#endif
+
+ /* Small parent buffer so avail reaches 0 quickly once the socket fills;
+ this is the congested state where the backpressure fix matters. */
diff --git a/dovecot.spec b/dovecot.spec
index d160abc..da95833 100644
--- a/dovecot.spec
+++ b/dovecot.spec
@@ -55,6 +55,11 @@ Patch25: dovecot-2.4.2-ftbfs-workaround.patch
# 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
+# ftbfs fix
+# ostream multiplex stream (backpressure): sub-process ended properly .. : FAILED
+# Warning: test: Sub-process forcibly terminated with signal 9
+# ostream multiplex stream (backpressure) .............................. : FAILED
+Patch27: dovecot-2.4.5-test_w_small_pipe.patch
BuildRequires: gcc, gcc-c++, openssl-devel, pam-devel, zlib-devel, bzip2-devel, libcap-devel
BuildRequires: libtool, autoconf, automake, pkgconfig
@@ -166,6 +171,7 @@ mv dovecot-pigeonhole-%{pigeonholever} dovecot-pigeonhole
%patch -P 24 -p1 -b .fixbuild
%patch -P 25 -p1 -b .ftbfs-workaround
%patch -P 26 -p1 -b .pr314
+%patch -P 27 -p1 -b .test_w_small_pipe
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] f44: fix ftbfs for ppc64le cause by big pipe buffer Michal Hlavinka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox