Debian Patches

Status for mailman3/3.3.10-5

Patch Description Author Forwarded Bugs Origin Last update
0005_syncmembers-flush-stdout-stderr-for-deterministic-order.patch syncmembers: flush stdout/stderr writes immediately python3-click's CliRunner (>= 8.2) mixes stdout and stderr into a single
test-result stream by copying each stream's writes into a shared buffer.
Because stdout and stderr are each independently text-buffered, and the
'syncmembers' subcommand never flushes between prints, the two streams'
writes only reach the shared buffer whenever each one's internal buffer
happens to be flushed -- not in the order they were actually written.
In practice this means the CliRunner-captured output groups all stdout
writes before all stderr writes, regardless of the real call order, which
breaks tests asserting on the exact interleaving of [ADD]/[DEL] lines
(stdout) and "skipping" messages (stderr).
.
Pass flush=True to each print() call in add_members() and sync_members()
so every write reaches the shared buffer immediately, restoring the
correct interleaved order regardless of Click's buffering behavior.
Jordi Mallach <jordi@debian.org> no 2026-08-06
0006_test-shorthelp-clear-cached-click-help-flag.patch Fix digests docs test python-click 8.1.8 introduced caching and reuse of help flags, thus making
doctests non-deterministic due to varying help flags between commands.
Simon Poirier <simon.poirier@canonical.com> no upstream backport, https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/mailman3/3.3.10-0ubuntu3/mailman3_3.3.10-0ubuntu3.debian.tar.xz 2025-07-24
0001_README_remove_embedded_images.patch Remove embedded remote images from README.rst
The documentation files shipped with Debian packages should not embed
remote images, especially not from sources that are known to track
users (like shields.io).
Jonas Meurer <jonas@freesources.org> not-needed 2017-09-21
0002-remove_sphinxcontrib.zopeext_dependency.patch Remove sphinx dependency `sphinxcontrib.zopeext.autointerface`
`sphinxcontrib.zopeext` is not available in Debian. We might want to
package it for Debian one day, but until then let's just ignore the
dependency (and make a small part of the docs not build properly).
Jonas Meurer <jonas@freesources.org> not-needed 2020-12-29
0003_remove_context_manager.patch commit 685d9a7bdbd382d9e8d4a2da74bd973e93356e05

utilities: remove context manager usage for PosixPath ...

... Python 3.13 removed the context manager functions from PosixPath


diff --git a/src/mailman/utilities/i18n.py b/src/mailman/utilities/i18n.py
index a694ae8dd..d4ab9085b 100644
liushuyu <liushuyu011@gmail.com> not-needed 2025-01-16
0004_subject_prefix-Pass-a-Header-object-as-is-to_decode_header.patch commit 8e60f319009726c0014c2f2b7b3955c4fcb3d1ee

refactor: subject_prefix: Pass a Header object as is to decode_header()

email.header.decode_header() can take a Header object.


diff --git a/src/mailman/handlers/subject_prefix.py b/src/mailman/handlers/subject_prefix.py
index ffaa50e9c..ff8d9fe26 100644
SATOH Fumiyasu <fumiyas@osstech.co.jp> not-needed 2026-04-03
0007_Reuse_existing_Handler_when_configuring_a_Logger.patch commit 0e6e98f971fb2247c4f65592ecfccb49afddb257

Fix logging initialization bug

This bug interferes with any logger that is mentioned multiple times in the configuration.

The original code overwrites the value of the .handler attribute with a newly created handler.

The new code prevents this by leaving initialized .handler alone.

I guess it needs a News item still?

See https://gitlab.com/mailman/mailman/-/issues/931#note_1411199556.

* chore: Add NEWS item

* Fix typo in class name

* Don't leak logging handlers


diff --git a/src/mailman/core/logging.py b/src/mailman/core/logging.py
index 66e867699..73e5d0d9e 100644
Stephen Turnbull <turnbull.stephen.fw@u.tsukuba.ac.jp> not-needed 2025-11-07

All known versions for source package 'mailman3'

Links