commit: 9ff35b2bb6a85d79ece04bbc369188503e2df3fd
Author: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 25 18:14:50 2025 +0000
Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org>
CommitDate: Tue Nov 25 19:39:15 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ff35b2b
net-im/synapse: add 1.143.0
Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org>
net-im/synapse/Manifest | 3 +
net-im/synapse/synapse-1.143.0.ebuild | 350 ++++++++++++++++++++++++++++++++++
2 files changed, 353 insertions(+)
diff --git a/net-im/synapse/Manifest b/net-im/synapse/Manifest
index 9d47dee4fb10..b39516e0b38d 100644
--- a/net-im/synapse/Manifest
+++ b/net-im/synapse/Manifest
@@ -13,6 +13,7 @@ DIST blake2-0.10.6.crate 47234 BLAKE2B
e1464e4ae61acf4a646ce548f1e7eeafe277737bf
DIST block-buffer-0.10.4.crate 10538 BLAKE2B
d819c4f9c4be85868e8b105fb7e479d2e58d3ed85c3339bd677a3e111f85cb1ff624a54d7802ab79a6e1d9221115f66388568340480fe83eae1cb448f19f5b11
SHA512
b7d436d8e627e16e6ddc300ee8f706a6cef28ff6f09eff848eedee46f84bdcd03601303c92ab8996042e55922866a59259948177c0a4496eed723523e77f6fdb
DIST bumpalo-3.19.0.crate 96414 BLAKE2B
f8c155f77cf977d72749f3cb943a6b171dfc4f67135da345a935ba603f2b52b5feafbba908b31feff391128196c7b0088f6f62d5b37bc4d2277fc0fb9c560b54
SHA512
58db27a643c55adae07061100e3604dad0056bacd42ce1142bcc34249645e9313e886c3174a755593544684fcc632f134f9c6066752ac695254fb9ecd40878cf
DIST bytes-1.10.1.crate 76779 BLAKE2B
96573ff7852cd2d4f37a68cb4d76bc43d2018dc25b7b7e2164df022de4e1974f22d4d3ea7cbfb280667650cdb5063d600f4f76cbdca43dae508f29ced449b0f7
SHA512
03429f01927b94ba6c958c46b2e5bf92a23b39ce9385689e21accd34a5d3be01fd0f665f4bbffb1f7c5bdf1edfb1bf11d5ccad00eff0f9388be39fe2f753d296
+DIST bytes-1.11.0.crate 78391 BLAKE2B
9efcb5e5b93097d7405543fecb8962f5794c91b5e7186f4582e4d6886075a5bb5d3502c09ea0a3fc72c1381862f8700312a27607ff3534e7b476bac330924a4b
SHA512
0f9315b9e6bc54b7339314c0ca2e01af61b4e59548f9e72ed54990e281266f614ec78917529779fb33cc2037a6ecc9595d531674a23eb3884e72759907b4a883
DIST cc-1.2.30.crate 108550 BLAKE2B
72d3f532e1ce87f8a872d5551584b1fef0128a6919b2e9871cf24d905513d19a90f17cd9af8f1455874fd50c7ffb9956313788277822412803d53c04e4fa921e
SHA512
e0b3837400a3a31f522ee8e290ff2c7000c8c5da2f424b552092a64295f4d76443208f4688638edaf081028dd8bfdae2175552a8f22cf16d0440f7877475abc4
DIST cfg-if-1.0.1.crate 8683 BLAKE2B
7d7f98e46b98e0f6fe069fff5dede72390adb7522f13be35c37f99713641e98dff87bd58e594908565a6f42ec898f11597e8a82a01ca2e8e65b38563e09956a8
SHA512
56af0d562fe60022e8df9c5b4e9b2eed6d7ca1874c4d3bbb52148d6f3c6f7d30e0b63d4b1e652ccfc8881a663fb6f450a48447d5a8cce0c2e5a2ac12c6ac655f
DIST cfg_aliases-0.2.1.crate 6355 BLAKE2B
a758d9c88527f0e6e7cfd6d4c83eda1bcb4d6e2438189fe08e8ecbcaa78d56afc5a4873f3b82bf7da96afd690b44cdf1e44466b6da0f37c358b340481017103e
SHA512
74969d12d5d24002a29e08d52e30fbce014dd481a7c35ee0162e69333c5f2d7755f3b02439b31522e12444cf1ac8e65880ce33fe6778dac03757e362cbf8a72c
@@ -103,6 +104,7 @@ DIST pyo3-ffi-0.25.1.crate 78058 BLAKE2B
351fe00c99008a34a003e50cd4f6d25e6dae5a4
DIST pyo3-ffi-0.26.0.crate 78247 BLAKE2B
65f1c399bc763bf8afc36ccac27d28242ebcccebd08ab8d9b3165ca5c9abb10f76e76fe5a250aa1e0cdc1d1e8a613160660f07bc0dbc2812675acb9dfc8e89c2
SHA512
91c2ae828e997dee5e48d839794727e94576228e9329c358a3bc77a59f8f37fa0ae6c2579229782b3f46ab90725844ce9194b9de4d3849d824adf1d40743bf7e
DIST pyo3-log-0.12.4.crate 16655 BLAKE2B
28fe9da0a9abefdaf0d9d9dd30d7c966571261a7d4be35b9877693170714daf6fc35d3f0fbaef765a782db05a9652fb22625f26bfdf06c3f75c1dcc3f64223a2
SHA512
09fdd2d77d853956b4b454c9e7d1cf5ef961444d60e7075ffcde6e441d863ebda26cc7aa8517c4b29901eccc930014c4ff6395269d1ba3d9641c5f81a936bde0
DIST pyo3-log-0.13.1.crate 17301 BLAKE2B
fc3359c0d3ca3cfc533e0f5bf075dd9b391bc62726b3733b8251212d49f08acb7ea5f407efd5b38231c6c32f0093baaabf3bbd7e6ee859ee0f05d0d1c2fd4c53
SHA512
abf6b7578a3d120d8c08bd9b2b42331a0813e01f1c469a9319a880c78870e5195a16d1196992c26f12cddc2df871466c76dc1c0e64072f665dd70cc4cfc46b3f
+DIST pyo3-log-0.13.2.crate 17331 BLAKE2B
10c30d18fd37f5da9a710d3ee9af08131c951c46a5a0f6a113c9d832a12f3aa7ce9573326b50d58a577b0c3919bfb8996a1d31b325aec70b4e135772d7af875c
SHA512
b7566e3acdd3d3a1f1ee4dc396f2c012f03447ac1030cfb990c846d2686d997ba5e2c21eea39f34d7ce4660ad5a6bc6787338c343a099b79f3dcaedd8593eb0e
DIST pyo3-macros-0.25.1.crate 8886 BLAKE2B
aad9c975c90ff93429be24287d76edd945578b546a927f54d82b6d4bf184f1f8d426ac112307205346e85999a1e89b097f68310de647f27474790bff01c3517a
SHA512
08387f3d1ddb0cc253eed376e6e8ebe5722b31664ec742f16c0454b52f1fbcadbe7720ae9e2d3870fe0ca2690916cf6e3e032f5a3e65d767322c068432f6d470
DIST pyo3-macros-0.26.0.crate 8906 BLAKE2B
60eef72d27b5bc922b75f71ae24bb6f380288cb3a619bf2940b0de47b27e86cce0ffdb1fbdc9c0540d3f15c9df4884497aa1e6efec0f1579ac722b414818a428
SHA512
07bcddba0926c3dff7629da3260f9a38593fbb337b6a68d55c223f5944d912885e5319cd635ae1785026fed4adea1fcc19695ae83aca5bea127c5a8868fd2c43
DIST pyo3-macros-backend-0.25.1.crate 76006 BLAKE2B
02225f8591585a6cbea7d6e53503bfbac395253cb0f45c588a2eb38908bf241034412832f2fcf4e9301318b5b9b82a888755d970f544f402a4f0cf9e4a6eefe9
SHA512
4c9006424630ab9bcd5dcdd45fe927a95a40a61757f0950396eb9f0c3f1794772092a19773c102220489cc621ad65d81dbbe459a1be472f6cd3211c50ef33cc2
@@ -160,6 +162,7 @@ DIST synapse-1.139.2.gh.tar.gz 9143758 BLAKE2B
510316a4a1e9e228acde7128418c4219b
DIST synapse-1.140.0.gh.tar.gz 9182247 BLAKE2B
b75fb1b4928abd51668c0805221f573d9556928ee59de40b0a36e400c64c131df3c6e31ca283d8173ea4e5370ba36e60e7820858b0454c15d8476480127ef51b
SHA512
adeb9d65ffd16d65d5f2af0a5e8bd91edb8c56f3f8de12cfe90f4a66e41b38f4b23f2f850d0c556db83f608aa4b804b3e8543fc93060de89ec9ae3b6573ba08d
DIST synapse-1.141.0.gh.tar.gz 9184982 BLAKE2B
9e53cae480adbaf368c4d5a5b2a25828ce327f535ba6fd0ee5607fcf5c72460c64ab9caa106178159519bc08a7025537746a6195101e09ca8f1f375107faa54a
SHA512
068f3e1ac81d4676363909fbcd5690dcf6604e9050e853b61fc2564d9456b37d7db62acccf353bd44b9938686bc24953a4cd2fc7755722d321027f79a5d02990
DIST synapse-1.142.1.gh.tar.gz 9190189 BLAKE2B
d0691d5ec468145ac53337bffcb8d9d067c7cd16b9f570a7fcb3c19c7e5618189ce1db3718c530c5baf6f44d6012036fca6e713b75e807d56227867d12719833
SHA512
f436ecb04c7925ee79229e4c885552747c311882d592e075ce304853ad64eea594db3e04fca3ea395a8384c9c6e6171d088fcad6de569f6ed91511c00bc1967e
+DIST synapse-1.143.0.gh.tar.gz 9191731 BLAKE2B
4ef1ba787f613ac3a4998ef81c99d119f8992f5652472c4192c3e35f46d5a7e526625c783c864440fc1ee5304231b697682980aeaa8e71fe2123bc982efb9809
SHA512
e804e5845e65a8c37d517b30d1649c52cc4b5355c2c76633df55fd08f7da44d3ac935b196935b59eec81d16701ca4bc0567c0ce4de0d12f122bacca10c914bcf
DIST sync_wrapper-1.0.2.crate 6958 BLAKE2B
b2e162f982ea827229dcff468bcf31c6286c57ea3491a909784cdb50b0ba36c3a1a6fbdc7b34fc2aa9a7df1d174393d61ea9dc7ab3439a5e1a1884e2473a70f8
SHA512
aa314a6ab3ba028d2a169ea55a50eecf3b73b475a81c91330430ece9f1734296562627a8c32fad51b5a26796931f364e2803b3a13075ccd9a0aa614d5220903c
DIST synstructure-0.13.2.crate 18950 BLAKE2B
c475f370d901a371262f466dd98e3914dd6f36aa473a33362866c0f781d27b1813233f96b02208f3463a825e8012cab0f8872eed848d9aa0eac88b581a0d261e
SHA512
2698f4e80b93f7cf1d8ae97c4c42a7f61e7b7081f7f1bbb94d7f48ab7ae813a666d73c49ba3812cda9155e0138b55cc246fb96e5858e411a8d32bafb3e2b2afb
DIST target-lexicon-0.13.2.crate 27923 BLAKE2B
0761f0ffdc23b9c9df86b384d59611c7b8b5e29ff068f03367ad2fe84cfb6d11e1af149b9338236978e9566fedc51387db9f239d2a602db41045ac3db907faec
SHA512
d25e3cc3d679cb6b6f24c03e0c24db9d6ca31b8ed42ac9531bd7637557fbba225a6c8ac4f68a8eaf3569195814d599e668a968afbc73b940a77cbc27552cc90a
diff --git a/net-im/synapse/synapse-1.143.0.ebuild
b/net-im/synapse/synapse-1.143.0.ebuild
new file mode 100644
index 000000000000..8a15e36f1041
--- /dev/null
+++ b/net-im/synapse/synapse-1.143.0.ebuild
@@ -0,0 +1,350 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{11..14} )
+
+RUST_MIN_VER="1.82.0"
+CRATES="
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]+wasi-snapshot-preview1
+ [email protected]+wasi-0.2.4
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+"
+
+inherit cargo distutils-r1 multiprocessing optfeature systemd
+
+DESCRIPTION="Reference implementation of Matrix homeserver"
+HOMEPAGE="
+ https://matrix.org/
+ https://github.com/element-hq/synapse
+"
+SRC_URI="
+ https://github.com/element-hq/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+ ${CARGO_CRATE_URIS}
+"
+
+LICENSE="|| ( AGPL-3+ Element-Commercial )"
+# Dependent crate licenses
+LICENSE+="
+ Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD ISC MIT Unicode-3.0
+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~ppc64"
+IUSE="postgres selinux systemd test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ acct-user/synapse
+ acct-group/synapse
+ dev-python/attrs[${PYTHON_USEDEP}]
+ dev-python/bcrypt[${PYTHON_USEDEP}]
+ dev-python/bleach[${PYTHON_USEDEP}]
+ >=dev-python/canonicaljson-2[${PYTHON_USEDEP}]
+ dev-python/cryptography[${PYTHON_USEDEP}]
+ dev-python/ijson[${PYTHON_USEDEP}]
+ dev-python/immutabledict[${PYTHON_USEDEP}]
+ >=dev-python/jinja2-3.0[${PYTHON_USEDEP}]
+ dev-python/jsonschema[${PYTHON_USEDEP}]
+ >=dev-python/matrix-common-1.3.0[${PYTHON_USEDEP}]
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ dev-python/netaddr[${PYTHON_USEDEP}]
+ dev-python/packaging[${PYTHON_USEDEP}]
+ dev-python/phonenumbers[${PYTHON_USEDEP}]
+ >=dev-python/pillow-10.0.1[${PYTHON_USEDEP},webp]
+ dev-python/prometheus-client[${PYTHON_USEDEP}]
+ dev-python/pyasn1-modules[${PYTHON_USEDEP}]
+ dev-python/pyasn1[${PYTHON_USEDEP}]
+ dev-python/pydantic[${PYTHON_USEDEP}]
+ dev-python/pymacaroons[${PYTHON_USEDEP}]
+ dev-python/pyopenssl[${PYTHON_USEDEP}]
+ >=dev-python/python-multipart-0.0.12-r100[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/service-identity[${PYTHON_USEDEP}]
+ dev-python/signedjson[${PYTHON_USEDEP}]
+ dev-python/sortedcontainers[${PYTHON_USEDEP}]
+ dev-python/treq[${PYTHON_USEDEP}]
+ dev-python/twisted[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ dev-python/unpaddedbase64[${PYTHON_USEDEP}]
+ postgres? ( dev-python/psycopg:2[${PYTHON_USEDEP}] )
+ selinux? ( sec-policy/selinux-matrixd )
+ systemd? ( dev-python/python-systemd[${PYTHON_USEDEP}] )
+"
+BDEPEND="
+ acct-user/synapse
+ acct-group/synapse
+ dev-python/setuptools-rust[${PYTHON_USEDEP}]
+ test? (
+ ${RDEPEND}
+ dev-python/hiredis[${PYTHON_USEDEP}]
+ dev-python/idna[${PYTHON_USEDEP}]
+ dev-python/parameterized[${PYTHON_USEDEP}]
+ dev-python/txredisapi[${PYTHON_USEDEP}]
+ postgres? ( dev-db/postgresql[server] )
+ )
+"
+
+# Rust extension
+QA_FLAGS_IGNORED="usr/lib/python3.*/site-packages/synapse/synapse_rust.abi3.so"
+
+src_test() {
+ if use postgres; then
+ einfo "Preparing postgres test instance"
+ initdb --pgdata="${T}/pgsql" || die
+ pg_ctl --wait --pgdata="${T}/pgsql" start \
+ --options="-h '' -k '${T}'" || die
+ createdb --host="${T}" synapse_test || die
+
+ # See
https://matrix-org.github.io/synapse/latest/development/contributing_guide.html#running-tests-under-postgresql
+ local -x SYNAPSE_POSTGRES=1
+ local -x SYNAPSE_POSTGRES_HOST="${T}"
+ fi
+
+ # This remove is necessary otherwise python is not able to locate
+ # synapse_rust.abi3.so.
+ rm -rf synapse || die
+
+ nonfatal distutils-r1_src_test
+ local ret=${?}
+
+ if use postgres; then
+ einfo "Stopping postgres test instance"
+ pg_ctl --wait --pgdata="${T}/pgsql" stop || die
+ fi
+
+ [[ ${ret} -ne 0 ]] && die
+}
+
+python_test() {
+ "${EPYTHON}" -m twisted.trial -j "$(makeopts_jobs)" tests
+}
+
+src_install() {
+ distutils-r1_src_install
+ keepdir /var/{lib,log}/synapse /etc/synapse
+ fowners synapse:synapse /var/{lib,log}/synapse /etc/synapse
+ fperms 0750 /var/{lib,log}/synapse /etc/synapse
+ newinitd "${FILESDIR}/${PN}.initd-r1" "${PN}"
+ systemd_dounit "${FILESDIR}/synapse.service"
+}
+
+pkg_postinst() {
+ optfeature "Redis support" dev-python/txredisapi
+ optfeature "VoIP relaying on your homeserver with turn" net-im/coturn
+
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ einfo
+ elog "In order to generate initial configuration run:"
+ elog "sudo -u synapse synapse_homeserver \\"
+ elog " --server-name matrix.domain.tld \\"
+ elog " --config-path /etc/synapse/homeserver.yaml \\"
+ elog " --generate-config \\"
+ elog " --data-directory /var/lib/synapse \\"
+ elog " --report-stats=no"
+ einfo
+ else
+ einfo
+ elog "Please refer to upgrade notes if any special steps are
required"
+ elog "to upgrade from the version you currently have installed:"
+ elog
+ elog "
https://github.com/element-hq/synapse/blob/develop/docs/upgrade.md"
+ einfo
+ fi
+}