- for SLE 12 SP1, disable SSL verification-by-default for backwards
compatibility (python-2.7.9-sles-disable-verification-by-default.patch) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=178
This commit is contained in:
parent
19fa21847c
commit
46580c6555
14
python-2.7.9-sles-disable-verification-by-default.patch
Normal file
14
python-2.7.9-sles-disable-verification-by-default.patch
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
Index: Python-2.7.9/Lib/ssl.py
|
||||||
|
===================================================================
|
||||||
|
--- Python-2.7.9.orig/Lib/ssl.py 2015-05-14 15:02:05.872792333 +0200
|
||||||
|
+++ Python-2.7.9/Lib/ssl.py 2015-05-14 15:23:27.874013424 +0200
|
||||||
|
@@ -469,7 +469,8 @@
|
||||||
|
return context
|
||||||
|
|
||||||
|
# Used by http.client if no context is explicitly passed.
|
||||||
|
-_create_default_https_context = create_default_context
|
||||||
|
+# PATCH-SLE: still use unverified context. see PEP476
|
||||||
|
+_create_default_https_context = _create_unverified_context
|
||||||
|
|
||||||
|
|
||||||
|
# Backwards compatibility alias, even though it's not a public name.
|
@ -54,6 +54,8 @@ Patch31: python-2.7.7-mhlib-linkcount.patch
|
|||||||
Patch32: python-2.7-urllib2-localnet-ssl.patch
|
Patch32: python-2.7-urllib2-localnet-ssl.patch
|
||||||
# PATCH-FIX-UPSTREAM accept directory-based CA paths as well
|
# PATCH-FIX-UPSTREAM accept directory-based CA paths as well
|
||||||
Patch33: python-2.7.9-ssl_ca_path.patch
|
Patch33: python-2.7.9-ssl_ca_path.patch
|
||||||
|
# PATCH-FEATURE-SLE disable SSL verification-by-default in http clients
|
||||||
|
Patch34: python-2.7.9-sles-disable-verification-by-default.patch
|
||||||
# COMMON-PATCH-END
|
# COMMON-PATCH-END
|
||||||
%define python_version %(echo %{tarversion} | head -c 3)
|
%define python_version %(echo %{tarversion} | head -c 3)
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -144,6 +146,9 @@ other applications.
|
|||||||
%patch31 -p1
|
%patch31 -p1
|
||||||
%patch32 -p1
|
%patch32 -p1
|
||||||
%patch33 -p1
|
%patch33 -p1
|
||||||
|
%if %{suse_version} == 1315
|
||||||
|
%patch34 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# drop Autoconf version requirement
|
# drop Autoconf version requirement
|
||||||
sed -i 's/^version_required/dnl version_required/' configure.ac
|
sed -i 's/^version_required/dnl version_required/' configure.ac
|
||||||
|
@ -55,6 +55,8 @@ Patch31: python-2.7.7-mhlib-linkcount.patch
|
|||||||
Patch32: python-2.7-urllib2-localnet-ssl.patch
|
Patch32: python-2.7-urllib2-localnet-ssl.patch
|
||||||
# PATCH-FIX-UPSTREAM accept directory-based CA paths as well
|
# PATCH-FIX-UPSTREAM accept directory-based CA paths as well
|
||||||
Patch33: python-2.7.9-ssl_ca_path.patch
|
Patch33: python-2.7.9-ssl_ca_path.patch
|
||||||
|
# PATCH-FEATURE-SLE disable SSL verification-by-default in http clients
|
||||||
|
Patch34: python-2.7.9-sles-disable-verification-by-default.patch
|
||||||
# COMMON-PATCH-END
|
# COMMON-PATCH-END
|
||||||
Provides: pyth_doc
|
Provides: pyth_doc
|
||||||
Provides: pyth_ps
|
Provides: pyth_ps
|
||||||
@ -99,6 +101,9 @@ Python, and Macintosh Module Reference in PDF format.
|
|||||||
%patch31 -p1
|
%patch31 -p1
|
||||||
%patch32 -p1
|
%patch32 -p1
|
||||||
%patch33 -p1
|
%patch33 -p1
|
||||||
|
%if %{suse_version} == 1315
|
||||||
|
%patch34 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# drop Autoconf version requirement
|
# drop Autoconf version requirement
|
||||||
sed -i 's/^version_required/dnl version_required/' configure.ac
|
sed -i 's/^version_required/dnl version_required/' configure.ac
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 14 13:27:09 UTC 2015 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- for SLE 12 SP1, disable SSL verification-by-default for backwards
|
||||||
|
compatibility (python-2.7.9-sles-disable-verification-by-default.patch)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 25 16:31:37 UTC 2015 - jmatejek@suse.com
|
Wed Feb 25 16:31:37 UTC 2015 - jmatejek@suse.com
|
||||||
|
|
||||||
|
@ -59,6 +59,8 @@ Patch31: python-2.7.7-mhlib-linkcount.patch
|
|||||||
Patch32: python-2.7-urllib2-localnet-ssl.patch
|
Patch32: python-2.7-urllib2-localnet-ssl.patch
|
||||||
# PATCH-FIX-UPSTREAM accept directory-based CA paths as well
|
# PATCH-FIX-UPSTREAM accept directory-based CA paths as well
|
||||||
Patch33: python-2.7.9-ssl_ca_path.patch
|
Patch33: python-2.7.9-ssl_ca_path.patch
|
||||||
|
# PATCH-FEATURE-SLE disable SSL verification-by-default in http clients
|
||||||
|
Patch34: python-2.7.9-sles-disable-verification-by-default.patch
|
||||||
# COMMON-PATCH-END
|
# COMMON-PATCH-END
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: db-devel
|
BuildRequires: db-devel
|
||||||
@ -179,6 +181,9 @@ implementation of the standard Unix DBM databases.
|
|||||||
%patch31 -p1
|
%patch31 -p1
|
||||||
%patch32 -p1
|
%patch32 -p1
|
||||||
%patch33 -p1
|
%patch33 -p1
|
||||||
|
%if %{suse_version} == 1315
|
||||||
|
%patch34 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# drop Autoconf version requirement
|
# drop Autoconf version requirement
|
||||||
sed -i 's/^version_required/dnl version_required/' configure.ac
|
sed -i 's/^version_required/dnl version_required/' configure.ac
|
||||||
|
Loading…
Reference in New Issue
Block a user