summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorjs <js@pkgsrc.org>2021-04-28 23:44:56 +0000
committerjs <js@pkgsrc.org>2021-04-28 23:44:56 +0000
commit208e29e99d31798a90fce2e6d1d116b53bbf8f6b (patch)
tree5754658babad2af4262fb67af7d576f6fad8699c /chat
parent5663dc5144c9d230e98859eabbcdffd583af96ee (diff)
downloadpkgsrc-208e29e99d31798a90fce2e6d1d116b53bbf8f6b.tar.gz
chat/matrix-synapse: Patch out py-cryptography check
It doesn't need a version this high (which would require Rust) and it was added by upstream as an ugly hack to force a patched OpenSSL, in case it is linked statically.
Diffstat (limited to 'chat')
-rw-r--r--chat/matrix-synapse/Makefile3
-rw-r--r--chat/matrix-synapse/distinfo3
-rw-r--r--chat/matrix-synapse/patches/patch-synapse_python_dependencies.py18
3 files changed, 22 insertions, 2 deletions
diff --git a/chat/matrix-synapse/Makefile b/chat/matrix-synapse/Makefile
index 4bbde3998be..5086f6da26d 100644
--- a/chat/matrix-synapse/Makefile
+++ b/chat/matrix-synapse/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.21 2021/04/28 21:25:57 js Exp $
+# $NetBSD: Makefile,v 1.22 2021/04/28 23:44:56 js Exp $
DISTNAME= matrix-synapse-1.32.2
+PKGREVISION= 1
CATEGORIES= chat
MASTER_SITES= ${MASTER_SITE_GITHUB:=matrix-org/}
EGG_NAME= matrix_synapse-${PKGVERSION_NOREV}
diff --git a/chat/matrix-synapse/distinfo b/chat/matrix-synapse/distinfo
index 2a61dc7609f..6a52b98961b 100644
--- a/chat/matrix-synapse/distinfo
+++ b/chat/matrix-synapse/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.14 2021/04/28 21:25:57 js Exp $
+$NetBSD: distinfo,v 1.15 2021/04/28 23:44:56 js Exp $
SHA1 (matrix-synapse-1.32.2.tar.gz) = caa85c36988695132053d193f3ed1284e27c9011
RMD160 (matrix-synapse-1.32.2.tar.gz) = ec8ec6bc81dd875de924c413f10d9437436ba47a
SHA512 (matrix-synapse-1.32.2.tar.gz) = 123a419558763df84f48a4f7cd66beb67ee1bb20ed9cbbb8138d3e9162247bd17bbf81c7360cc49637fa670e0554a39a4666dab81aa473e8fbf82e70590b45f0
Size (matrix-synapse-1.32.2.tar.gz) = 7258293 bytes
+SHA1 (patch-synapse_python_dependencies.py) = 1b58769d30514900266f828f0e60fb5bcce7240c
diff --git a/chat/matrix-synapse/patches/patch-synapse_python_dependencies.py b/chat/matrix-synapse/patches/patch-synapse_python_dependencies.py
new file mode 100644
index 00000000000..4ee428fe591
--- /dev/null
+++ b/chat/matrix-synapse/patches/patch-synapse_python_dependencies.py
@@ -0,0 +1,18 @@
+$NetBSD: patch-synapse_python_dependencies.py,v 1.1 2021/04/28 23:44:56 js Exp $
+
+Patch out cryptography check: It doesn't need a version this high and it was
+added by upstream as an ugly hack to force a patched OpenSSL, in case it is
+linked statically.
+
+--- synapse/python_dependencies.py.orig 2021-04-22 10:09:31.000000000 +0000
++++ synapse/python_dependencies.py
+@@ -83,9 +83,6 @@ REQUIREMENTS = [
+ "Jinja2>=2.9",
+ "bleach>=1.4.3",
+ "typing-extensions>=3.7.4",
+- # We enforce that we have a `cryptography` version that bundles an `openssl`
+- # with the latest security patches.
+- "cryptography>=3.4.7;python_version>='3.6'",
+ ]
+
+ CONDITIONAL_REQUIREMENTS = {