pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/chat/matrix-synapse



Module Name:    pkgsrc
Committed By:   gdt
Date:           Thu Oct  8 13:56:13 UTC 2026

Modified Files:
        pkgsrc/chat/matrix-synapse: Makefile PLIST cargo-depends.mk distinfo
Added Files:
        pkgsrc/chat/matrix-synapse/patches:
            patch-.._vendor_mio-1.0.4_src_sys_unix_selector_kqueue.rs

Log Message:
chat/matrix-synapse: Update to 1.161.0

Tested on NetBSD 10 amd64 with 2026Q3 environment.

Packaging changes:

  - use maturin's tool.mk, to get the part that respects MAKE_JOBS
  - patch mio, which had a pre-NetBSD10 type for kevent.udata, a
    latent bug apparently exposed by a new libc crate, but fixable on
    its own merits by code inspection.

# Synapse 1.162.0 (2026-09-29)

## Features

- Raise default room version to "12". Contributed by @jason-famedly @famedly. ([\#20130](https://github.com/element-hq/synapse/issues/20130))
- Limit the number of end-to-end encryption one-time keys stored per device to 500 per algorithm, rejecting uploads which would exceed the limit with a `400 Bad Request`. 
([\#20162](https://github.com/element-hq/synapse/issues/20162))
- Add support for configuring a `username` for Redis connections, for Redis 6+ ACL authentication. ([\#20187](https://github.com/element-hq/synapse/issues/20187))
- Add a rate limit on the client profile lookup endpoints, configurable via `rc_profile`. ([\#20218](https://github.com/element-hq/synapse/issues/20218))


To generate a diff of this commit:
cvs rdiff -u -r1.137 -r1.138 pkgsrc/chat/matrix-synapse/Makefile
cvs rdiff -u -r1.75 -r1.76 pkgsrc/chat/matrix-synapse/PLIST
cvs rdiff -u -r1.42 -r1.43 pkgsrc/chat/matrix-synapse/cargo-depends.mk
cvs rdiff -u -r1.98 -r1.99 pkgsrc/chat/matrix-synapse/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/chat/matrix-synapse/patches/patch-.._vendor_mio-1.0.4_src_sys_unix_selector_kqueue.rs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/chat/matrix-synapse/Makefile
diff -u pkgsrc/chat/matrix-synapse/Makefile:1.137 pkgsrc/chat/matrix-synapse/Makefile:1.138
--- pkgsrc/chat/matrix-synapse/Makefile:1.137   Thu Oct  8 11:54:58 2026
+++ pkgsrc/chat/matrix-synapse/Makefile Thu Oct  8 13:56:13 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.137 2026/10/08 11:54:58 gdt Exp $
+# $NetBSD: Makefile,v 1.138 2026/10/08 13:56:13 gdt Exp $
 
-DISTNAME=      matrix-synapse-1.161.0
+DISTNAME=      matrix-synapse-1.162.0
 CATEGORIES=    chat
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=element-hq/}
 GITHUB_PROJECT=        synapse
@@ -23,7 +23,7 @@ USE_CC_FEATURES=      c99
 .include "../../lang/python/pyversion.mk"
 
 # Build tools:
-TOOL_DEPENDS+= ${PYPKGPREFIX}-maturin>=1.0:../../devel/py-maturin
+.include "../../devel/py-maturin/tool.mk"
 # poetry is used for some dev things, but not for building, despite
 # the comments in pyproject.toml.
 

Index: pkgsrc/chat/matrix-synapse/PLIST
diff -u pkgsrc/chat/matrix-synapse/PLIST:1.75 pkgsrc/chat/matrix-synapse/PLIST:1.76
--- pkgsrc/chat/matrix-synapse/PLIST:1.75       Thu Oct  8 11:54:58 2026
+++ pkgsrc/chat/matrix-synapse/PLIST    Thu Oct  8 13:56:13 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.75 2026/10/08 11:54:58 gdt Exp $
+@comment $NetBSD: PLIST,v 1.76 2026/10/08 13:56:13 gdt Exp $
 bin/export_signing_key
 bin/generate_config
 bin/generate_log_config
@@ -2094,10 +2094,12 @@ ${PYSITELIB}/synapse/synapse_rust/acl.py
 ${PYSITELIB}/synapse/synapse_rust/events.pyi
 ${PYSITELIB}/synapse/synapse_rust/handlers.pyi
 ${PYSITELIB}/synapse/synapse_rust/http_client.pyi
+${PYSITELIB}/synapse/synapse_rust/logcontext.pyi
 ${PYSITELIB}/synapse/synapse_rust/msc4388_rendezvous.pyi
 ${PYSITELIB}/synapse/synapse_rust/push.pyi
 ${PYSITELIB}/synapse/synapse_rust/rendezvous.pyi
 ${PYSITELIB}/synapse/synapse_rust/room_versions.pyi
+${PYSITELIB}/synapse/synapse_rust/runtime.pyi
 ${PYSITELIB}/synapse/synapse_rust/segmenter.pyi
 ${PYSITELIB}/synapse/synapse_rust/types.pyi
 ${PYSITELIB}/synapse/types/__init__.py

Index: pkgsrc/chat/matrix-synapse/cargo-depends.mk
diff -u pkgsrc/chat/matrix-synapse/cargo-depends.mk:1.42 pkgsrc/chat/matrix-synapse/cargo-depends.mk:1.43
--- pkgsrc/chat/matrix-synapse/cargo-depends.mk:1.42    Thu Oct  8 11:54:58 2026
+++ pkgsrc/chat/matrix-synapse/cargo-depends.mk Thu Oct  8 13:56:13 2026
@@ -1,4 +1,4 @@
-# $NetBSD: cargo-depends.mk,v 1.42 2026/10/08 11:54:58 gdt Exp $
+# $NetBSD: cargo-depends.mk,v 1.43 2026/10/08 13:56:13 gdt Exp $
 
 CARGO_CRATE_DEPENDS+=  aho-corasick-1.1.3
 CARGO_CRATE_DEPENDS+=  anyhow-1.0.104
@@ -74,10 +74,10 @@ CARGO_CRATE_DEPENDS+=       itertools-0.14.0
 CARGO_CRATE_DEPENDS+=  itoa-1.0.15
 CARGO_CRATE_DEPENDS+=  js-sys-0.3.77
 CARGO_CRATE_DEPENDS+=  lazy_static-1.5.0
-CARGO_CRATE_DEPENDS+=  libc-0.2.174
+CARGO_CRATE_DEPENDS+=  libc-0.2.189
 CARGO_CRATE_DEPENDS+=  libm-0.2.15
 CARGO_CRATE_DEPENDS+=  litemap-0.8.0
-CARGO_CRATE_DEPENDS+=  log-0.4.33
+CARGO_CRATE_DEPENDS+=  log-0.4.34
 CARGO_CRATE_DEPENDS+=  lru-slab-0.1.2
 CARGO_CRATE_DEPENDS+=  memchr-2.7.5
 CARGO_CRATE_DEPENDS+=  mime-0.3.17

Index: pkgsrc/chat/matrix-synapse/distinfo
diff -u pkgsrc/chat/matrix-synapse/distinfo:1.98 pkgsrc/chat/matrix-synapse/distinfo:1.99
--- pkgsrc/chat/matrix-synapse/distinfo:1.98    Thu Oct  8 11:54:58 2026
+++ pkgsrc/chat/matrix-synapse/distinfo Thu Oct  8 13:56:13 2026
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.98 2026/10/08 11:54:58 gdt Exp $
+$NetBSD: distinfo,v 1.99 2026/10/08 13:56:13 gdt Exp $
 
 BLAKE2s (aho-corasick-1.1.3.crate) = 36150b5dacb72fa7cd0d33aee15e14857914224878f0af76eabcb9daa68e3ae0
 SHA512 (aho-corasick-1.1.3.crate) = ba422a54688c4678fcf16e34fdf3ed06c333e6e3fc8b75af9272a215add494d43ebaef319021134b61327fd5d3572aec0dc655b714ffb3bc71ba3c265c9ebb69
@@ -222,24 +222,24 @@ Size (js-sys-0.3.77.crate) = 55538 bytes
 BLAKE2s (lazy_static-1.5.0.crate) = e1c1f0f38c4bae0138784e2df43c1a683e7dc5a2fb3fc0c9f49e01c04b770b40
 SHA512 (lazy_static-1.5.0.crate) = 6d2f9887cd7f34f019644e42f02f2bf0111accd73aeaa60973ba0b039b6774670debece1ea9a6978e923208ef5d3ab7326473ee3560c078817f0f7ab8ed0f65f
 Size (lazy_static-1.5.0.crate) = 14025 bytes
-BLAKE2s (libc-0.2.174.crate) = e838a056cf2a08791dc836497c99b2e3d64d3b8554cca6a5d0cc434df3a1ac1e
-SHA512 (libc-0.2.174.crate) = 243f2ffd5741ef859e4dc5b7ee0396071943b1d10429efcaecb322957e256c4be88a7a649029dfd47e6456acc73ee257893fb6c4e8b4d0fe66a12bc5d1c13c73
-Size (libc-0.2.174.crate) = 779933 bytes
+BLAKE2s (libc-0.2.189.crate) = 1783ee1cd2f111dc2c064e01ae615942f295563538c0bc6a93e59ae6a35da5a2
+SHA512 (libc-0.2.189.crate) = 0cf621171ed4e6bbfeb71fb582ebf037d62ab481bc406ca2fb766bd4a8416f220a189325a0d3cb3e3cb39d80e09312516ca6335fad71b329c5fccddabedf4110
+Size (libc-0.2.189.crate) = 851502 bytes
 BLAKE2s (libm-0.2.15.crate) = d27bf6608e6bebbbcc39cfd7f8bdd17683c1cd989913bcf628311920fb950366
 SHA512 (libm-0.2.15.crate) = abee4d8d50a9d25f8d5cbada78877d53ea50d82434b888d170bd83a532bc0534190abbf877e38aba78c370c8cfdf9dc9955c8a8ba4640732e8e6deee3992ab41
 Size (libm-0.2.15.crate) = 156108 bytes
 BLAKE2s (litemap-0.8.0.crate) = 6654e32bfb2cad87e06ab618a5c8da54ecbd27cd8d32fea67e43ffea66aff33f
 SHA512 (litemap-0.8.0.crate) = 61162bd55b28540ec2d61262698045a78efbfadc7e2fa248d9e0215fd7d3ce53a8c50ea0487f2f7df41149e41c0131849e507737e3bbae29cb69ea41dcb8e2d9
 Size (litemap-0.8.0.crate) = 34344 bytes
-BLAKE2s (log-0.4.33.crate) = 3998a5eba5385e4cb2782d8d11790a5294e7629dbbb56a03b1237b34a5125144
-SHA512 (log-0.4.33.crate) = fce3eaf97b1415e413aec344a156d930ebaf52d918f8d9ff9e086f3df58253a6306a215aa4d4b4782a1b7deaad484739666f4fbd8e41272bf95ce4fc6306b74b
-Size (log-0.4.33.crate) = 52997 bytes
+BLAKE2s (log-0.4.34.crate) = bbbda75cc6cb256d6b067dea67da2df6b61d79d5fa9c3d70a3df3d72ec4279fd
+SHA512 (log-0.4.34.crate) = 6f51dc492f808262a67b28a1a80055aee15eb9437d0b0e21e0478cb94db358f751a61172f0c303d94fa949a1874e3f25bd7bc29d9724e3d43849a9f3f4b55d6e
+Size (log-0.4.34.crate) = 53395 bytes
 BLAKE2s (lru-slab-0.1.2.crate) = aa3f3674478a76b09b52e1c77b3fc8382ad771a643b4184baf095d0dd7f35d1b
 SHA512 (lru-slab-0.1.2.crate) = eb93796ffaccafd2e2530efeaf60dab1eeb17fe61652a9299c220cea4dd9099239eb549ae1259ac272c5aa807eebfaec6db4dc5efc95ee59365d3fd1d413f60f
 Size (lru-slab-0.1.2.crate) = 9090 bytes
-BLAKE2s (matrix-synapse-1.161.0.tar.gz) = 15fcea38870b3fae975e21fd874714d27fb7e140d669eca98ee40926c810dd19
-SHA512 (matrix-synapse-1.161.0.tar.gz) = 9bd689a7d081fc0523693391b06769060158831974370afa1e773b4ecae0ec8c1e07338a94bba742d372bbb70875f76ae0c8e28c2ff493e5c4afcb237ffd7055
-Size (matrix-synapse-1.161.0.tar.gz) = 9610891 bytes
+BLAKE2s (matrix-synapse-1.162.0.tar.gz) = 76c405a0151831b17d2ff3ab2421bf7f53df8c4356a678c8f808118e17dd9c96
+SHA512 (matrix-synapse-1.162.0.tar.gz) = e0a847e8c3a2399fa9d5a62e9690b8828c081a7a38219a869180dc53531a996c140a962240e37501069ee88bea1103aa3d1d1c53c0dee3fe70e6956d064d46b6
+Size (matrix-synapse-1.162.0.tar.gz) = 9677770 bytes
 BLAKE2s (memchr-2.7.5.crate) = 741834638b9ed49c5a8ab61a0aeac280a8d91d104fafe3c7219d313131694001
 SHA512 (memchr-2.7.5.crate) = 2606ee16a7dc02db95dac17cebd2cac9deb2e23d7ea62972cdb19145c06eaf75631347a49c4e6ceeff89fb6e90e992f9bca0a9c955eb5130f89ba2bd865936e1
 Size (memchr-2.7.5.crate) = 97603 bytes
@@ -618,3 +618,4 @@ Size (zerovec-derive-0.11.1.crate) = 212
 BLAKE2s (zmij-1.0.19.crate) = e6857f8f672ab60cba6575bda0b64bfd4898ee7c34cb1f799842885965039969
 SHA512 (zmij-1.0.19.crate) = aa191ba286f10d59727981e68f7fb0214d53b02d6c28951e6f16670433cd79abc4615384b3b1e1f74adc81a3f51c15d906fda0340b03938984693332feeac2cc
 Size (zmij-1.0.19.crate) = 23948 bytes
+SHA1 (patch-.._vendor_mio-1.0.4_src_sys_unix_selector_kqueue.rs) = 6c69f01ccf89fa30457e83ce98ba3a17f3f10bdf

Added files:

Index: pkgsrc/chat/matrix-synapse/patches/patch-.._vendor_mio-1.0.4_src_sys_unix_selector_kqueue.rs
diff -u /dev/null pkgsrc/chat/matrix-synapse/patches/patch-.._vendor_mio-1.0.4_src_sys_unix_selector_kqueue.rs:1.1
--- /dev/null   Thu Oct  8 13:56:13 2026
+++ pkgsrc/chat/matrix-synapse/patches/patch-.._vendor_mio-1.0.4_src_sys_unix_selector_kqueue.rs        Thu Oct  8 13:56:13 2026
@@ -0,0 +1,22 @@
+$NetBSD: patch-.._vendor_mio-1.0.4_src_sys_unix_selector_kqueue.rs,v 1.1 2026/10/08 13:56:13 gdt Exp $
+
+mio expects NetBSD kevent.udata to be intptr_t, but NetBSD changed it
+in 2019 to void*.
+
+mio has already fixed this in
+625655db8e66beab8da7a6b1810bb02c045dd5cc.  synapse is using an old
+mio.   Reported to synapse 20261008.
+
+--- ../vendor/mio-1.0.4/src/sys/unix/selector/kqueue.rs.orig   2026-10-08 13:04:06.176850020 +0000
++++ ../vendor/mio-1.0.4/src/sys/unix/selector/kqueue.rs
+@@ -46,10 +46,7 @@ type Flags = u16;
+ type Flags = u32;
+ 
+ // Type of the `udata` field in the `kevent` structure.
+-#[cfg(not(target_os = "netbsd"))]
+ type UData = *mut libc::c_void;
+-#[cfg(target_os = "netbsd")]
+-type UData = libc::intptr_t;
+ 
+ macro_rules! kevent {
+     ($id: expr, $filter: expr, $flags: expr, $data: expr) => {



Home | Main Index | Thread Index | Old Index