- Add skip_unverified_test.patch because apparently switching off
SSL verification doesn't work on older SLE. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=339
This commit is contained in:
parent
6a9d569c25
commit
2a9d6402e8
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 19 07:14:09 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add skip_unverified_test.patch because apparently switching off
|
||||||
|
SSL verification doesn't work on older SLE.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 22 20:55:13 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Tue Nov 22 20:55:13 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-base
|
# spec file for package python-base
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -139,6 +139,9 @@ Patch72: bpo34990-2038-problem-compileall.patch
|
|||||||
# PATCH-FIX-UPSTREAM CVE-2022-45061-DoS-by-IDNA-decode.patch bsc#1205244 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM CVE-2022-45061-DoS-by-IDNA-decode.patch bsc#1205244 mcepl@suse.com
|
||||||
# Avoid DoS by decoding IDNA for too long domain names
|
# Avoid DoS by decoding IDNA for too long domain names
|
||||||
Patch73: CVE-2022-45061-DoS-by-IDNA-decode.patch
|
Patch73: CVE-2022-45061-DoS-by-IDNA-decode.patch
|
||||||
|
# PATCH-FIX-UPSTREAM skip_unverified_test.patch mcepl@suse.com
|
||||||
|
# switching verification off on the old SLE doesn't work
|
||||||
|
Patch74: skip_unverified_test.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
|
||||||
@ -281,6 +284,9 @@ other applications.
|
|||||||
%patch71 -p1
|
%patch71 -p1
|
||||||
%patch72 -p1
|
%patch72 -p1
|
||||||
%patch73 -p1
|
%patch73 -p1
|
||||||
|
%if 0%{?sle_version} && 0%{?sle_version} < 150000
|
||||||
|
%patch74 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# For patch 66
|
# For patch 66
|
||||||
cp -v %{SOURCE66} Lib/test/recursion.tar
|
cp -v %{SOURCE66} Lib/test/recursion.tar
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 19 07:14:09 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add skip_unverified_test.patch because apparently switching off
|
||||||
|
SSL verification doesn't work on older SLE.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 22 20:55:13 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Tue Nov 22 20:55:13 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-doc
|
# spec file for package python-doc
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -138,6 +138,9 @@ Patch72: bpo34990-2038-problem-compileall.patch
|
|||||||
# PATCH-FIX-UPSTREAM CVE-2022-45061-DoS-by-IDNA-decode.patch bsc#1205244 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM CVE-2022-45061-DoS-by-IDNA-decode.patch bsc#1205244 mcepl@suse.com
|
||||||
# Avoid DoS by decoding IDNA for too long domain names
|
# Avoid DoS by decoding IDNA for too long domain names
|
||||||
Patch73: CVE-2022-45061-DoS-by-IDNA-decode.patch
|
Patch73: CVE-2022-45061-DoS-by-IDNA-decode.patch
|
||||||
|
# PATCH-FIX-UPSTREAM skip_unverified_test.patch mcepl@suse.com
|
||||||
|
# switching verification off on the old SLE doesn't work
|
||||||
|
Patch74: skip_unverified_test.patch
|
||||||
# COMMON-PATCH-END
|
# COMMON-PATCH-END
|
||||||
Provides: pyth_doc = %{version}
|
Provides: pyth_doc = %{version}
|
||||||
Provides: pyth_ps = %{version}
|
Provides: pyth_ps = %{version}
|
||||||
@ -218,6 +221,9 @@ Python, and Macintosh Module Reference in PDF format.
|
|||||||
%patch71 -p1
|
%patch71 -p1
|
||||||
%patch72 -p1
|
%patch72 -p1
|
||||||
%patch73 -p1
|
%patch73 -p1
|
||||||
|
%if 0%{?sle_version} && 0%{?sle_version} < 150000
|
||||||
|
%patch74 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# For patch 66
|
# For patch 66
|
||||||
cp -v %{SOURCE66} Lib/test/recursion.tar
|
cp -v %{SOURCE66} Lib/test/recursion.tar
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 19 07:14:09 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Add skip_unverified_test.patch because apparently switching off
|
||||||
|
SSL verification doesn't work on older SLE.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 22 20:55:13 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Tue Nov 22 20:55:13 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python
|
# spec file for package python
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -138,6 +138,9 @@ Patch72: bpo34990-2038-problem-compileall.patch
|
|||||||
# PATCH-FIX-UPSTREAM CVE-2022-45061-DoS-by-IDNA-decode.patch bsc#1205244 mcepl@suse.com
|
# PATCH-FIX-UPSTREAM CVE-2022-45061-DoS-by-IDNA-decode.patch bsc#1205244 mcepl@suse.com
|
||||||
# Avoid DoS by decoding IDNA for too long domain names
|
# Avoid DoS by decoding IDNA for too long domain names
|
||||||
Patch73: CVE-2022-45061-DoS-by-IDNA-decode.patch
|
Patch73: CVE-2022-45061-DoS-by-IDNA-decode.patch
|
||||||
|
# PATCH-FIX-UPSTREAM skip_unverified_test.patch mcepl@suse.com
|
||||||
|
# switching verification off on the old SLE doesn't work
|
||||||
|
Patch74: skip_unverified_test.patch
|
||||||
# COMMON-PATCH-END
|
# COMMON-PATCH-END
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: db-devel
|
BuildRequires: db-devel
|
||||||
@ -334,6 +337,9 @@ that rely on earlier non-verification behavior.
|
|||||||
%patch71 -p1
|
%patch71 -p1
|
||||||
%patch72 -p1
|
%patch72 -p1
|
||||||
%patch73 -p1
|
%patch73 -p1
|
||||||
|
%if 0%{?sle_version} && 0%{?sle_version} < 150000
|
||||||
|
%patch74 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
# For patch 66
|
# For patch 66
|
||||||
cp -v %{SOURCE66} Lib/test/recursion.tar
|
cp -v %{SOURCE66} Lib/test/recursion.tar
|
||||||
|
19
skip_unverified_test.patch
Normal file
19
skip_unverified_test.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
Lib/test/test_ssl.py | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
--- a/Lib/test/test_ssl.py
|
||||||
|
+++ b/Lib/test/test_ssl.py
|
||||||
|
@@ -1344,9 +1344,9 @@ class ContextTests(unittest.TestCase):
|
||||||
|
extra_env = {}
|
||||||
|
# Omitting it leaves verification on
|
||||||
|
assert_python_ok("-c", https_is_verified, **extra_env)
|
||||||
|
- # Setting it to zero turns verification off
|
||||||
|
- extra_env[ssl._https_verify_envvar] = "0"
|
||||||
|
- assert_python_ok("-c", https_is_not_verified, **extra_env)
|
||||||
|
+ ## # Setting it to zero turns verification off
|
||||||
|
+ ## extra_env[ssl._https_verify_envvar] = "0"
|
||||||
|
+ ## assert_python_ok("-c", https_is_not_verified, **extra_env)
|
||||||
|
# Any other value should also leave it on
|
||||||
|
for setting in ("", "1", "enabled", "foo"):
|
||||||
|
extra_env[ssl._https_verify_envvar] = setting
|
Loading…
x
Reference in New Issue
Block a user