Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pycurl for openSUSE:Factory checked in at 2021-06-05 23:31:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pycurl (Old) and /work/SRC/openSUSE:Factory/.python-pycurl.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pycurl" Sat Jun 5 23:31:22 2021 rev:38 rq:897519 version:7.43.0.6 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pycurl/python-pycurl.changes 2021-03-12 13:30:07.258056640 +0100 +++ /work/SRC/openSUSE:Factory/.python-pycurl.new.1898/python-pycurl.changes 2021-06-05 23:31:59.056485143 +0200 @@ -1,0 +2,6 @@ +Fri Jun 4 13:59:08 UTC 2021 - Matej Cepl <mc...@suse.com> + +- Add curl7770_compatibility.patch to have package compatible + with curl 7.77.0. + +------------------------------------------------------------------- New: ---- curl7770_compatibility.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pycurl.spec ++++++ --- /var/tmp/diff_new_pack.UbXnxW/_old 2021-06-05 23:31:59.696486255 +0200 +++ /var/tmp/diff_new_pack.UbXnxW/_new 2021-06-05 23:31:59.700486263 +0200 @@ -1,5 +1,5 @@ # -# spec file for package python-pycurl +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -44,6 +44,9 @@ # PATCH-FIX-OPENSUSE make-leap15-compat.patch mc...@suse.com # Make tests passing with Leap 15.2 Patch5: make-leap15-compat.patch +# PATCH-FIX-UPSTREAM curl7770_compatibility.patch gh#pycurl/pycurl#689 mc...@suse.com +# Provide compatiblity with curl 7.77.0+ +Patch6: curl7770_compatibility.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes ++++++ curl7770_compatibility.patch ++++++ >From 18f1103fb9c6b4dc2233e323e3df1818db25c209 Mon Sep 17 00:00:00 2001 From: Kamil Dudka <kdu...@redhat.com> Date: Thu, 27 May 2021 10:52:09 +0200 Subject: [PATCH 1/2] option_constants_test: skip check of SSLVERSION_SSLv* ... with curl-7.77.0, where they started to return CURLE_BAD_FUNCTION_ARGUMENT: https://github.com/curl/curl/pull/6773 Closes: https://github.com/pycurl/pycurl/pull/689 --- tests/failonerror_test.py | 6 ++++++ tests/option_constants_test.py | 9 ++++++++- tests/util.py | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) --- a/tests/failonerror_test.py +++ b/tests/failonerror_test.py @@ -21,6 +21,8 @@ class FailonerrorTest(unittest.TestCase) # not sure what the actual min is but 7.26 is too old # and does not include status text, only the status code @util.min_libcurl(7, 38, 0) + # no longer supported by libcurl: https://github.com/curl/curl/issues/6615 + @util.removed_in_libcurl(7, 75, 0) def test_failonerror(self): self.curl.setopt(pycurl.URL, 'http://%s:8380/status/403' % localhost) sio = util.BytesIO() @@ -41,6 +43,8 @@ class FailonerrorTest(unittest.TestCase) # not sure what the actual min is but 7.26 is too old # and does not include status text, only the status code @util.min_libcurl(7, 38, 0) + # no longer supported by libcurl: https://github.com/curl/curl/issues/6615 + @util.removed_in_libcurl(7, 75, 0) def test_failonerror_status_line_invalid_utf8_python2(self): self.curl.setopt(pycurl.URL, 'http://%s:8380/status_invalid_utf8' % localhost) sio = util.BytesIO() @@ -61,6 +65,8 @@ class FailonerrorTest(unittest.TestCase) # not sure what the actual min is but 7.26 is too old # and does not include status text, only the status code @util.min_libcurl(7, 38, 0) + # no longer supported by libcurl: https://github.com/curl/curl/issues/6615 + @util.removed_in_libcurl(7, 75, 0) def test_failonerror_status_line_invalid_utf8_python3(self): self.curl.setopt(pycurl.URL, 'http://%s:8380/status_invalid_utf8' % localhost) sio = util.BytesIO() --- a/tests/option_constants_test.py +++ b/tests/option_constants_test.py @@ -163,9 +163,16 @@ class OptionConstantsTest(unittest.TestC def test_sslversion_options(self): curl = pycurl.Curl() curl.setopt(curl.SSLVERSION, curl.SSLVERSION_DEFAULT) + curl.setopt(curl.SSLVERSION, curl.SSLVERSION_TLSv1) + curl.close() + + # SSLVERSION_SSLv* return CURLE_BAD_FUNCTION_ARGUMENT with curl-7.77.0 + @util.removed_in_libcurl(7, 77, 0) + @util.only_ssl + def test_legacy_sslversion_options(self): + curl = pycurl.Curl() curl.setopt(curl.SSLVERSION, curl.SSLVERSION_SSLv2) curl.setopt(curl.SSLVERSION, curl.SSLVERSION_SSLv3) - curl.setopt(curl.SSLVERSION, curl.SSLVERSION_TLSv1) curl.close() @util.min_libcurl(7, 34, 0) --- a/tests/util.py +++ b/tests/util.py @@ -115,6 +115,20 @@ def min_libcurl(major, minor, patch): return decorator +def removed_in_libcurl(major, minor, patch): + + def decorator(fn): + @functools.wraps(fn) + def decorated(*args, **kwargs): + if not pycurl_version_less_than(major, minor, patch): + raise unittest.SkipTest('libcurl >= %d.%d.%d' % (major, minor, patch)) + + return fn(*args, **kwargs) + + return decorated + + return decorator + def only_ssl(fn): import pycurl