The package rpms/matrix-synapse.git has added or updated architecture specific content in its spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s): https://src.fedoraproject.org/cgit/rpms/matrix-synapse.git/commit/?id=10d237... https://src.fedoraproject.org/cgit/rpms/matrix-synapse.git/commit/?id=20e551....
Change: +ExclusiveArch: %{rust_arches} -ExclusiveArch: %{rust_arches}
Thanks.
Full change: ============
commit 1186a37477ef0496f7290fce18806355757a1878 Author: Xavier Bachelot xavier@bachelot.org Date: Tue Aug 25 18:45:35 2026 +0200
Obsoletes systemd sub-package
diff --git a/matrix-synapse.spec b/matrix-synapse.spec index dfe5175..4f15d18 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -33,6 +33,7 @@ BuildRequires: /usr/bin/openssl BuildRequires: systemd-rpm-macros BuildRequires: tomcli
+Obsoletes: %{name}+systemd < 1.150.0-2 # Handles obsolete extra `user_search`. Keep this line until F42 EOL. Obsoletes: %{name}+user-search < 1.138.0-2 %if %{without saml2}
commit 349d400b491647905094803574e047ccd780e7ce Author: Xavier Bachelot xavier@bachelot.org Date: Tue Aug 25 18:44:51 2026 +0200
Drop tests using parameterized
diff --git a/matrix-synapse.spec b/matrix-synapse.spec index 4387dfe..dfe5175 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -92,6 +92,86 @@ install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf
%if %{with check} %check +# Drop tests using parameterized +rm -f \ + tests/app/test_openid_listener.py \ + tests/config/test_experimental.py \ + tests/config/test_load.py \ + tests/config/test_server.py \ + tests/events/test_auto_accept_invites.py \ + tests/events/test_event_parsing.py \ + tests/events/test_presence_router.py \ + tests/federation/test_federation_media.py \ + tests/federation/test_federation_out_of_band_membership.py \ + tests/federation/test_federation_server.py \ + tests/handlers/test_appservice.py \ + tests/handlers/test_device.py \ + tests/handlers/test_e2e_keys.py \ + tests/handlers/test_oauth_delegation.py \ + tests/handlers/test_presence.py \ + tests/handlers/test_profile.py \ + tests/handlers/test_room_policy.py \ + tests/handlers/test_sliding_sync.py \ + tests/handlers/test_sync.py \ + tests/http/test_proxy.py \ + tests/http/test_matrixfederationclient.py \ + tests/http/test_proxyagent.py \ + tests/http/test_site.py \ + tests/media/test_media_storage.py \ + tests/media/test_oembed.py \ + tests/module_api/test_api.py \ + tests/push/test_bulk_push_rule_evaluator.py \ + tests/push/test_email.py \ + tests/push/test_http.py \ + tests/replication/storage/test_events.py \ + tests/replication/tcp/streams/test_events.py \ + tests/rest/admin/test_admin.py \ + tests/rest/admin/test_background_updates.py \ + tests/rest/admin/test_device.py \ + tests/rest/admin/test_federation.py \ + tests/rest/admin/test_media.py \ + tests/rest/admin/test_room.py \ + tests/rest/admin/test_user.py \ + tests/rest/client/sliding_sync/test_connection_tracking.py \ + tests/rest/client/sliding_sync/test_extension_account_data.py \ + tests/rest/client/sliding_sync/test_extension_e2ee.py \ + tests/rest/client/sliding_sync/test_extension_receipts.py \ + tests/rest/client/sliding_sync/test_extension_sticky_events.py \ + tests/rest/client/sliding_sync/test_extension_thread_subscriptions.py \ + tests/rest/client/sliding_sync/test_extension_typing.py \ + tests/rest/client/sliding_sync/test_extension_to_device.py \ + tests/rest/client/sliding_sync/test_extensions.py \ + tests/rest/client/sliding_sync/test_lists_filters.py \ + tests/rest/client/sliding_sync/test_room_subscriptions.py \ + tests/rest/client/sliding_sync/test_rooms_invites.py \ + tests/rest/client/sliding_sync/test_rooms_meta.py \ + tests/rest/client/sliding_sync/test_rooms_timeline.py \ + tests/rest/client/sliding_sync/test_rooms_required_state.py \ + tests/rest/client/sliding_sync/test_sliding_sync.py \ + tests/rest/client/test_auth_metadata.py \ + tests/rest/client/test_delayed_events.py \ + tests/rest/client/test_media.py \ + tests/rest/client/test_msc4388_rendezvous.py \ + tests/rest/client/test_owned_state.py \ + tests/rest/client/test_push_rule_attrs.py \ + tests/rest/client/test_redactions.py \ + tests/rest/client/test_rooms.py \ + tests/rest/client/test_sync.py \ + tests/rest/synapse/mas/test_users.py \ + tests/storage/test_client_ips.py \ + tests/storage/test_event_chain.py \ + tests/storage/test_event_federation.py \ + tests/storage/test_purge.py \ + tests/storage/test_room.py \ + tests/storage/test_sliding_sync_tables.py \ + tests/test_event_auth.py \ + tests/test_types.py \ + tests/util/caches/test_response_cache.py \ + tests/util/test_async_helpers.py \ + tests/util/test_stream_change_cache.py +# Drop failing test +rm tests/util/test_httpresourcetree.py + set -o pipefail PYTHONPATH=%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}:$PWD trial-3 %_smp_mflags tests | tee trial.stdout
commit c13a7c22afd52f3ad6c9fba024a0b8326a7ce824 Author: Xavier Bachelot xavier@bachelot.org Date: Tue Aug 25 16:43:53 2026 +0200
Update to 0.159
diff --git a/matrix-synapse-1.151.0-no_parameterized.patch b/matrix-synapse-1.151.0-no_parameterized.patch new file mode 100644 index 0000000..afd609b --- /dev/null +++ b/matrix-synapse-1.151.0-no_parameterized.patch @@ -0,0 +1,27 @@ +--- a/pyproject.toml 2026-04-07 14:30:11.000000000 +0200 ++++ b/pyproject.toml 2026-05-22 18:44:05.056539860 +0200 +@@ -106,7 +106,6 @@ + "cffi>=1.15", # via cryptography + "pynacl>=1.3", # via signedjson + "pyparsing>=2.4", # via packaging +- "pyrsistent>=0.18.0", # via jsonschema + "requests>=2.16.0", # 2.16.0+ no longer vendors urllib3, avoiding Python 3.10+ incompatibility + "urllib3>=1.26.5", # via treq; 1.26.5 fixes Python 3.10+ collections.abc compatibility + # 5.2 is the current version in Debian oldstable. If we don't care to support that, then 5.4 is +@@ -156,7 +155,7 @@ + cache-memory = ["pympler>=1.0"] + # If this is updated, don't forget to update the equivalent lines in + # `dependency-groups.dev` below. +-test = ["parameterized>=0.9.0", "idna>=3.3"] ++test = ["idna>=3.3"] + + # The duplication here is awful. + # +@@ -283,7 +282,6 @@ + # + # If this is updated, don't forget to update the equivalent lines in + # project.optional-dependencies.test. +- "parameterized>=0.9.0", + "idna>=3.3", + + # The following are used by the release script diff --git a/0002-Build-RustExtension-with-debug-symbols.patch b/matrix-synapse-1.159-Build-RustExtension-with-debug-symbols.patch similarity index 100% rename from 0002-Build-RustExtension-with-debug-symbols.patch rename to matrix-synapse-1.159-Build-RustExtension-with-debug-symbols.patch diff --git a/0001-pyo3-Disable-abi3-feature.patch b/matrix-synapse-1.159-pyo3-Disable-abi3-feature.patch similarity index 96% rename from 0001-pyo3-Disable-abi3-feature.patch rename to matrix-synapse-1.159-pyo3-Disable-abi3-feature.patch index c2da764..c12ae34 100644 --- a/0001-pyo3-Disable-abi3-feature.patch +++ b/matrix-synapse-1.159-pyo3-Disable-abi3-feature.patch @@ -59,8 +59,8 @@ diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 8199a4e02b..9eae4cc297 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml -@@ -33,8 +33,6 @@ mime = "0.3.17" - pyo3 = { version = "0.27.2", features = [ +@@ -34,8 +34,6 @@ mime = "0.3.17" + pyo3 = { version = "0.28.3", features = [ "macros", "anyhow", - "abi3", diff --git a/matrix-synapse-1.159-pyo3_pythonize_0.29.patch b/matrix-synapse-1.159-pyo3_pythonize_0.29.patch new file mode 100644 index 0000000..a125433 --- /dev/null +++ b/matrix-synapse-1.159-pyo3_pythonize_0.29.patch @@ -0,0 +1,178 @@ +From 11de9503fb053dcc2ad47b8038a4b98631842950 Mon Sep 17 00:00:00 2001 +From: Andrew Ferrazzutti andrewf@element.io +Date: Thu, 20 Aug 2026 07:49:03 -0400 +Subject: [PATCH] Update Rust dependencies for security fixes (#20131) + +--- + Cargo.lock | 29 ++++++++++++++--------------- + changelog.d/20131.misc | 1 + + changelog.d/20131.misc.1 | 1 + + rust/Cargo.toml | 6 +++--- + rust/src/deferred.rs | 2 +- + rust/src/storage/db/mod.rs | 3 ++- + 6 files changed, 22 insertions(+), 20 deletions(-) + create mode 100644 changelog.d/20131.misc + create mode 100644 changelog.d/20131.misc.1 + +diff --git a/Cargo.lock b/Cargo.lock +index 50daff2dd90..3cb739d4952 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -843,9 +843,9 @@ dependencies = [ + + [[package]] + name = "pyo3" +-version = "0.28.3" ++version = "0.29.2" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12" ++checksum = "4688ddedf473e32662b9b067670129a8afb8c18e351482c70d62ba4a88171e8b" + dependencies = [ + "anyhow", + "bytes", +@@ -859,18 +859,18 @@ dependencies = [ + + [[package]] + name = "pyo3-build-config" +-version = "0.28.3" ++version = "0.29.2" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e" ++checksum = "f41027e41b4bd03f6e60f9f417fe24a6341a6bb744edd62b6f709f2a52ea30e9" + dependencies = [ + "target-lexicon", + ] + + [[package]] + name = "pyo3-ffi" +-version = "0.28.3" ++version = "0.29.2" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e" ++checksum = "e591a95526fead067432c3b3a33fc74770b87b1e04e73671090d9c2055a2b327" + dependencies = [ + "libc", + "pyo3-build-config", +@@ -889,9 +889,9 @@ dependencies = [ + + [[package]] + name = "pyo3-macros" +-version = "0.28.3" ++version = "0.29.2" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813" ++checksum = "73225868fc1cd84eef2c3c230ddb91273bf1de46aeb8a4248da76d32a0924a1c" + dependencies = [ + "proc-macro2", + "pyo3-macros-backend", +@@ -901,22 +901,21 @@ dependencies = [ + + [[package]] + name = "pyo3-macros-backend" +-version = "0.28.3" ++version = "0.29.2" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb" ++checksum = "571575aa3749fa6216757dd47d2a3e7ef360f329a40f0666a9fbd14889024952" + dependencies = [ + "heck", + "proc-macro2", +- "pyo3-build-config", + "quote", + "syn 2.0.104", + ] + + [[package]] + name = "pythonize" +-version = "0.28.0" ++version = "0.29.0" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "0b79f670c9626c8b651c0581011b57b6ba6970bb69faf01a7c4c0cfc81c43f95" ++checksum = "6ec376e1216e0c929a74964ce2020012a1a39f32d80e78aa688721219ea7fb89" + dependencies = [ + "pyo3", + "serde", +@@ -1193,9 +1192,9 @@ dependencies = [ + + [[package]] + name = "rustls-webpki" +-version = "0.103.13" ++version = "0.103.14" + source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e" ++checksum = "0527518605e68109d875e248ea259b6758801cf165e4b2c2733ae3b51f12535a" + dependencies = [ + "ring", + "rustls-pki-types", +diff --git a/changelog.d/20131.misc b/changelog.d/20131.misc +new file mode 100644 +index 00000000000..a90fd7d4ada +--- /dev/null ++++ b/changelog.d/20131.misc +@@ -0,0 +1 @@ ++Update rustls-webpki to address GHSA-82j2-j2ch-gfr8. +diff --git a/changelog.d/20131.misc.1 b/changelog.d/20131.misc.1 +new file mode 100644 +index 00000000000..c0c211ed8cd +--- /dev/null ++++ b/changelog.d/20131.misc.1 +@@ -0,0 +1 @@ ++Update pyo3 to address GHSA-36hh-v3qg-5jq4 and GHSA-chgr-c6px-7xpp. +diff --git a/rust/Cargo.toml b/rust/Cargo.toml +index 612ab09f6d0..f6b12c4c1b0 100644 +--- a/rust/Cargo.toml ++++ b/rust/Cargo.toml +@@ -31,7 +31,7 @@ http = "1.1.0" + lazy_static = "1.4.0" + log = "0.4.17" + mime = "0.3.17" +-pyo3 = { version = "0.28.3", features = [ ++pyo3 = { version = "0.29.0", features = [ + "macros", + "anyhow", + # So we can pass `bytes::Bytes` directly back to Python efficiently, +@@ -40,8 +40,8 @@ pyo3 = { version = "0.28.3", features = [ + # https://docs.rs/pyo3/latest/pyo3/bytes/index.html + "bytes", + ] } +-pyo3-log = "0.13.3" +-pythonize = { version = "0.28.0", features = ["arbitrary_precision"] } ++pyo3-log = "0.13.4" ++pythonize = { version = "0.29.0", features = ["arbitrary_precision"] } + regex = "1.6.0" + sha2 = "0.10.8" + serde = { version = "1.0.144", features = ["derive", "rc"] } +diff --git a/rust/src/deferred.rs b/rust/src/deferred.rs +index 62a1ce6b903..3da5defb83b 100644 +--- a/rust/src/deferred.rs ++++ b/rust/src/deferred.rs +@@ -141,7 +141,7 @@ pub(crate) async fn run_python_awaitable<F>( + make_awaitable: F, + ) -> PyResult<Py<PyAny>> + where +- F: for<'py> Fn(Python<'py>) -> PyResult<Bound<'py, PyAny>> + Send + 'static, ++ F: for<'py> Fn(Python<'py>) -> PyResult<Bound<'py, PyAny>> + Send + Sync + 'static, + { + // Resolves when the awaitable completes; carries the resolved value or error. + let (tx, rx) = oneshot::channel::<PyResult<Py<PyAny>>>(); +diff --git a/rust/src/storage/db/mod.rs b/rust/src/storage/db/mod.rs +index fd40d52f082..175f66e76d5 100644 +--- a/rust/src/storage/db/mod.rs ++++ b/rust/src/storage/db/mod.rs +@@ -32,7 +32,7 @@ pub mod python_db_pool; + /// It may be invoked multiple times under certain failure modes (serialization + /// and deadlock errors), so it is `Fn` rather than `FnOnce`. + pub type ErasedInteraction = +- Box<dyn for<'txn> Fn(&'txn mut dyn Transaction) -> BoxFuture<'txn, ErasedResult> + Send>; ++ Box<dyn for<'txn> Fn(&'txn mut dyn Transaction) -> BoxFuture<'txn, ErasedResult> + Send + Sync>; + + /// The type-erased *result* of an [`ErasedInteraction`] + /// [`DatabasePool::run_interaction_erased`]. +@@ -114,6 +114,7 @@ pub trait DatabasePoolExt: DatabasePool { + R: Send + 'static, + F: for<'txn> Fn(&'txn mut dyn Transaction) -> BoxFuture<'txn, anyhow::Result<R>> + + Send ++ + Sync + + 'static, + { + // Erase the concrete return type `R` into `Box<dyn Any>` so we can call diff --git a/matrix-synapse.spec b/matrix-synapse.spec index 68ca6b9..4387dfe 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -4,7 +4,7 @@ %bcond saml2 0
Name: matrix-synapse -Version: 1.151.0 +Version: 1.159.0 Release: %autorelease Summary: A Matrix reference homeserver written in Python using Twisted License: AGPL-3.0-or-later @@ -17,8 +17,10 @@ Source0: %{url}/archive/%{upstream_tag}/synapse-%{version}.tar.gz Source1: synapse.sysconfig Source2: synapse.service Source3: matrix-synapse.sysusers -Patch1: 0001-pyo3-Disable-abi3-feature.patch -Patch2: 0002-Build-RustExtension-with-debug-symbols.patch +Patch1: matrix-synapse-1.159-pyo3-Disable-abi3-feature.patch +Patch2: matrix-synapse-1.159-Build-RustExtension-with-debug-symbols.patch +Patch3: matrix-synapse-1.151.0-no_parameterized.patch +Patch4: matrix-synapse-1.159-pyo3_pythonize_0.29.patch ExclusiveArch: %{rust_arches}
Recommends: %{name}+postgres diff --git a/sources b/sources index c617542..6606c70 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (synapse-1.151.0.tar.gz) = 6bd144744f21ff9948c2975329273d4dda538161fe6655f4f873cd3645fba243a3b02002cb3850bf3ba43f74436e7ae72718149ae34caea9af0e36e3761ef531 +SHA512 (synapse-1.159.0.tar.gz) = 0c08207d0b0408ec6bc7a8f25a652a87e3676f698e017674201cc76562dd780dde5123fb138fb244bc7a2c8fac6cc669c5699f53c41b473d1b32f855502b49b0
commit 10d23749ae18e6a06483c68f28ea28557571fa56 Author: releng-bot releng-bot@fedoraproject.org Date: Thu Aug 27 18:32:46 2026 +0000
Unretirement request: https://forge.fedoraproject.org/releng/fedora-scm-requests/issues/474
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6fbe25 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +/matrix-synapse-*.src.rpm +/.build-*.log +/noarch +/synapse-*.tar.gz +/synapse-*/ +/results_matrix-synapse/ diff --git a/0001-pyo3-Disable-abi3-feature.patch b/0001-pyo3-Disable-abi3-feature.patch new file mode 100644 index 0000000..c2da764 --- /dev/null +++ b/0001-pyo3-Disable-abi3-feature.patch @@ -0,0 +1,73 @@ +From bbe5c1e519aa300ba6316307a94478dd82908464 Mon Sep 17 00:00:00 2001 +From: "Kai A. Hiller" V02460@gmail.com +Date: Fri, 8 Sep 2023 14:10:56 +0200 +Subject: [PATCH 1/2] pyo3: Disable abi3 feature + +Fedora does not require compatibility with Python versions different to +the one at compile time. +--- + build_rust.py | 22 ++-------------------- + rust/Cargo.toml | 2 -- + 2 files changed, 2 insertions(+), 22 deletions(-) + +diff --git a/build_rust.py b/build_rust.py +index a9e9265daf..65d9ac301d 100644 +--- a/build_rust.py ++++ b/build_rust.py +@@ -1,10 +1,8 @@ + # A build script for poetry that adds the rust extension. + +-import itertools + import os + from typing import Any + +-from packaging.specifiers import SpecifierSet + from setuptools_rust import Binding, RustExtension + + +@@ -16,27 +14,11 @@ def build(setup_kwargs: dict[str, Any]) -> None: + target="synapse.synapse_rust", + path=cargo_toml_path, + binding=Binding.PyO3, +- # This flag is a no-op in the latest versions. Instead, we need to +- # specify this in the `bdist_wheel` config below. +- py_limited_api=True, ++ # This flag is a no-op in the latest versions. ++ py_limited_api=False, + # We always build in release mode, as we can't distinguish + # between using `poetry` in development vs production. + debug=False, + ) + setup_kwargs.setdefault("rust_extensions", []).append(extension) + setup_kwargs["zip_safe"] = False +- +- # We look up the minimum supported Python version with +- # `python_requires` (e.g. ">=3.10.0,<4.0.0") and finding the first Python +- # version that matches. We then convert that into the `py_limited_api` form, +- # e.g. cp310 for Python 3.10. +- py_limited_api: str +- python_bounds = SpecifierSet(setup_kwargs["python_requires"]) +- for minor_version in itertools.count(start=10): +- if f"3.{minor_version}.0" in python_bounds: +- py_limited_api = f"cp3{minor_version}" +- break +- +- setup_kwargs.setdefault("options", {}).setdefault("bdist_wheel", {})[ +- "py_limited_api" +- ] = py_limited_api +diff --git a/rust/Cargo.toml b/rust/Cargo.toml +index 8199a4e02b..9eae4cc297 100644 +--- a/rust/Cargo.toml ++++ b/rust/Cargo.toml +@@ -33,8 +33,6 @@ mime = "0.3.17" + pyo3 = { version = "0.27.2", features = [ + "macros", + "anyhow", +- "abi3", +- "abi3-py310", + # So we can pass `bytes::Bytes` directly back to Python efficiently, + # https://docs.rs/pyo3/latest/pyo3/bytes/index.html + "bytes", +-- +2.53.0 + diff --git a/0002-Build-RustExtension-with-debug-symbols.patch b/0002-Build-RustExtension-with-debug-symbols.patch new file mode 100644 index 0000000..68f2198 --- /dev/null +++ b/0002-Build-RustExtension-with-debug-symbols.patch @@ -0,0 +1,33 @@ +From 6452deb91594dd1ba8b2ed27e937033110c19f54 Mon Sep 17 00:00:00 2001 +From: "Kai A. Hiller" V02460@gmail.com +Date: Wed, 29 Mar 2023 12:28:31 +0200 +Subject: [PATCH 2/2] Build RustExtension with debug symbols + +--- + build_rust.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/build_rust.py b/build_rust.py +index 65d9ac301d..ecc98a5ec8 100644 +--- a/build_rust.py ++++ b/build_rust.py +@@ -3,7 +3,7 @@ + import os + from typing import Any + +-from setuptools_rust import Binding, RustExtension ++from setuptools_rust import Binding, RustExtension, Strip + + + def build(setup_kwargs: dict[str, Any]) -> None: +@@ -19,6 +19,7 @@ def build(setup_kwargs: dict[str, Any]) -> None: + # We always build in release mode, as we can't distinguish + # between using `poetry` in development vs production. + debug=False, ++ strip=Strip.No, + ) + setup_kwargs.setdefault("rust_extensions", []).append(extension) + setup_kwargs["zip_safe"] = False +-- +2.51.1 + diff --git a/README.md b/README.md new file mode 100644 index 0000000..d85a0d9 --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# Matrix Synapse + +Fedora package of the [Matrix Synapse homeserver](https://github.com/element-hq/synapse). + +## Package config + +- Run as user: `synapse` ([matrix-synapse.sysusers](./matrix-synapse/blob/main/f/matrix-synapse.sysusers)) +- Systemd service name: `synapse.service` ([synapse.service](./matrix-synapse/blob/main/f/synapse.service)) +- Config: `/etc/synapse/homeserver.yaml` ([synapse.service](./matrix-synapse/blob/main/f/synapse.service)) + +## Useful links + +- Releases: https://github.com/element-hq/synapse/releases +- Python dependencies: https://github.com/element-hq/synapse/blob/develop/pyproject.toml +- Python extras: https://github.com/element-hq/synapse/blob/develop/pyproject.toml +- Rust dependencies: https://github.com/element-hq/synapse/blob/develop/rust/Cargo.toml diff --git a/changelog b/changelog new file mode 100644 index 0000000..728c30a --- /dev/null +++ b/changelog @@ -0,0 +1,289 @@ +* Thu Jan 19 2023 Fedora Release Engineering releng@fedoraproject.org - 1.66.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sun Jan 08 2023 Elliott Sales de Andrade quantum.analyst@gmail.com - 1.66.0-2 +- Drop support for i686 + +* Wed Sep 07 2022 Kai A. Hiller V02460@gmail.com - 1.66.0-1 +- Update to v1.66.0 + +* Sun Aug 14 2022 Dan Callaghan djc@djc.id.au - 1.63.1-2 +- dropped unnecessary BuildRequires on pympler, which is broken in F37+ + (RHBZ#2113507) + +* Tue Jul 26 2022 Kai A. Hiller V02460@gmail.com - 1.63.1-1 +- Update to v1.63.1 + +* Thu Jul 21 2022 Fedora Release Engineering releng@fedoraproject.org - 1.62.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jul 14 2022 Kai A. Hiller V02460@gmail.com - 1.62.0-1 +- Update to v1.62.0 + +* Wed Jun 29 2022 Kai A. Hiller V02460@gmail.com - 1.61.1-1 +- Update to v1.61.1 +- Fix CVE-2022-31052 + +* Tue Jun 14 2022 Kai A. Hiller V02460@gmail.com - 1.61.0-1 +- Update to v1.61.0 + +* Thu Jun 09 2022 Kai A. Hiller V02460@gmail.com - 1.60.0-1 +- Update to v1.60.0 + +* Thu May 19 2022 Kai A. Hiller V02460@gmail.com - 1.59.1-1 +- Update to v1.59.1 + +* Wed May 18 2022 Kai A. Hiller V02460@gmail.com - 1.59.0-1 +- Update to v1.59.0 + +* Wed May 04 2022 Kai A. Hiller V02460@gmail.com - 1.58.0-1 +- Update to v1.58.0 + +* Thu Apr 21 2022 Dan Callaghan djc@djc.id.au - 1.57.0-1 +- Update to v1.57.0 + +* Tue Apr 05 2022 Kai A. Hiller V02460@gmail.com - 1.56.0-1 +- Update to v1.56.0 + +* Thu Mar 24 2022 Kai A. Hiller V02460@gmail.com - 1.55.0-1 +- Update to v1.55.0 + +* Tue Mar 08 2022 Kai A. Hiller V02460@gmail.com - 1.54.0-1 +- Update to v1.54.0 + +* Tue Feb 22 2022 Kai A. Hiller V02460@gmail.com - 1.53.0-1 +- Update to v1.53.0 + +* Wed Feb 09 2022 Kai A. Hiller V02460@gmail.com - 1.52.0-2 +- Backport: Fix losing incoming EDUs if debug logging enabled + +* Tue Feb 08 2022 Kai A. Hiller V02460@gmail.com - 1.52.0-1 +- Update to v1.52.0 +- Create synapse user and group declaratively + +* Thu Jan 27 2022 Kai A. Hiller V02460@gmail.com - 1.51.0-1 +- Update to v1.51.0 + +* Thu Jan 20 2022 Fedora Release Engineering releng@fedoraproject.org - 1.49.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Dec 21 2021 Kai A. Hiller V02460@gmail.com - 1.49.2-1 +- Update to v1.49.2 + +* Tue Dec 14 2021 Kai A. Hiller V02460@gmail.com - 1.49.0-1 +- Update to v1.49.0 + +* Tue Nov 30 2021 Kai A. Hiller V02460@gmail.com - 1.48.0-1 +- Update to v1.48.0 + +* Wed Nov 24 2021 Kai A. Hiller V02460@gmail.com - 1.47.1-1 +- Update to v1.47.1 +- Fix CVE-2021-41281 + +* Fri Nov 19 2021 Kai A. Hiller V02460@gmail.com - 1.47.0-1 +- Update to v1.47.0 + +* Thu Nov 04 2021 Kai A. Hiller V02460@gmail.com - 1.46.0-1 +- Update to v1.46.0 + +* Thu Oct 21 2021 Kai A. Hiller V02460@gmail.com - 1.45.1-1 +- Update to v1.45.1 + +* Mon Oct 18 2021 Kai A. Hiller V02460@gmail.com - 1.44.0-1 +- Update to v1.44.0 + +* Thu Sep 09 2021 Kai A. Hiller V02460@gmail.com - 1.42.0-1 +- Update to v1.42.0 + +* Tue Aug 31 2021 Kai A. Hiller V02460@gmail.com - 1.41.1-1 +- Update to v1.41.1 +- Fix CVE-2021-39163, CVE-2021-39164 + +* Tue Aug 24 2021 Kai A. Hiller V02460@gmail.com - 1.41.0-1 +- Update to v1.41.0 + +* Tue Aug 10 2021 Kai A. Hiller V02460@gmail.com - 1.40.0-1 +- Update to v1.40.0 + +* Thu Jul 29 2021 Kai A. Hiller V02460@gmail.com - 1.39.0-1 +- Update to v1.39.0 + +* Fri Jul 23 2021 Kai A. Hiller V02460@gmail.com - 1.38.1-1 +- Update to v1.38.1 + +* Thu Jul 22 2021 Fedora Release Engineering releng@fedoraproject.org - 1.38.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Jul 18 2021 Dan Callaghan djc@djc.id.au - 1.38.0-2 +- fix startup ordering of synapse.service (RHBZ#1910740) +- relax version requirement for python3-cryptography + +* Wed Jul 14 2021 Kai A. Hiller V02460@gmail.com - 1.38.0-1 +- Update to v1.38.0 + +* Fri Jun 04 2021 Python Maint python-maint@redhat.com - 1.26.0-3 +- Rebuilt for Python 3.10 + +* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl - 1.26.0-2 +- Rebuilt for updated systemd-rpm-macros + See https://pagure.io/fesco/issue/2583. + +* Thu Jan 28 2021 Kai A. Hiller V02460@gmail.com - 1.26.0-1 +- Update to v1.26.0 + +* Tue Jan 26 2021 Fedora Release Engineering releng@fedoraproject.org - 1.25.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jan 13 2021 Kai A. Hiller <V02460@gmail.com - 1.25.0-1 +- Update to v1.25.0 + +* Wed Dec 09 2020 Kai A. Hiller V02460@gmail.com - 1.24.0-1 +- Update to v1.24.0 + +* Mon Nov 30 2020 Gwyn Ciesla gwync@protonmail.com - 1.23.0-1 +- 1.23.0 + +* Sat Aug 29 2020 Kai A. Hiller V02460@gmail.com - 1.18.0-1 +- Update to v1.18.0 + +* Sat Aug 01 2020 Fedora Release Engineering releng@fedoraproject.org - 1.13.0-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering releng@fedoraproject.org - 1.13.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue May 26 2020 Miro Hrončok mhroncok@redhat.com - 1.13.0-2 +- Rebuilt for Python 3.9 + +* Thu May 21 2020 Dan Callaghan djc@djc.id.au - 1.13.0-1 +- Update to v1.13.0 + +* Sun May 17 2020 Dan Callaghan djc@djc.id.au - 1.12.4-1 +- Update to v1.12.4 + +* Wed Apr 22 2020 Kai A. Hiller V02460@gmail.com - 1.12.3-1 +- Update to v1.12.3 + +* Wed Jan 29 2020 Fedora Release Engineering releng@fedoraproject.org - 1.8.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jan 24 2020 Arjen Heidinga dexter@beetjevreeemd.nl - 1.8.0-1 +- Update to v1.8.0 + +* Tue Dec 31 2019 Dan Callaghan djc@djc.id.au - 1.7.2-1 +- Update to v1.7.2 + +* Tue Dec 03 2019 Dan Callaghan djc@djc.id.au - 1.6.1-1 +- Update to v1.6.1 + +* Fri Nov 08 2019 Kai A. Hiller V02460@gmail.com - 1.5.1-1 +- Update to v1.5.1 +- Add Python 3.8 compatibility + +* Fri Oct 11 2019 Kai A. Hiller V02460@gmail.com - 1.4.0-1 +- Update to v1.4.0 + +* Mon Aug 19 2019 Miro Hrončok mhroncok@redhat.com - 1.2.1-2 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Kai A. Hiller V02460@gmail.com - 1.2.1-1 +- Update to v1.2.1 + +* Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 1.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jun 27 2019 Dan Callaghan djc@djc.id.au - 1.0.0-1 +- Update to v1.0.0 release, including new protocol-mandated TLS + certificate verification logic. See: + https://github.com/matrix-org/synapse/blob/master/docs/MSC1711_certificates_... + +* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.34.0.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jan 24 2019 Jeremy Cline jeremy@jcline.org - 0.34.0.1-2 +- synapse user should own its configuration directory (rhbz 1662672) + +* Fri Jan 11 2019 Jeremy Cline jeremy@jcline.org - 0.34.0.1-1 +- Update to v0.34.0.1, fixes CVE-2019-5885 + +* Fri Dec 28 2018 Jeremy Cline jeremy@jcline.org - 0.34.0-1 +- Update to v0.34.0 +- Switch to Python 3 + +* Thu Sep 06 2018 Jeremy Cline jeremy@jcline.org - 0.33.3.1-1 +- Update to v0.33.3.1 +- Use the Python dependency generator. + +* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.31.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Jun 14 2018 Jeremy Cline jeremy@jcline.org - 0.31.2-1 +- Update to v0.31.2 +- https://github.com/matrix-org/synapse/releases/tag/v0.31.2 + +* Wed Jun 13 2018 Jeremy Cline jeremy@jcline.org - 0.31.1-2 +- Stop using Python dependency generator + +* Wed Jun 13 2018 Jeremy Cline jeremy@jcline.org - 0.31.1-1 +- Update to v0.31.1 +- Fix CVE-2018-12291 + +* Thu May 24 2018 Jeremy Cline jeremy@jcline.org - 0.29.1-1 +- Update to the latest upstream release. +- Use the Python dependency generator. + +* Tue May 01 2018 Jeremy Cline jeremy@jcline.org - 0.28.1-1 +- Update to the latest upstream release. + +* Wed Apr 11 2018 Jeremy Cline jeremy@jcline.org - 0.27.3-1 +- Update to the latest upstream release. + +* Mon Mar 26 2018 Jeremy Cline jeremy@jcline.org - 0.27.2-1 +- Update to the latest upstream release. + +* Thu Feb 08 2018 Fedora Release Engineering releng@fedoraproject.org - 0.26.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jan 10 2018 Jeremy Cline jeremy@jcline.org - 0.26.0-1 +- Update to latest upstream + +* Tue Jan 09 2018 Iryna Shcherbina ishcherb@redhat.com - 0.23.1-2 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Tue Oct 03 2017 Jeremy Cline jeremy@jcline.org - 0.23.1-1 +- Update to latest upstream +- Include patch to work with ujson-2.0+ + +* Fri Sep 29 2017 Igor Gnatenko ignatenkobrain@fedoraproject.org - 0.22.1-4 +- Use python2 prefix for packages whenever possible +- Add missing %%{?systemd_requires} + +* Wed Aug 09 2017 Gwyn Ciesla limburgher@gmail.com - 0.22.1-3 +- Switch to python-bcrypt, BZ 1473018. + +* Wed Jul 26 2017 Fedora Release Engineering releng@fedoraproject.org - 0.22.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jul 10 2017 Jeremy Cline jeremy@jcline.org - 0.22.1-1 +- Update to the latest upstream release + +* Thu Jul 06 2017 Jeremy Cline jeremy@jcline.org - 0.22.0-1 +- Update to the latest upstream release (#1462045) + +* Fri Jun 23 2017 Jeremy Cline jeremy@jcline.org - 0.21.1-1 +- Update to latest upstream release + +* Tue May 30 2017 Jeremy Cline jeremy@jcline.org - 0.19.3-4 +- use _sharedstatedir rather than _localstatedir + +* Wed May 17 2017 Jeremy Cline jeremy@jcline.org - 0.19.3-3 +- Remove bundled JS +- Fix some typos in the summary and description + +* Tue Apr 04 2017 Jeremy Cline jeremy@jcline.org - 0.19.3-2 +- Remove the duplicate requirement on pysaml + +* Tue Mar 28 2017 Jeremy Cline jeremy@jcline.org - 0.19.3-1 +- Initial package diff --git a/dead.package b/dead.package deleted file mode 100644 index d035a64..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Retired: Fails to install: https://forge.fedoraproject.org/releng/tickets/issues/13473 diff --git a/matrix-synapse.spec b/matrix-synapse.spec new file mode 100644 index 0000000..68ca6b9 --- /dev/null +++ b/matrix-synapse.spec @@ -0,0 +1,155 @@ +%bcond check 1 +# F43FailsToInstall: python3-pysaml2 +# https://bugzilla.redhat.com/show_bug.cgi?id=2372073 +%bcond saml2 0 + +Name: matrix-synapse +Version: 1.151.0 +Release: %autorelease +Summary: A Matrix reference homeserver written in Python using Twisted +License: AGPL-3.0-or-later +URL: https://github.com/element-hq/synapse + +%global upstream_tag v%{lua:return(rpm.expand("%{version}"):gsub("~",""))} +%global archive_tag %{lua:return(rpm.expand("%{version}"):gsub("~",""))} + +Source0: %{url}/archive/%{upstream_tag}/synapse-%{version}.tar.gz +Source1: synapse.sysconfig +Source2: synapse.service +Source3: matrix-synapse.sysusers +Patch1: 0001-pyo3-Disable-abi3-feature.patch +Patch2: 0002-Build-RustExtension-with-debug-symbols.patch +ExclusiveArch: %{rust_arches} + +Recommends: %{name}+postgres +Recommends: %{name}+systemd + +BuildRequires: jq +BuildRequires: python3-devel +BuildRequires: rust-packaging >= 21 +BuildRequires: /usr/bin/openssl +BuildRequires: systemd-rpm-macros +BuildRequires: tomcli + +# Handles obsolete extra `user_search`. Keep this line until F42 EOL. +Obsoletes: %{name}+user-search < 1.138.0-2 +%if %{without saml2} +Obsoletes: %{name}+saml2 < 1.136.0-2 +%endif + +%description +Matrix is an ambitious new ecosystem for open federated Instant Messaging and +VoIP. Synapse is a reference "homeserver" implementation of Matrix from the +core development team at matrix.org, written in Python/Twisted. It is intended +to showcase the concept of Matrix and let folks see the spec in the context of +a coded base and let you run your own homeserver and generally help bootstrap +the ecosystem. + +%pyproject_extras_subpkg -n %{name} matrix-synapse-ldap3 postgres %{?with_saml2:saml2} oidc url_preview sentry jwt cache_memory + + +%prep +%autosetup -p1 -n synapse-%{archive_tag} + +# We don't support the built-in client so remove all the bundled JS. +rm -rf synapse/static + +# We cannot respect upper bounds on the versions of Python build dependencies. +echo "$(tomcli get pyproject.toml build-system.requires -F json | + jq '.[] |= sub("(,<=.*).*"; "") | .[]' -r)" | + xargs -r -x tomcli set pyproject.toml lists str build-system.requires + + +%cargo_prep + + +%generate_buildrequires +cd rust +%cargo_generate_buildrequires +cd .. + +# Missing: opentracing,redis +%pyproject_buildrequires -x test,matrix-synapse-ldap3,postgres%{?with_saml2:,saml2},oidc,url-preview,sentry,jwt,cache-memory + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%py3_shebang_fix %{buildroot}%{python3_sitearch}/synapse/_scripts +%pyproject_save_files synapse + +install -p -D -T -m 0644 contrib/systemd/log_config.yaml %{buildroot}%{_sysconfdir}/synapse/log_config.yaml +install -p -D -T -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/synapse +install -p -D -T -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/synapse.service +install -p -d -m 755 %{buildroot}%{_sharedstatedir}/synapse +install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf + + +%if %{with check} +%check +set -o pipefail +PYTHONPATH=%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}:$PWD trial-3 %_smp_mflags tests | tee trial.stdout + +# Guard against new types of tests being skipped. +ALLOWLIST="Requires hiredis +Requires jaeger_client +Requires Postgres +Requires SAML2 and OIDC +Requires pysaml2 +Test only applies when postgres is used as the database +not supported +not supported yet +Synapse does not correctly handle this case +`BaseFederationServlet` does not support cancellation yet. +Once we remove ops from the Sliding Sync response, this test should pass +Test is not possible because when everyone leaves the room, the server is `no_longer_in_room` and we don't have any `current_state_events` to query" +REASONS=$(cat trial.stdout | sed -n '/^[SKIPPED]$/{n;p;}') +SKIPPED=$(comm -23 <(echo "$REASONS" | sort | uniq) <(echo "$ALLOWLIST" | sort | uniq)) +if [ ! -z "$SKIPPED" ]; then + echo -e "Failing, because tests were skipped:\n$SKIPPED" + exit 1 +fi + +%endif + + +%post +%systemd_post synapse.service + + +%preun +%systemd_preun synapse.service + + +%postun +%systemd_postun_with_restart synapse.service + + +%files -f %{pyproject_files} +%license LICENSE-AGPL-3.0 +%doc *.rst +%config(noreplace) %{_sysconfdir}/sysconfig/synapse +%{_bindir}/export_signing_key +%{_bindir}/generate_config +%{_bindir}/generate_log_config +%{_bindir}/generate_signing_key +%{_bindir}/hash_password +%{_bindir}/register_new_matrix_user +%{_bindir}/synapse_homeserver +%{_bindir}/synapse_port_db +%{_bindir}/synapse_review_recent_signups +%{_bindir}/synapse_worker +%{_bindir}/synctl +%{_bindir}/update_synapse_database +%{_unitdir}/synapse.service +%attr(755,synapse,synapse) %dir %{_sharedstatedir}/synapse +%attr(755,synapse,synapse) %dir %{_sysconfdir}/synapse +%attr(644,synapse,synapse) %config(noreplace) %{_sysconfdir}/synapse/log_config.yaml +%{_sysusersdir}/%{name}.conf + + +%changelog +%autochangelog diff --git a/matrix-synapse.sysusers b/matrix-synapse.sysusers new file mode 100644 index 0000000..97adeeb --- /dev/null +++ b/matrix-synapse.sysusers @@ -0,0 +1,2 @@ +#Type Name ID GECOS Home directory Shell +u synapse - "Runs the Synapse Matrix homeserver" /run/synapse /sbin/nologin diff --git a/sources b/sources new file mode 100644 index 0000000..c617542 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (synapse-1.151.0.tar.gz) = 6bd144744f21ff9948c2975329273d4dda538161fe6655f4f873cd3645fba243a3b02002cb3850bf3ba43f74436e7ae72718149ae34caea9af0e36e3761ef531 diff --git a/synapse.service b/synapse.service new file mode 100644 index 0000000..7ab8671 --- /dev/null +++ b/synapse.service @@ -0,0 +1,17 @@ +[Unit] +Description=Synapse Matrix homeserver +After=network-online.target postgresql.service + +[Service] +Type=notify +NotifyAccess=main +User=synapse +Group=synapse +WorkingDirectory=/var/lib/synapse +ExecStart=/usr/bin/python3 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml +ExecReload=/bin/kill -HUP $MAINPID +# EnvironmentFile=-/etc/sysconfig/synapse # Can be used to e.g. set SYNAPSE_CACHE_FACTOR +SyslogIdentifier=synapse + +[Install] +WantedBy=multi-user.target diff --git a/synapse.sysconfig b/synapse.sysconfig new file mode 100644 index 0000000..10770e7 --- /dev/null +++ b/synapse.sysconfig @@ -0,0 +1,12 @@ +# Synapse's architecture is quite RAM hungry currently - we deliberately cache +# a lot of recent room data and metadata in RAM in order to speed up common +# requests. We'll improve this in future, but for now the easiest way to either +# reduce the RAM usage (at the risk of slowing things down) is to set the +# almost-undocumented SYNAPSE_CACHE_FACTOR environment variable. Roughly +# speaking, a SYNAPSE_CACHE_FACTOR of 1.0 will max out at around 3-4GB of +# resident memory - this is what we currently run the matrix.org on. The +# default setting is currently 0.1, which is probably around a ~700MB +# footprint. You can dial it down further to 0.02 if desired, which targets +# roughly ~512MB. Conversely you can dial it up if you need performance for +# lots of users and have a box with a lot of RAM. +SYNAPSE_CACHE_FACTOR=0.1
commit 20e551e421f5c6ed55640aab56c6bd1206ef1003 Author: Miro Hrončok miro@hroncok.cz Date: Tue Aug 18 15:36:05 2026 +0200
Retired: Fails to install: https://forge.fedoraproject.org/releng/tickets/issues/13473
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index b6fbe25..0000000 --- a/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -/matrix-synapse-*.src.rpm -/.build-*.log -/noarch -/synapse-*.tar.gz -/synapse-*/ -/results_matrix-synapse/ diff --git a/0001-pyo3-Disable-abi3-feature.patch b/0001-pyo3-Disable-abi3-feature.patch deleted file mode 100644 index c2da764..0000000 --- a/0001-pyo3-Disable-abi3-feature.patch +++ /dev/null @@ -1,73 +0,0 @@ -From bbe5c1e519aa300ba6316307a94478dd82908464 Mon Sep 17 00:00:00 2001 -From: "Kai A. Hiller" V02460@gmail.com -Date: Fri, 8 Sep 2023 14:10:56 +0200 -Subject: [PATCH 1/2] pyo3: Disable abi3 feature - -Fedora does not require compatibility with Python versions different to -the one at compile time. ---- - build_rust.py | 22 ++-------------------- - rust/Cargo.toml | 2 -- - 2 files changed, 2 insertions(+), 22 deletions(-) - -diff --git a/build_rust.py b/build_rust.py -index a9e9265daf..65d9ac301d 100644 ---- a/build_rust.py -+++ b/build_rust.py -@@ -1,10 +1,8 @@ - # A build script for poetry that adds the rust extension. - --import itertools - import os - from typing import Any - --from packaging.specifiers import SpecifierSet - from setuptools_rust import Binding, RustExtension - - -@@ -16,27 +14,11 @@ def build(setup_kwargs: dict[str, Any]) -> None: - target="synapse.synapse_rust", - path=cargo_toml_path, - binding=Binding.PyO3, -- # This flag is a no-op in the latest versions. Instead, we need to -- # specify this in the `bdist_wheel` config below. -- py_limited_api=True, -+ # This flag is a no-op in the latest versions. -+ py_limited_api=False, - # We always build in release mode, as we can't distinguish - # between using `poetry` in development vs production. - debug=False, - ) - setup_kwargs.setdefault("rust_extensions", []).append(extension) - setup_kwargs["zip_safe"] = False -- -- # We look up the minimum supported Python version with -- # `python_requires` (e.g. ">=3.10.0,<4.0.0") and finding the first Python -- # version that matches. We then convert that into the `py_limited_api` form, -- # e.g. cp310 for Python 3.10. -- py_limited_api: str -- python_bounds = SpecifierSet(setup_kwargs["python_requires"]) -- for minor_version in itertools.count(start=10): -- if f"3.{minor_version}.0" in python_bounds: -- py_limited_api = f"cp3{minor_version}" -- break -- -- setup_kwargs.setdefault("options", {}).setdefault("bdist_wheel", {})[ -- "py_limited_api" -- ] = py_limited_api -diff --git a/rust/Cargo.toml b/rust/Cargo.toml -index 8199a4e02b..9eae4cc297 100644 ---- a/rust/Cargo.toml -+++ b/rust/Cargo.toml -@@ -33,8 +33,6 @@ mime = "0.3.17" - pyo3 = { version = "0.27.2", features = [ - "macros", - "anyhow", -- "abi3", -- "abi3-py310", - # So we can pass `bytes::Bytes` directly back to Python efficiently, - # https://docs.rs/pyo3/latest/pyo3/bytes/index.html - "bytes", --- -2.53.0 - diff --git a/0002-Build-RustExtension-with-debug-symbols.patch b/0002-Build-RustExtension-with-debug-symbols.patch deleted file mode 100644 index 68f2198..0000000 --- a/0002-Build-RustExtension-with-debug-symbols.patch +++ /dev/null @@ -1,33 +0,0 @@ -From 6452deb91594dd1ba8b2ed27e937033110c19f54 Mon Sep 17 00:00:00 2001 -From: "Kai A. Hiller" V02460@gmail.com -Date: Wed, 29 Mar 2023 12:28:31 +0200 -Subject: [PATCH 2/2] Build RustExtension with debug symbols - ---- - build_rust.py | 3 ++- - 1 file changed, 2 insertions(+), 1 deletion(-) - -diff --git a/build_rust.py b/build_rust.py -index 65d9ac301d..ecc98a5ec8 100644 ---- a/build_rust.py -+++ b/build_rust.py -@@ -3,7 +3,7 @@ - import os - from typing import Any - --from setuptools_rust import Binding, RustExtension -+from setuptools_rust import Binding, RustExtension, Strip - - - def build(setup_kwargs: dict[str, Any]) -> None: -@@ -19,6 +19,7 @@ def build(setup_kwargs: dict[str, Any]) -> None: - # We always build in release mode, as we can't distinguish - # between using `poetry` in development vs production. - debug=False, -+ strip=Strip.No, - ) - setup_kwargs.setdefault("rust_extensions", []).append(extension) - setup_kwargs["zip_safe"] = False --- -2.51.1 - diff --git a/README.md b/README.md deleted file mode 100644 index d85a0d9..0000000 --- a/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Matrix Synapse - -Fedora package of the [Matrix Synapse homeserver](https://github.com/element-hq/synapse). - -## Package config - -- Run as user: `synapse` ([matrix-synapse.sysusers](./matrix-synapse/blob/main/f/matrix-synapse.sysusers)) -- Systemd service name: `synapse.service` ([synapse.service](./matrix-synapse/blob/main/f/synapse.service)) -- Config: `/etc/synapse/homeserver.yaml` ([synapse.service](./matrix-synapse/blob/main/f/synapse.service)) - -## Useful links - -- Releases: https://github.com/element-hq/synapse/releases -- Python dependencies: https://github.com/element-hq/synapse/blob/develop/pyproject.toml -- Python extras: https://github.com/element-hq/synapse/blob/develop/pyproject.toml -- Rust dependencies: https://github.com/element-hq/synapse/blob/develop/rust/Cargo.toml diff --git a/changelog b/changelog deleted file mode 100644 index 728c30a..0000000 --- a/changelog +++ /dev/null @@ -1,289 +0,0 @@ -* Thu Jan 19 2023 Fedora Release Engineering releng@fedoraproject.org - 1.66.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild - -* Sun Jan 08 2023 Elliott Sales de Andrade quantum.analyst@gmail.com - 1.66.0-2 -- Drop support for i686 - -* Wed Sep 07 2022 Kai A. Hiller V02460@gmail.com - 1.66.0-1 -- Update to v1.66.0 - -* Sun Aug 14 2022 Dan Callaghan djc@djc.id.au - 1.63.1-2 -- dropped unnecessary BuildRequires on pympler, which is broken in F37+ - (RHBZ#2113507) - -* Tue Jul 26 2022 Kai A. Hiller V02460@gmail.com - 1.63.1-1 -- Update to v1.63.1 - -* Thu Jul 21 2022 Fedora Release Engineering releng@fedoraproject.org - 1.62.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - -* Thu Jul 14 2022 Kai A. Hiller V02460@gmail.com - 1.62.0-1 -- Update to v1.62.0 - -* Wed Jun 29 2022 Kai A. Hiller V02460@gmail.com - 1.61.1-1 -- Update to v1.61.1 -- Fix CVE-2022-31052 - -* Tue Jun 14 2022 Kai A. Hiller V02460@gmail.com - 1.61.0-1 -- Update to v1.61.0 - -* Thu Jun 09 2022 Kai A. Hiller V02460@gmail.com - 1.60.0-1 -- Update to v1.60.0 - -* Thu May 19 2022 Kai A. Hiller V02460@gmail.com - 1.59.1-1 -- Update to v1.59.1 - -* Wed May 18 2022 Kai A. Hiller V02460@gmail.com - 1.59.0-1 -- Update to v1.59.0 - -* Wed May 04 2022 Kai A. Hiller V02460@gmail.com - 1.58.0-1 -- Update to v1.58.0 - -* Thu Apr 21 2022 Dan Callaghan djc@djc.id.au - 1.57.0-1 -- Update to v1.57.0 - -* Tue Apr 05 2022 Kai A. Hiller V02460@gmail.com - 1.56.0-1 -- Update to v1.56.0 - -* Thu Mar 24 2022 Kai A. Hiller V02460@gmail.com - 1.55.0-1 -- Update to v1.55.0 - -* Tue Mar 08 2022 Kai A. Hiller V02460@gmail.com - 1.54.0-1 -- Update to v1.54.0 - -* Tue Feb 22 2022 Kai A. Hiller V02460@gmail.com - 1.53.0-1 -- Update to v1.53.0 - -* Wed Feb 09 2022 Kai A. Hiller V02460@gmail.com - 1.52.0-2 -- Backport: Fix losing incoming EDUs if debug logging enabled - -* Tue Feb 08 2022 Kai A. Hiller V02460@gmail.com - 1.52.0-1 -- Update to v1.52.0 -- Create synapse user and group declaratively - -* Thu Jan 27 2022 Kai A. Hiller V02460@gmail.com - 1.51.0-1 -- Update to v1.51.0 - -* Thu Jan 20 2022 Fedora Release Engineering releng@fedoraproject.org - 1.49.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Tue Dec 21 2021 Kai A. Hiller V02460@gmail.com - 1.49.2-1 -- Update to v1.49.2 - -* Tue Dec 14 2021 Kai A. Hiller V02460@gmail.com - 1.49.0-1 -- Update to v1.49.0 - -* Tue Nov 30 2021 Kai A. Hiller V02460@gmail.com - 1.48.0-1 -- Update to v1.48.0 - -* Wed Nov 24 2021 Kai A. Hiller V02460@gmail.com - 1.47.1-1 -- Update to v1.47.1 -- Fix CVE-2021-41281 - -* Fri Nov 19 2021 Kai A. Hiller V02460@gmail.com - 1.47.0-1 -- Update to v1.47.0 - -* Thu Nov 04 2021 Kai A. Hiller V02460@gmail.com - 1.46.0-1 -- Update to v1.46.0 - -* Thu Oct 21 2021 Kai A. Hiller V02460@gmail.com - 1.45.1-1 -- Update to v1.45.1 - -* Mon Oct 18 2021 Kai A. Hiller V02460@gmail.com - 1.44.0-1 -- Update to v1.44.0 - -* Thu Sep 09 2021 Kai A. Hiller V02460@gmail.com - 1.42.0-1 -- Update to v1.42.0 - -* Tue Aug 31 2021 Kai A. Hiller V02460@gmail.com - 1.41.1-1 -- Update to v1.41.1 -- Fix CVE-2021-39163, CVE-2021-39164 - -* Tue Aug 24 2021 Kai A. Hiller V02460@gmail.com - 1.41.0-1 -- Update to v1.41.0 - -* Tue Aug 10 2021 Kai A. Hiller V02460@gmail.com - 1.40.0-1 -- Update to v1.40.0 - -* Thu Jul 29 2021 Kai A. Hiller V02460@gmail.com - 1.39.0-1 -- Update to v1.39.0 - -* Fri Jul 23 2021 Kai A. Hiller V02460@gmail.com - 1.38.1-1 -- Update to v1.38.1 - -* Thu Jul 22 2021 Fedora Release Engineering releng@fedoraproject.org - 1.38.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Sun Jul 18 2021 Dan Callaghan djc@djc.id.au - 1.38.0-2 -- fix startup ordering of synapse.service (RHBZ#1910740) -- relax version requirement for python3-cryptography - -* Wed Jul 14 2021 Kai A. Hiller V02460@gmail.com - 1.38.0-1 -- Update to v1.38.0 - -* Fri Jun 04 2021 Python Maint python-maint@redhat.com - 1.26.0-3 -- Rebuilt for Python 3.10 - -* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl - 1.26.0-2 -- Rebuilt for updated systemd-rpm-macros - See https://pagure.io/fesco/issue/2583. - -* Thu Jan 28 2021 Kai A. Hiller V02460@gmail.com - 1.26.0-1 -- Update to v1.26.0 - -* Tue Jan 26 2021 Fedora Release Engineering releng@fedoraproject.org - 1.25.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild - -* Wed Jan 13 2021 Kai A. Hiller <V02460@gmail.com - 1.25.0-1 -- Update to v1.25.0 - -* Wed Dec 09 2020 Kai A. Hiller V02460@gmail.com - 1.24.0-1 -- Update to v1.24.0 - -* Mon Nov 30 2020 Gwyn Ciesla gwync@protonmail.com - 1.23.0-1 -- 1.23.0 - -* Sat Aug 29 2020 Kai A. Hiller V02460@gmail.com - 1.18.0-1 -- Update to v1.18.0 - -* Sat Aug 01 2020 Fedora Release Engineering releng@fedoraproject.org - 1.13.0-4 -- Second attempt - Rebuilt for - https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue Jul 28 2020 Fedora Release Engineering releng@fedoraproject.org - 1.13.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild - -* Tue May 26 2020 Miro Hrončok mhroncok@redhat.com - 1.13.0-2 -- Rebuilt for Python 3.9 - -* Thu May 21 2020 Dan Callaghan djc@djc.id.au - 1.13.0-1 -- Update to v1.13.0 - -* Sun May 17 2020 Dan Callaghan djc@djc.id.au - 1.12.4-1 -- Update to v1.12.4 - -* Wed Apr 22 2020 Kai A. Hiller V02460@gmail.com - 1.12.3-1 -- Update to v1.12.3 - -* Wed Jan 29 2020 Fedora Release Engineering releng@fedoraproject.org - 1.8.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild - -* Fri Jan 24 2020 Arjen Heidinga dexter@beetjevreeemd.nl - 1.8.0-1 -- Update to v1.8.0 - -* Tue Dec 31 2019 Dan Callaghan djc@djc.id.au - 1.7.2-1 -- Update to v1.7.2 - -* Tue Dec 03 2019 Dan Callaghan djc@djc.id.au - 1.6.1-1 -- Update to v1.6.1 - -* Fri Nov 08 2019 Kai A. Hiller V02460@gmail.com - 1.5.1-1 -- Update to v1.5.1 -- Add Python 3.8 compatibility - -* Fri Oct 11 2019 Kai A. Hiller V02460@gmail.com - 1.4.0-1 -- Update to v1.4.0 - -* Mon Aug 19 2019 Miro Hrončok mhroncok@redhat.com - 1.2.1-2 -- Rebuilt for Python 3.8 - -* Fri Jul 26 2019 Kai A. Hiller V02460@gmail.com - 1.2.1-1 -- Update to v1.2.1 - -* Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 1.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Thu Jun 27 2019 Dan Callaghan djc@djc.id.au - 1.0.0-1 -- Update to v1.0.0 release, including new protocol-mandated TLS - certificate verification logic. See: - https://github.com/matrix-org/synapse/blob/master/docs/MSC1711_certificates_... - -* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.34.0.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Thu Jan 24 2019 Jeremy Cline jeremy@jcline.org - 0.34.0.1-2 -- synapse user should own its configuration directory (rhbz 1662672) - -* Fri Jan 11 2019 Jeremy Cline jeremy@jcline.org - 0.34.0.1-1 -- Update to v0.34.0.1, fixes CVE-2019-5885 - -* Fri Dec 28 2018 Jeremy Cline jeremy@jcline.org - 0.34.0-1 -- Update to v0.34.0 -- Switch to Python 3 - -* Thu Sep 06 2018 Jeremy Cline jeremy@jcline.org - 0.33.3.1-1 -- Update to v0.33.3.1 -- Use the Python dependency generator. - -* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.31.2-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Jun 14 2018 Jeremy Cline jeremy@jcline.org - 0.31.2-1 -- Update to v0.31.2 -- https://github.com/matrix-org/synapse/releases/tag/v0.31.2 - -* Wed Jun 13 2018 Jeremy Cline jeremy@jcline.org - 0.31.1-2 -- Stop using Python dependency generator - -* Wed Jun 13 2018 Jeremy Cline jeremy@jcline.org - 0.31.1-1 -- Update to v0.31.1 -- Fix CVE-2018-12291 - -* Thu May 24 2018 Jeremy Cline jeremy@jcline.org - 0.29.1-1 -- Update to the latest upstream release. -- Use the Python dependency generator. - -* Tue May 01 2018 Jeremy Cline jeremy@jcline.org - 0.28.1-1 -- Update to the latest upstream release. - -* Wed Apr 11 2018 Jeremy Cline jeremy@jcline.org - 0.27.3-1 -- Update to the latest upstream release. - -* Mon Mar 26 2018 Jeremy Cline jeremy@jcline.org - 0.27.2-1 -- Update to the latest upstream release. - -* Thu Feb 08 2018 Fedora Release Engineering releng@fedoraproject.org - 0.26.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Wed Jan 10 2018 Jeremy Cline jeremy@jcline.org - 0.26.0-1 -- Update to latest upstream - -* Tue Jan 09 2018 Iryna Shcherbina ishcherb@redhat.com - 0.23.1-2 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Tue Oct 03 2017 Jeremy Cline jeremy@jcline.org - 0.23.1-1 -- Update to latest upstream -- Include patch to work with ujson-2.0+ - -* Fri Sep 29 2017 Igor Gnatenko ignatenkobrain@fedoraproject.org - 0.22.1-4 -- Use python2 prefix for packages whenever possible -- Add missing %%{?systemd_requires} - -* Wed Aug 09 2017 Gwyn Ciesla limburgher@gmail.com - 0.22.1-3 -- Switch to python-bcrypt, BZ 1473018. - -* Wed Jul 26 2017 Fedora Release Engineering releng@fedoraproject.org - 0.22.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Mon Jul 10 2017 Jeremy Cline jeremy@jcline.org - 0.22.1-1 -- Update to the latest upstream release - -* Thu Jul 06 2017 Jeremy Cline jeremy@jcline.org - 0.22.0-1 -- Update to the latest upstream release (#1462045) - -* Fri Jun 23 2017 Jeremy Cline jeremy@jcline.org - 0.21.1-1 -- Update to latest upstream release - -* Tue May 30 2017 Jeremy Cline jeremy@jcline.org - 0.19.3-4 -- use _sharedstatedir rather than _localstatedir - -* Wed May 17 2017 Jeremy Cline jeremy@jcline.org - 0.19.3-3 -- Remove bundled JS -- Fix some typos in the summary and description - -* Tue Apr 04 2017 Jeremy Cline jeremy@jcline.org - 0.19.3-2 -- Remove the duplicate requirement on pysaml - -* Tue Mar 28 2017 Jeremy Cline jeremy@jcline.org - 0.19.3-1 -- Initial package diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..d035a64 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Retired: Fails to install: https://forge.fedoraproject.org/releng/tickets/issues/13473 diff --git a/matrix-synapse.spec b/matrix-synapse.spec deleted file mode 100644 index 68ca6b9..0000000 --- a/matrix-synapse.spec +++ /dev/null @@ -1,155 +0,0 @@ -%bcond check 1 -# F43FailsToInstall: python3-pysaml2 -# https://bugzilla.redhat.com/show_bug.cgi?id=2372073 -%bcond saml2 0 - -Name: matrix-synapse -Version: 1.151.0 -Release: %autorelease -Summary: A Matrix reference homeserver written in Python using Twisted -License: AGPL-3.0-or-later -URL: https://github.com/element-hq/synapse - -%global upstream_tag v%{lua:return(rpm.expand("%{version}"):gsub("~",""))} -%global archive_tag %{lua:return(rpm.expand("%{version}"):gsub("~",""))} - -Source0: %{url}/archive/%{upstream_tag}/synapse-%{version}.tar.gz -Source1: synapse.sysconfig -Source2: synapse.service -Source3: matrix-synapse.sysusers -Patch1: 0001-pyo3-Disable-abi3-feature.patch -Patch2: 0002-Build-RustExtension-with-debug-symbols.patch -ExclusiveArch: %{rust_arches} - -Recommends: %{name}+postgres -Recommends: %{name}+systemd - -BuildRequires: jq -BuildRequires: python3-devel -BuildRequires: rust-packaging >= 21 -BuildRequires: /usr/bin/openssl -BuildRequires: systemd-rpm-macros -BuildRequires: tomcli - -# Handles obsolete extra `user_search`. Keep this line until F42 EOL. -Obsoletes: %{name}+user-search < 1.138.0-2 -%if %{without saml2} -Obsoletes: %{name}+saml2 < 1.136.0-2 -%endif - -%description -Matrix is an ambitious new ecosystem for open federated Instant Messaging and -VoIP. Synapse is a reference "homeserver" implementation of Matrix from the -core development team at matrix.org, written in Python/Twisted. It is intended -to showcase the concept of Matrix and let folks see the spec in the context of -a coded base and let you run your own homeserver and generally help bootstrap -the ecosystem. - -%pyproject_extras_subpkg -n %{name} matrix-synapse-ldap3 postgres %{?with_saml2:saml2} oidc url_preview sentry jwt cache_memory - - -%prep -%autosetup -p1 -n synapse-%{archive_tag} - -# We don't support the built-in client so remove all the bundled JS. -rm -rf synapse/static - -# We cannot respect upper bounds on the versions of Python build dependencies. -echo "$(tomcli get pyproject.toml build-system.requires -F json | - jq '.[] |= sub("(,<=.*).*"; "") | .[]' -r)" | - xargs -r -x tomcli set pyproject.toml lists str build-system.requires - - -%cargo_prep - - -%generate_buildrequires -cd rust -%cargo_generate_buildrequires -cd .. - -# Missing: opentracing,redis -%pyproject_buildrequires -x test,matrix-synapse-ldap3,postgres%{?with_saml2:,saml2},oidc,url-preview,sentry,jwt,cache-memory - - -%build -%pyproject_wheel - - -%install -%pyproject_install -%py3_shebang_fix %{buildroot}%{python3_sitearch}/synapse/_scripts -%pyproject_save_files synapse - -install -p -D -T -m 0644 contrib/systemd/log_config.yaml %{buildroot}%{_sysconfdir}/synapse/log_config.yaml -install -p -D -T -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/synapse -install -p -D -T -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/synapse.service -install -p -d -m 755 %{buildroot}%{_sharedstatedir}/synapse -install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf - - -%if %{with check} -%check -set -o pipefail -PYTHONPATH=%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}:$PWD trial-3 %_smp_mflags tests | tee trial.stdout - -# Guard against new types of tests being skipped. -ALLOWLIST="Requires hiredis -Requires jaeger_client -Requires Postgres -Requires SAML2 and OIDC -Requires pysaml2 -Test only applies when postgres is used as the database -not supported -not supported yet -Synapse does not correctly handle this case -`BaseFederationServlet` does not support cancellation yet. -Once we remove ops from the Sliding Sync response, this test should pass -Test is not possible because when everyone leaves the room, the server is `no_longer_in_room` and we don't have any `current_state_events` to query" -REASONS=$(cat trial.stdout | sed -n '/^[SKIPPED]$/{n;p;}') -SKIPPED=$(comm -23 <(echo "$REASONS" | sort | uniq) <(echo "$ALLOWLIST" | sort | uniq)) -if [ ! -z "$SKIPPED" ]; then - echo -e "Failing, because tests were skipped:\n$SKIPPED" - exit 1 -fi - -%endif - - -%post -%systemd_post synapse.service - - -%preun -%systemd_preun synapse.service - - -%postun -%systemd_postun_with_restart synapse.service - - -%files -f %{pyproject_files} -%license LICENSE-AGPL-3.0 -%doc *.rst -%config(noreplace) %{_sysconfdir}/sysconfig/synapse -%{_bindir}/export_signing_key -%{_bindir}/generate_config -%{_bindir}/generate_log_config -%{_bindir}/generate_signing_key -%{_bindir}/hash_password -%{_bindir}/register_new_matrix_user -%{_bindir}/synapse_homeserver -%{_bindir}/synapse_port_db -%{_bindir}/synapse_review_recent_signups -%{_bindir}/synapse_worker -%{_bindir}/synctl -%{_bindir}/update_synapse_database -%{_unitdir}/synapse.service -%attr(755,synapse,synapse) %dir %{_sharedstatedir}/synapse -%attr(755,synapse,synapse) %dir %{_sysconfdir}/synapse -%attr(644,synapse,synapse) %config(noreplace) %{_sysconfdir}/synapse/log_config.yaml -%{_sysusersdir}/%{name}.conf - - -%changelog -%autochangelog diff --git a/matrix-synapse.sysusers b/matrix-synapse.sysusers deleted file mode 100644 index 97adeeb..0000000 --- a/matrix-synapse.sysusers +++ /dev/null @@ -1,2 +0,0 @@ -#Type Name ID GECOS Home directory Shell -u synapse - "Runs the Synapse Matrix homeserver" /run/synapse /sbin/nologin diff --git a/sources b/sources deleted file mode 100644 index c617542..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (synapse-1.151.0.tar.gz) = 6bd144744f21ff9948c2975329273d4dda538161fe6655f4f873cd3645fba243a3b02002cb3850bf3ba43f74436e7ae72718149ae34caea9af0e36e3761ef531 diff --git a/synapse.service b/synapse.service deleted file mode 100644 index 7ab8671..0000000 --- a/synapse.service +++ /dev/null @@ -1,17 +0,0 @@ -[Unit] -Description=Synapse Matrix homeserver -After=network-online.target postgresql.service - -[Service] -Type=notify -NotifyAccess=main -User=synapse -Group=synapse -WorkingDirectory=/var/lib/synapse -ExecStart=/usr/bin/python3 -m synapse.app.homeserver --config-path=/etc/synapse/homeserver.yaml -ExecReload=/bin/kill -HUP $MAINPID -# EnvironmentFile=-/etc/sysconfig/synapse # Can be used to e.g. set SYNAPSE_CACHE_FACTOR -SyslogIdentifier=synapse - -[Install] -WantedBy=multi-user.target diff --git a/synapse.sysconfig b/synapse.sysconfig deleted file mode 100644 index 10770e7..0000000 --- a/synapse.sysconfig +++ /dev/null @@ -1,12 +0,0 @@ -# Synapse's architecture is quite RAM hungry currently - we deliberately cache -# a lot of recent room data and metadata in RAM in order to speed up common -# requests. We'll improve this in future, but for now the easiest way to either -# reduce the RAM usage (at the risk of slowing things down) is to set the -# almost-undocumented SYNAPSE_CACHE_FACTOR environment variable. Roughly -# speaking, a SYNAPSE_CACHE_FACTOR of 1.0 will max out at around 3-4GB of -# resident memory - this is what we currently run the matrix.org on. The -# default setting is currently 0.1, which is probably around a ~700MB -# footprint. You can dial it down further to 0.02 if desired, which targets -# roughly ~512MB. Conversely you can dial it up if you need performance for -# lots of users and have a box with a lot of RAM. -SYNAPSE_CACHE_FACTOR=0.1
commit d271b25236cadcc4b7b4fb4f03898e33a7dbc971 Author: Fedora Release Engineering releng@fedoraproject.org Date: Thu Jul 16 07:56:32 2026 +0000
Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
commit 8252fa2ef3ed2769a58dfa60dc99fa1172260e50 Author: Yaakov Selkowitz yselkowi@redhat.com Date: Fri Jun 12 19:05:10 2026 -0400
Rebuilt for openssl 4.0
commit 40bca97f70159f6165869a4ac55391d8c466539e Author: Kai A. Hiller V02460@gmail.com Date: Thu Apr 30 18:34:46 2026 +0200
Update to v1.151.0
diff --git a/matrix-synapse.spec b/matrix-synapse.spec index f9fb485..68ca6b9 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -4,7 +4,7 @@ %bcond saml2 0
Name: matrix-synapse -Version: 1.150.0 +Version: 1.151.0 Release: %autorelease Summary: A Matrix reference homeserver written in Python using Twisted License: AGPL-3.0-or-later diff --git a/sources b/sources index 22cf1e2..c617542 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (synapse-1.150.0.tar.gz) = 99816f58f7c4560e7b04e2cfab78f337de97f49559ed52fb58ba5bf3fc3620833931c2ab0ce477bbfdb5337c1ad143c325c6efd3542d18ab956b78e7448d09a4 +SHA512 (synapse-1.151.0.tar.gz) = 6bd144744f21ff9948c2975329273d4dda538161fe6655f4f873cd3645fba243a3b02002cb3850bf3ba43f74436e7ae72718149ae34caea9af0e36e3761ef531
commit 5e0e3536b549145d907709a04a846968b81cc4be Author: Kai A. Hiller V02460@gmail.com Date: Thu Apr 30 18:16:25 2026 +0200
Update to v1.150.0
diff --git a/0001-pyo3-Disable-abi3-feature.patch b/0001-pyo3-Disable-abi3-feature.patch index 9fe9717..c2da764 100644 --- a/0001-pyo3-Disable-abi3-feature.patch +++ b/0001-pyo3-Disable-abi3-feature.patch @@ -1,4 +1,4 @@ -From 4548bda46bd2290988ea13bede2f5b831177c731 Mon Sep 17 00:00:00 2001 +From bbe5c1e519aa300ba6316307a94478dd82908464 Mon Sep 17 00:00:00 2001 From: "Kai A. Hiller" V02460@gmail.com Date: Fri, 8 Sep 2023 14:10:56 +0200 Subject: [PATCH 1/2] pyo3: Disable abi3 feature @@ -56,7 +56,7 @@ index a9e9265daf..65d9ac301d 100644 - "py_limited_api" - ] = py_limited_api diff --git a/rust/Cargo.toml b/rust/Cargo.toml -index 350701d327..6ddcfc90d7 100644 +index 8199a4e02b..9eae4cc297 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -33,8 +33,6 @@ mime = "0.3.17" @@ -65,9 +65,9 @@ index 350701d327..6ddcfc90d7 100644 "anyhow", - "abi3", - "abi3-py310", - ] } - pyo3-log = "0.13.1" - pythonize = "0.27.0" + # So we can pass `bytes::Bytes` directly back to Python efficiently, + # https://docs.rs/pyo3/latest/pyo3/bytes/index.html + "bytes", -- 2.53.0
diff --git a/matrix-synapse.spec b/matrix-synapse.spec index 52cfa71..f9fb485 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -4,7 +4,7 @@ %bcond saml2 0
Name: matrix-synapse -Version: 1.147.1 +Version: 1.150.0 Release: %autorelease Summary: A Matrix reference homeserver written in Python using Twisted License: AGPL-3.0-or-later @@ -45,7 +45,7 @@ to showcase the concept of Matrix and let folks see the spec in the context of a coded base and let you run your own homeserver and generally help bootstrap the ecosystem.
-%pyproject_extras_subpkg -n %{name} matrix-synapse-ldap3 postgres %{?with_saml2:saml2} oidc systemd url_preview sentry jwt cache_memory +%pyproject_extras_subpkg -n %{name} matrix-synapse-ldap3 postgres %{?with_saml2:saml2} oidc url_preview sentry jwt cache_memory
%prep @@ -69,7 +69,7 @@ cd rust cd ..
# Missing: opentracing,redis -%pyproject_buildrequires -x test,matrix-synapse-ldap3,postgres%{?with_saml2:,saml2},oidc,systemd,url-preview,sentry,jwt,cache-memory +%pyproject_buildrequires -x test,matrix-synapse-ldap3,postgres%{?with_saml2:,saml2},oidc,url-preview,sentry,jwt,cache-memory
%build diff --git a/sources b/sources index 5ed68cd..22cf1e2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (synapse-1.147.1.tar.gz) = fe1291bff443dba6943a4b506192d9908712abf2251042fee97914c97688b09f93699b09c067e73cfc85442e61f58ebfcb14606c82e0582c9f24ca16fe604f83 +SHA512 (synapse-1.150.0.tar.gz) = 99816f58f7c4560e7b04e2cfab78f337de97f49559ed52fb58ba5bf3fc3620833931c2ab0ce477bbfdb5337c1ad143c325c6efd3542d18ab956b78e7448d09a4
commit 950de74ea1952d69c6199d3e9dedfd59a36e7f5b Author: Kai A. Hiller V02460@gmail.com Date: Sun Mar 1 15:55:46 2026 +0100
Update to v1.147.1 (CVE-2026-24044)
diff --git a/0001-pyo3-Disable-abi3-feature.patch b/0001-pyo3-Disable-abi3-feature.patch index c9a520f..9fe9717 100644 --- a/0001-pyo3-Disable-abi3-feature.patch +++ b/0001-pyo3-Disable-abi3-feature.patch @@ -1,4 +1,4 @@ -From 09fad3a6461efd63a59560f2e1f2e16a1e2c0821 Mon Sep 17 00:00:00 2001 +From 4548bda46bd2290988ea13bede2f5b831177c731 Mon Sep 17 00:00:00 2001 From: "Kai A. Hiller" V02460@gmail.com Date: Fri, 8 Sep 2023 14:10:56 +0200 Subject: [PATCH 1/2] pyo3: Disable abi3 feature @@ -56,18 +56,18 @@ index a9e9265daf..65d9ac301d 100644 - "py_limited_api" - ] = py_limited_api diff --git a/rust/Cargo.toml b/rust/Cargo.toml -index e8321d159b..eeeb512920 100644 +index 350701d327..6ddcfc90d7 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -33,8 +33,6 @@ mime = "0.3.17" - pyo3 = { version = "0.26.0", features = [ + pyo3 = { version = "0.27.2", features = [ "macros", "anyhow", - "abi3", - "abi3-py310", ] } pyo3-log = "0.13.1" - pythonize = "0.26.0" + pythonize = "0.27.0" -- -2.51.1 +2.53.0
diff --git a/matrix-synapse.spec b/matrix-synapse.spec index 7319b1f..52cfa71 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -4,7 +4,7 @@ %bcond saml2 0
Name: matrix-synapse -Version: 1.146.0 +Version: 1.147.1 Release: %autorelease Summary: A Matrix reference homeserver written in Python using Twisted License: AGPL-3.0-or-later diff --git a/sources b/sources index 9e65a85..5ed68cd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (synapse-1.146.0.tar.gz) = 0b365ad45b181fc09fa543fe7ada07313880268be553de31f75d9910c8914368bca89298e080c88b2531d20561c5162a4037d85cbf7bcc89aed5e414b936aa64 +SHA512 (synapse-1.147.1.tar.gz) = fe1291bff443dba6943a4b506192d9908712abf2251042fee97914c97688b09f93699b09c067e73cfc85442e61f58ebfcb14606c82e0582c9f24ca16fe604f83
commit c3f49bfa22ad7b69ac17412dedf31d8394e3f0a5 Author: Kai A. Hiller V02460@gmail.com Date: Sun Mar 1 15:25:05 2026 +0100
Update to v1.146.0
diff --git a/matrix-synapse.spec b/matrix-synapse.spec index 511ac26..7319b1f 100644 --- a/matrix-synapse.spec +++ b/matrix-synapse.spec @@ -4,7 +4,7 @@ %bcond saml2 0
Name: matrix-synapse -Version: 1.145.0 +Version: 1.146.0 Release: %autorelease Summary: A Matrix reference homeserver written in Python using Twisted License: AGPL-3.0-or-later diff --git a/sources b/sources index 64854b4..9e65a85 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (synapse-1.145.0.tar.gz) = 698943dbdc3a64ef46e2758f33e8e326aeed43b79b5d1b37439c382695ec03308f1b9c865965f2e18d0530eab617578892ed9e673d80b067e9fc7ee8ba25fbbe +SHA512 (synapse-1.146.0.tar.gz) = 0b365ad45b181fc09fa543fe7ada07313880268be553de31f75d9910c8914368bca89298e080c88b2531d20561c5162a4037d85cbf7bcc89aed5e414b936aa64
arch-excludes@lists.fedoraproject.org