gajim: add workaround for crash caused by partially restored OpenSSL.rand in python-openssl-17.4

Closes #9576.
This commit is contained in:
Helmut Pozimski 2017-11-27 19:08:36 +01:00 committed by Enno Boland
parent d5ff1d47eb
commit b8dee7de26
2 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,12 @@
--- src/gajim.py 2017-11-27 19:00:24.350830956 +0100
+++ src/gajim.py 2017-11-27 19:02:54.072648722 +0100
@@ -307,7 +307,8 @@
OpenSSL.rand.load_file(str(RNG_SEED))
crypto.add_entropy_sources_OpenSSL()
OpenSSL.rand.write_file(str(RNG_SEED))
-except ImportError:
+except (ImportError, AttributeError):
+ PYOPENSSL_PRNG_PRESENT = False
log.info("PyOpenSSL PRNG not available")
import traceback

View file

@ -1,7 +1,7 @@
# Template file for 'gajim'
pkgname=gajim
version=0.16.8
revision=1
revision=2
noarch=yes
build_style=gnu-configure
configure_args="--enable-site-packages PYTHON=python2"