diff --git a/lfs/python-m2crypto b/lfs/python-m2crypto index 536380c9b..69c070b57 100644 --- a/lfs/python-m2crypto +++ b/lfs/python-m2crypto @@ -77,6 +77,7 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/M2Crypto-0.21.1_remove_sslv2_method.patch cd $(DIR_APP) && python setup.py install @rm -rf $(DIR_APP) @$(POSTBUILD) diff --git a/src/patches/M2Crypto-0.21.1_remove_sslv2_method.patch b/src/patches/M2Crypto-0.21.1_remove_sslv2_method.patch new file mode 100644 index 000000000..24195fb05 --- /dev/null +++ b/src/patches/M2Crypto-0.21.1_remove_sslv2_method.patch @@ -0,0 +1,12 @@ +diff -Naur M2Crypto-0.21.1.org/SWIG/_ssl.i M2Crypto-0.21.1/SWIG/_ssl.i +--- M2Crypto-0.21.1.org/SWIG/_ssl.i 2011-01-15 20:10:06.000000000 +0100 ++++ M2Crypto-0.21.1/SWIG/_ssl.i 2016-03-01 22:12:16.387266258 +0100 +@@ -48,8 +48,6 @@ + %rename(ssl_get_alert_desc_v) SSL_alert_desc_string_long; + extern const char *SSL_alert_desc_string_long(int); + +-%rename(sslv2_method) SSLv2_method; +-extern SSL_METHOD *SSLv2_method(void); + %rename(sslv3_method) SSLv3_method; + extern SSL_METHOD *SSLv3_method(void); + %rename(sslv23_method) SSLv23_method;