Hi andrewsh, I believe you're aware of the problem, but yesterday's -2
upload does not fix it so I've included full details anyway. Patch is:
diff --git i/pyproject.toml w/pyproject.toml
index 8b21bdc8..3c64e248 100644
--- i/pyproject.toml
+++ w/pyproject.toml
@@ -150,7 +150,7 @@ typing-extensions = ">=3.10.0.1"
cryptography = ">=3.4.7"
# ijson 3.1.4 fixes a bug with "." in property names
ijson = ">=3.1.4"
-matrix-common = "~=1.1.0"
+matrix-common = "~=1.2.1"
# We need packaging.requirements.Requirement, added in 16.1.
packaging = ">=16.1"
# At the time of writing, we only use functions from the version `importlib.metadata`
Since the upload of python-matrix-common 1.2.1 (16th in sid, 22nd in
testing and bullseye-backports) the next matrix-synapse server restart
after upgrading fails to start with the following runtime check:
Synapse 1.57.1 needs matrix-common~=1.1.0, but got matrix-common==1.2.1
I assume here that the `~=` dep is merely too strict, and note this
isn't an apt error but python module versioning so the package installs
successfully and (see debconf below) doesn't even need a working
homeserver config. The emergency fix to be up and running again was:
sudo sed -i '/common/s/~=/>=/' /usr/lib/python3/dist-packages/matrix_synapse-1.57.1.dist-info/METADATA
The old synapse version is what Freedombox is on until [#2230] is fixed
and rolled out, but I've checked it still affects the latest upload:
$ grep common /usr/lib/python3/dist-packages/matrix_synapse-*.dist-info/METADATA
Requires-Dist: matrix-common (>=1.1.0,<1.2.0)
This has been discussed in [Matrix on Debian], [FreedomBox] and
[Freedombox Dev] channels. I also found upstream has [merged a fix] in
develop, so this patch is only needed until the next version upload.
[#2230]: https://salsa.debian.org/freedombox-team/freedombox/-/issues/2230
[Matrix on Debian]: https://view.matrix.org/room/!tfCIguhhYiGiAlZqQS:matrix.org/?offset=-29&anchor=$NbsC6BU-TUe1n_vyWGOac8FaLzh9fn8Prz0-fs1GbIQ
[FreedomBox]: https://view.matrix.org/room/!jrrfdpcKPllUsyVuBf:matrix.org/?offset=-29&anchor=$165596373446454OHKvP:matrix.org
[FreedomBox Dev]: https://matrix.to/#/#freedombox-dev:synapse.sds-ip.de
[merged a fix]: https://github.com/matrix-org/synapse/commit/f30bcbd84a651de59777b2a749850f6ca56ce3f0