Module: check_mk
Branch: master
Commit: 4c1361550ca26d09c657ccf337641e58ad752526
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4c1361550ca26d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 21 08:44:45 2018 +0100
Fix cryptography deprecation warning
The message "CryptographyDeprecationWarning: OpenSSL version 1.0.1 is no
longer" was printed by the python cryptography module with e.g. CentOS
7. We suppress this message to be able to use this cryptography version
with these distros now.
CMK-1496
Change-Id: I21eb8ea37830ac0a4a226ffb9bfa0becce02c95e
---
.../0009-cryptography-2.4.1-disable-version-warning.patch | 9 +++++++++
omd/packages/python-modules/python-modules.make | 1 +
2 files changed, 10 insertions(+)
diff --git
a/omd/packages/python-modules/patches/0009-cryptography-2.4.1-disable-version-warning.patch
b/omd/packages/python-modules/patches/0009-cryptography-2.4.1-disable-version-warning.patch
new file mode 100644
index 0000000..aca1bcb
--- /dev/null
+++
b/omd/packages/python-modules/patches/0009-cryptography-2.4.1-disable-version-warning.patch
@@ -0,0 +1,9 @@
+diff -Nur cryptography-2.4.1.orig/src/cryptography/hazmat/bindings/openssl/binding.py
cryptography-2.4.1/src/cryptography/hazmat/bindings/openssl/binding.py
+---
cryptography-2.4.1.orig/src/cryptography/hazmat/bindings/openssl/binding.py 2018-11-12
01:52:23.000000000 +0100
++++ cryptography-2.4.1/src/cryptography/hazmat/bindings/openssl/binding.py 2018-12-21
08:43:00.152671521 +0100
+@@ -171,4 +171,4 @@
+ # is per module so this approach will not work.
+ Binding.init_static_locks()
+
+-_verify_openssl_version(Binding.lib)
++#_verify_openssl_version(Binding.lib)
diff --git a/omd/packages/python-modules/python-modules.make
b/omd/packages/python-modules/python-modules.make
index ce49daa..49dbd39 100644
--- a/omd/packages/python-modules/python-modules.make
+++ b/omd/packages/python-modules/python-modules.make
@@ -125,6 +125,7 @@ else ifneq ($(filter $(DISTRO_CODE),el6),)
else
PYTHON_MODULES_LIST += asn1crypto-0.24.0.tar.gz
PYTHON_MODULES_LIST += cryptography-2.4.1.tar.gz
+ PYTHON_MODULES_PATCHES +=
$(PACKAGE_DIR)/$(PYTHON_MODULES)/patches/0009-cryptography-2.4.1-disable-version-warning.patch
endif
PYTHON_MODULES_LIST += certifi-2018.10.15.tar.gz