From nobody Wed May 11 13:53:35 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 02A691ADB985; Wed, 11 May 2022 13:53:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KyxFq6gd9z3F79; Wed, 11 May 2022 13:53:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652277215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e642wcfEU5ZILoxib1miAyIT4KzUMH5CUhsGK2FKGHc=; b=YPcrB/m1KeuKaKgIsUtCtTD8YOMSn1BPyF3OoXZ4xv96rGT7T2Bm2zTOn8a9t8iT57JGRe clxe14QmEfJcDfY1FwlKwIYMa5yuLVpKZtlTWfKjOkI+jU2OZ9vUC30xZ3AfUiycoVUAfB Sqr93Hkl/JKJm6zmcnvep4AzGuR7wJljQ3heCdk9HGADj0iKbKszEuQwakeV+DX0HBWVlF X3JLxFRpOF/wMwAlKJFfiyQZi/Bc3pL2AuAKTTdfXUtXyEW/+71MGaHC9aealZDJQvfHoL AZqz7ah1m4bfvQb4FeMdUy8a+p93T5jmfrweSbVVse1+skkTrjWZ1HSDrS9TNw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C57D21AA5C; Wed, 11 May 2022 13:53:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 24BDrZg6044707; Wed, 11 May 2022 13:53:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24BDrZ8A044706; Wed, 11 May 2022 13:53:35 GMT (envelope-from git) Date: Wed, 11 May 2022 13:53:35 GMT Message-Id: <202205111353.24BDrZ8A044706@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ashish SHUKLA Subject: git: 5f0906db0fbc - main - net-im/py-matrix-synapse: Update to 1.58.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ashish X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5f0906db0fbc37b5770b4625e3b8db01b6382140 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652277215; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=e642wcfEU5ZILoxib1miAyIT4KzUMH5CUhsGK2FKGHc=; b=lQJZ5SlthNdmAhu2S2RwhJW9RnacKYLCbvfz/HU6KyNKzE9iMK2RZzjHIZVq7IyTj8LzrK arHO4vLMcGMOjydA+8d8kc3OyaJAypDu30Vvwbm7dhLcAUpHhlKxt/nPD83/fIjz44bm9a nTpzq4o9TetNqQ64xWU4q23jQ2GRZ6veusHBgew9ldx8Thw6SA37MyAvfmc1R+tAKMq53o eCmH/ssPdqmYaAGLvj179cjC0Xp01voSpvC2l0Gb5Y9wd/x37uc4jySJRwWjXxHX7s+80p sW+a0eq3UWXNqhTSLMPPTPunLwjJE3cMTPyYYcs0+BSEVFiEg8HLyQOSCGehHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652277215; a=rsa-sha256; cv=none; b=HoaPBkK1W8WJvn3Pi2jVzyqFL8FzsNJpIpfbk8ZA98DElo8uvfsPRXBZNI+6h0Xw61pXwa SiViGCcgwojNSY/FY42rHTi3c4/PBwZ53we5Bk62q4XkRceNhlx8uJlFOnVl0zOc7aEnot G7gc8d0EmyuIWMiKog5ZaXn+Zx8mmk/wenLXCTZxjd7AP+F74dpMKtrdITHMM2f6Sw5NlW CmEg2KnnKu5MLXOTE2YbHmjYf2eqBbdL+2Bw/MM7t8S3IqYi62h2ZVfGDdhf25CMKBFnTh xQDsdzSY6K5+9RKnkWOIvMxXbbkg0HQkAPiVF65nt7Q8go6t41JvLgjwcrWSog== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by ashish: URL: https://cgit.FreeBSD.org/ports/commit/?id=5f0906db0fbc37b5770b4625e3b8db01b6382140 commit 5f0906db0fbc37b5770b4625e3b8db01b6382140 Author: Sascha Biberhofer AuthorDate: 2022-05-10 14:45:51 +0000 Commit: Ashish SHUKLA CommitDate: 2022-05-11 13:52:45 +0000 net-im/py-matrix-synapse: Update to 1.58.1 --- net-im/py-matrix-synapse/Makefile | 18 +++++++++++++----- net-im/py-matrix-synapse/distinfo | 6 +++--- net-im/py-matrix-synapse/files/patch-pyproject.toml | 11 +++++++++++ .../files/patch-synapse_python__dependencies.py | 11 ----------- net-im/py-matrix-synapse/files/pkg-message.in | 9 +++++++++ 5 files changed, 36 insertions(+), 19 deletions(-) diff --git a/net-im/py-matrix-synapse/Makefile b/net-im/py-matrix-synapse/Makefile index 47fbe7aba7a2..86daae0ccc9a 100644 --- a/net-im/py-matrix-synapse/Makefile +++ b/net-im/py-matrix-synapse/Makefile @@ -2,7 +2,7 @@ PORTNAME= matrix-synapse DISTVERSIONPREFIX= v -DISTVERSION= 1.57.1 +DISTVERSION= 1.58.1 CATEGORIES= net-im python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,10 +12,13 @@ COMMENT= Matrix protocol reference homeserver LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}poetry2setup>=1.0.0:devel/py-poetry2setup@${PY_FLAVOR} + # Keep the RUN_DEPENDS layout similar to the master/synapse/python_dependencies.py file RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=3.0.0:devel/py-jsonschema@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}frozendict>=1:devel/py-frozendict@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}unpaddedbase64>=1.1.0:devel/py-unpaddedbase64@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}unpaddedbase64>=2.1.0:devel/py-unpaddedbase64@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}canonicaljson>=1.4.0:devel/py-canonicaljson@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}signedjson>=1.1.0:security/py-signedjson@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pynacl>=1.2.1:security/py-pynacl@${PY_FLAVOR} \ @@ -34,13 +37,13 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=3.0.0:devel/py-jsonschema@${PY_F ${PYTHON_PKGNAMEPREFIX}msgpack>=0.5.2:devel/py-msgpack@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}phonenumbers>=8.2.0:devel/py-phonenumbers@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}prometheus-client>=0.4.0:net-mgmt/py-prometheus-client@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}attrs>19.2.0:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}attrs>=19.2.0:devel/py-attrs@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}netaddr>=0.7.18:net/py-netaddr@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}Jinja2>=3.0.0:devel/py-Jinja2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}bleach>=1.4.3:www/py-bleach@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.10.0:devel/py-typing-extensions@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}cryptography>=0:security/py-cryptography@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}ijson>=3.1.4:devel/py-ijson@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pyjwt>=1.7.0:www/py-pyjwt@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}packaging>=16.1:devel/py-packaging@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matrix-common>=1.1.0:devel/py-matrix-common@${PY_FLAVOR} \ ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss @@ -74,13 +77,15 @@ PLIST_FILES= "@sample ${ETCDIR}/log.config.sample" DOCS= README.rst UPGRADE.rst CHANGES.md docs/postgres.md PORTDOCS= ${DOCS:T} -OPTIONS_DEFINE= DOCS LDAP OIDC PGSQL REDIS SQLITE URLPREVIEW +OPTIONS_DEFINE= DOCS JWT LDAP OIDC PGSQL REDIS SQLITE URLPREVIEW OPTIONS_DEFAULT= PGSQL SQLITE +JWT_DESC= Add dependencies for JSON web tokens OIDC_DESC= Add dependencies for OpenID Connect based logins REDIS_DESC= Add support replication over Redis for synapse workers URLPREVIEW_DESC= Add dependencies necessary for URL previews +JWT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyjwt>=1.6.4:www/py-pyjwt@${PY_FLAVOR} LDAP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matrix-synapse-ldap3>=0.1:net/py-matrix-synapse-ldap3@${PY_FLAVOR} OIDC_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}authlib>=0.14.0:security/py-authlib@${PY_FLAVOR} PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>2.8:databases/py-psycopg2@${PY_FLAVOR} @@ -96,6 +101,9 @@ URLPREVIEW_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=4.2.0:devel/py-lxml@${PY_FL RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.4:devel/py-importlib-metadata@${PY_FLAVOR} .endif +pre-configure: + cd ${WRKSRC} && poetry2setup > setup.py + post-install: ${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKDIR}/log.config ${STAGEDIR}${ETCDIR}/log.config.sample diff --git a/net-im/py-matrix-synapse/distinfo b/net-im/py-matrix-synapse/distinfo index d0ba9224cbf1..363ca167e23f 100644 --- a/net-im/py-matrix-synapse/distinfo +++ b/net-im/py-matrix-synapse/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1650652816 -SHA256 (matrix-org-synapse-v1.57.1_GH0.tar.gz) = 07926e1601bd2973ea16baabd41268939ceeb90f6a8c98b31a3610de61dc5ad1 -SIZE (matrix-org-synapse-v1.57.1_GH0.tar.gz) = 7834623 +TIMESTAMP = 1651864723 +SHA256 (matrix-org-synapse-v1.58.1_GH0.tar.gz) = 3e64e102ee9e848c70b923a68001990541bb749e9fb3fe2cf4f643ad40955add +SIZE (matrix-org-synapse-v1.58.1_GH0.tar.gz) = 7881275 diff --git a/net-im/py-matrix-synapse/files/patch-pyproject.toml b/net-im/py-matrix-synapse/files/patch-pyproject.toml new file mode 100644 index 000000000000..903aba718c30 --- /dev/null +++ b/net-im/py-matrix-synapse/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2022-05-07 18:29:37 UTC ++++ pyproject.toml +@@ -146,7 +146,7 @@ bleach = ">=1.4.3" + typing-extensions = ">=3.10.0" + # We enforce that we have a `cryptography` version that bundles an `openssl` + # with the latest security patches. +-cryptography = ">=3.4.7" ++cryptography = "*" + # ijson 3.1.4 fixes a bug with "." in property names + ijson = ">=3.1.4" + matrix-common = "~=1.1.0" diff --git a/net-im/py-matrix-synapse/files/patch-synapse_python__dependencies.py b/net-im/py-matrix-synapse/files/patch-synapse_python__dependencies.py deleted file mode 100644 index 2cace56065f0..000000000000 --- a/net-im/py-matrix-synapse/files/patch-synapse_python__dependencies.py +++ /dev/null @@ -1,11 +0,0 @@ ---- synapse/python_dependencies.py.orig 2022-04-20 00:17:17 UTC -+++ synapse/python_dependencies.py -@@ -82,7 +82,7 @@ REQUIREMENTS = [ - "typing-extensions>=3.10.0", - # We enforce that we have a `cryptography` version that bundles an `openssl` - # with the latest security patches. -- "cryptography>=3.4.7", -+ "cryptography", - # ijson 3.1.4 fixes a bug with "." in property names - "ijson>=3.1.4", - "matrix-common~=1.1.0", diff --git a/net-im/py-matrix-synapse/files/pkg-message.in b/net-im/py-matrix-synapse/files/pkg-message.in index 5041454e8d04..7121cf97a00f 100644 --- a/net-im/py-matrix-synapse/files/pkg-message.in +++ b/net-im/py-matrix-synapse/files/pkg-message.in @@ -74,4 +74,13 @@ section of the configuration file, is set to true. See the upgrade notes[1] for [1] https://matrix-org.github.io/synapse/v1.56/upgrade#change-in-behaviour-for-postgresql-databases-with-unsafe-locale EOM } +{ type: upgrade + maximum_version: 1.62.0 + message: <