Skip to content

Commit f37cf3e

Browse files
author
gdt
committed
chat/matrix-synapse: Update to 1.58.1
Change to wheel/poetry from egg. Port remediation of upstream's cryptography version demands to new build system. Upstream no longer installs synmark. Upstream NEWS, less bugfixes and minor updates: Synapse 1.58.1 (2022-05-05) =========================== [Debian packaging bugfix] Synapse 1.58.0 (2022-05-03) =========================== As of this release, the groups/communities feature in Synapse is now disabled by default. See [\#11584](matrix-org/synapse#11584) for details. As mentioned in [the upgrade notes](https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md#upgrading-to-v1580), this feature will be removed in Synapse 1.61. Synapse 1.58.0rc1 (2022-04-26) ============================== Features -------- - Implement [MSC3383](matrix-org/matrix-spec-proposals#3383) for including the destination in server-to-server authentication headers. Contributed by @Bubu and @jcgruenhage for Famedly. ([\#11398](matrix-org/synapse#11398)) - Docker images and Debian packages from matrix.org now contain a locked set of Python dependencies, greatly improving build reproducibility. ([Board](https://github.com/orgs/matrix-org/projects/54), [\#11537](matrix-org/synapse#11537)) - Enable processing of device list updates asynchronously. ([\#12365](matrix-org/synapse#12365), [\#12465](matrix-org/synapse#12465)) - Implement [MSC2815](matrix-org/matrix-spec-proposals#2815) to allow room moderators to view redacted event content. Contributed by @tulir @ Beeper. ([\#12427](matrix-org/synapse#12427)) - Build Debian packages for Ubuntu 22.04 "Jammy Jellyfish". ([\#12543](matrix-org/synapse#12543)) Improved Documentation ---------------------- - Strongly recommend [Poetry](https://python-poetry.org/) for development. ([\#12475](matrix-org/synapse#12475)) Deprecations and Removals ------------------------- - The groups/communities feature in Synapse is now disabled by default. ([\#12344](matrix-org/synapse#12344)) - Remove unstable identifiers from [MSC3440](matrix-org/matrix-spec-proposals#3440). ([\#12382](matrix-org/synapse#12382))
1 parent b7bb43e commit f37cf3e

File tree

5 files changed

+49
-563
lines changed

5 files changed

+49
-563
lines changed

chat/matrix-synapse/Makefile

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
# $NetBSD: Makefile,v 1.50 2022/06/16 00:29:04 gdt Exp $
1+
# $NetBSD: Makefile,v 1.51 2022/06/16 11:49:08 gdt Exp $
22

3-
DISTNAME= matrix-synapse-1.57.0
3+
DISTNAME= matrix-synapse-1.58.1
44
CATEGORIES= chat
55
MASTER_SITES= ${MASTER_SITE_GITHUB:=matrix-org/}
6-
EGG_NAME= matrix_synapse-${PKGVERSION_NOREV}
76
GITHUB_PROJECT= synapse
87
GITHUB_TAG= v${PKGVERSION_NOREV}
98

@@ -12,6 +11,10 @@ HOMEPAGE= https://github.com/matrix-org/synapse/
1211
COMMENT= Reference homeserver for the Matrix decentralised comms protocol
1312
LICENSE= apache-2.0
1413

14+
# Build tools:
15+
TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry-[0-9]*:../../devel/py-poetry
16+
17+
# Dependencies as defined by synapse's build system (in theory):
1518
DEPENDS+= ${PYPKGPREFIX}-asn1-modules>=0.0.7:../../security/py-asn1-modules
1619
DEPENDS+= ${PYPKGPREFIX}-asn1>=0.1.9:../../security/py-asn1
1720
DEPENDS+= ${PYPKGPREFIX}-attrs>=19.2.0:../../devel/py-attrs
@@ -52,6 +55,9 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-unpaddedbase64
5255
USE_PKG_RESOURCES= yes
5356

5457
USE_LANGUAGES= # none
58+
59+
REPLACE_PYTHON+= synapse/_scripts/*.py
60+
5561
USE_TOOLS+= perl:run
5662
REPLACE_PERL+= scripts/sync_room_to_group.pl
5763

@@ -88,10 +94,16 @@ SUBST_VARS.pl= SYNAPSE_DEFAULT_CREATOR_PL
8894

8995
BUILD_DEFS+= SYNAPSE_DEFAULT_CREATOR_PL
9096

97+
post-patch:
98+
# Otherwise, this file is installed and pollutes PLIST.
99+
rm ${WRKSRC}/synapse/handlers/room.py.orig
100+
101+
# \todo Grok upstream's new test scheme and port to it.
91102
# test status as of 1.51.0
92103
# 51 warnings, 1 error
93104
do-test:
94105
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} pytest-${PYVERSSUFFIX}
95106

96-
.include "../../lang/python/egg.mk"
107+
.include "../../lang/python/application.mk"
108+
.include "../../lang/python/wheel.mk"
97109
.include "../../mk/bsd.pkg.mk"

0 commit comments

Comments
 (0)