Skip to content

Commit

Permalink
chat/matrix-synapse: Update to 1.58.1
Browse files Browse the repository at this point in the history
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))
  • Loading branch information
gdt committed Jun 16, 2022
1 parent b7bb43e commit f37cf3e
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 563 deletions.
20 changes: 16 additions & 4 deletions chat/matrix-synapse/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# $NetBSD: Makefile,v 1.50 2022/06/16 00:29:04 gdt Exp $
# $NetBSD: Makefile,v 1.51 2022/06/16 11:49:08 gdt Exp $

DISTNAME= matrix-synapse-1.57.0
DISTNAME= matrix-synapse-1.58.1
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_GITHUB:=matrix-org/}
EGG_NAME= matrix_synapse-${PKGVERSION_NOREV}
GITHUB_PROJECT= synapse
GITHUB_TAG= v${PKGVERSION_NOREV}

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

# Build tools:
TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry-[0-9]*:../../devel/py-poetry

# Dependencies as defined by synapse's build system (in theory):
DEPENDS+= ${PYPKGPREFIX}-asn1-modules>=0.0.7:../../security/py-asn1-modules
DEPENDS+= ${PYPKGPREFIX}-asn1>=0.1.9:../../security/py-asn1
DEPENDS+= ${PYPKGPREFIX}-attrs>=19.2.0:../../devel/py-attrs
Expand Down Expand Up @@ -52,6 +55,9 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-unpaddedbase64
USE_PKG_RESOURCES= yes

USE_LANGUAGES= # none

REPLACE_PYTHON+= synapse/_scripts/*.py

USE_TOOLS+= perl:run
REPLACE_PERL+= scripts/sync_room_to_group.pl

Expand Down Expand Up @@ -88,10 +94,16 @@ SUBST_VARS.pl= SYNAPSE_DEFAULT_CREATOR_PL

BUILD_DEFS+= SYNAPSE_DEFAULT_CREATOR_PL

post-patch:
# Otherwise, this file is installed and pollutes PLIST.
rm ${WRKSRC}/synapse/handlers/room.py.orig

# \todo Grok upstream's new test scheme and port to it.
# test status as of 1.51.0
# 51 warnings, 1 error
do-test:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} pytest-${PYVERSSUFFIX}

.include "../../lang/python/egg.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Loading

0 comments on commit f37cf3e

Please sign in to comment.