Debian Patches

Status for matrix-synapse/1.121.0-2

Patch Description Author Forwarded Bugs Origin Last update
twisted-24.11/0001-pass-an-instance-not-a-type-to-resolveHostName.patch [PATCH] pass an instance, not a type, to resolveHostName
resolveHostName wanted an instance of a type. We also had to switch from provider to
implementer, as the latter implies that any instances implement the given interface.

Fixed the following error:

synapse/http/client.py:243: error: Argument 1 to "resolveHostName" of "IHostnameResolver" has incompatible type "type[EndpointReceiver]"; expected "IResolutionReceiver" [arg-type]
Andrew Morgan <andrew@amorgan.xyz> no 2024-12-04
twisted-24.11/0002-Explicitly-list-func-arguments.patch [PATCH] Explicitly list func arguments
mypy would not accept passing a **kwargs to `HostnameEndpoint`.

Resolves the following errors:

synapse/http/proxyagent.py:385: error: Argument 4 to "HostnameEndpoint" has incompatible type "**dict[str, object]"; expected "float" [arg-type]
synapse/http/proxyagent.py:385: error: Argument 4 to "HostnameEndpoint" has incompatible type "**dict[str, object]"; expected "Union[bytes, str, tuple[Union[bytes, str], int], None]" [arg-type]
synapse/http/proxyagent.py:385: error: Argument 4 to "HostnameEndpoint" has incompatible type "**dict[str, object]"; expected "Optional[float]" [arg-type]
Andrew Morgan <andrew@amorgan.xyz> no 2024-12-04
twisted-24.11/0003-Use-new-private-variable-for-hostname-as-str.patch [PATCH] Use new private variable for hostname as str
`._hostStr` was replaced with `._hostText` in https://github.com/twisted/twisted/pull/12351

Resolves the following errors:

tests/http/test_proxyagent.py:857: error: "HostnameEndpoint" has no attribute "_hostStr" [attr-defined]
tests/http/test_proxyagent.py:869: error: "HostnameEndpoint" has no attribute "_hostStr" [attr-defined]
Andrew Morgan <andrew@amorgan.xyz> no 2024-12-04
twisted-24.11/0004-Use-a-different-variable-when-changing-var-type.patch [PATCH] Use a different variable when changing var type
just mypy being particular about changing the type of an already-defined variable.

Resolves the following mypy errors:

synapse/http/replicationagent.py:92: error: Incompatible types in assignment (expression has type "_WrapperEndpoint", variable has type "HostnameEndpoint") [assignment]
synapse/http/proxyagent.py:394: error: Incompatible types in assignment (expression has type "_WrapperEndpoint", variable has type "HostnameEndpoint") [assignment]
Andrew Morgan <andrew@amorgan.xyz> no 2024-12-04
0001-change_instructions.patch Point users to dpkg-reconfigure when debconf-managed settings are missing Erik Johnston <erikj@matrix.org> no 2016-06-10
0003-bump-canonicaljson.patch Bump canonicaljson to 1.6.2 Andrej Shadura <andrewsh@debian.org> no 2022-08-11
0004-Warn-users-about-packages-installed-from-pip.patch Warn users about packages installed from pip Andrej Shadura <andrewsh@debian.org> not-needed 2022-08-31
0005-Avoid-telling-people-to-install-packages-with-pip.patch Avoid telling people to install packages with pip Andrej Shadura <andrewsh@debian.org> not-needed upstream 2022-08-31
0006-Configure-test-harness-for-Debian-build-environment.patch Configure test harness for Debian build environment

The test harness relies on an import from the current directory, but also
dumps temporary test files into that directory. Additionally, the tests
respond to the proxy settings, causing local lookups to fail.

To fix this,
- Unset the proxy (as of this writing, the tests work with the network
disabled).
- Add the cwd to sys.path
- cd to a temporary location suitable for storing temporary test files
Antonio Russo <aerusso@aerusso.net> not-needed 2023-09-22
0007-Fix-test-reactor-imports.patch Fix test reactor imports

Some twisted modules fail to function correctly if import at test import time.
For whatever reason, this problem does not occur if they are imported are test
run time.

I have not (yet?) diagnosed the actual cause, so this is not suitable for
upstream submission, but this does get our tests working.
Antonio Russo <aerusso@aerusso.net> no 2023-09-22
0008-Revert-pillow-version-bump.patch Revert pillow version bump

Upstream must bump their pillow version to guarantee a webp security
fix. We are not similarly constrained.
Antonio Russo <aerusso@aerusso.net> not-needed 2023-09-22
0009-revert-pyo3-bump.patch Revert bump to pyo3 0.23
Debian has not packaged this version of pyo3 yet.
Antonio Enrico Russo <aerusso@aerusso.net> no 2024-12-11
downgrade-setuptools-rust.patch Don't make setuptools_rust an actual runtime dependency Andrej Shadura <andrewsh@debian.org> no 2022-10-06
debian-rust.patch Tell cargo to use debian registry
Modified by Peter Michael Green to include vendored sources.
Antonio Russo <aerusso@aerusso.net> no 2023-08-23
debian-rust-mangle.patch accept older releases/branches of crates bytes, headers and http and newer releases of crate base64 Jonas Smedegaard <dr@jones.dk> not-needed 2024-10-08

All known versions for source package 'matrix-synapse'

Links