File: 28-no-openssl-for-python-build.patch

package info (click to toggle)
zookeeper 3.9.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 26,872 kB
  • sloc: java: 122,772; cpp: 14,071; ansic: 12,468; javascript: 11,754; xml: 4,965; python: 2,829; sh: 2,444; makefile: 241; perl: 114
file content (22 lines) | stat: -rw-r--r-- 894 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: building the Python parts without OpenSSL support, as the main
 C library in zookeeper-client/zookeeper-client-c (which it relies on) would
try to use FIPS_mode if built with OpenSSL support, and this function has been
 removed some versions of OpenSSL ago.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: no
Last-Update: 2022-06-18

--- a/zookeeper-contrib/zookeeper-contrib-zkpython/src/python/setup.py
+++ b/zookeeper-contrib/zookeeper-contrib-zkpython/src/python/setup.py
@@ -21,11 +21,6 @@
 
 zookeeper_macros = [("THREADED", None)]
 
-# Assume the C extension includes OpenSSL support unless told
-# otherwise.
-if not os.environ.get("ZKPYTHON_NO_SSL"):
-    zookeeper_macros.append(("HAVE_OPENSSL_H", True))
-
 zookeepermodule = Extension("zookeeper",
                             sources=["src/c/zookeeper.c"],
                             define_macros=zookeeper_macros,