Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python311 for openSUSE:Factory 
checked in at 2024-03-13 22:16:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python311 (Old)
 and      /work/SRC/openSUSE:Factory/.python311.new.1770 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python311"

Wed Mar 13 22:16:00 2024 rev:31 rq:1157149 version:3.11.8

Changes:
--------
--- /work/SRC/openSUSE:Factory/python311/python311.changes      2024-03-01 
23:36:06.566552531 +0100
+++ /work/SRC/openSUSE:Factory/.python311.new.1770/python311.changes    
2024-03-13 22:16:03.542710442 +0100
@@ -1,0 +2,20 @@
+Tue Mar 12 08:44:47 UTC 2024 - Matej Cepl <mc...@cepl.eu>
+
+- Rewrite %prep to use %autosetup et al. for compatibility with
+  rpm 4.20.
+
+-------------------------------------------------------------------
+Tue Mar 12 08:13:34 UTC 2024 - Matej Cepl <mc...@cepl.eu>
+
+- bsc#1221260 add bsc1221260-test_asyncio-ResourceWarning.patch
+  to eliminate ResourceWarning which broke the test suite in
+  test_asyncio.
+
+-------------------------------------------------------------------
+Wed Mar  6 14:13:58 UTC 2024 - Pedro Monreal <pmonr...@suse.com>
+
+- Use the system-wide crypto-policies [bsc#1211301]
+  * Use the system default cipher list instead of hardcoded values
+  * Add the --with-ssl-default-suites=openssl configure option
+
+-------------------------------------------------------------------

New:
----
  bsc1221260-test_asyncio-ResourceWarning.patch

BETA DEBUG BEGIN:
  New:
- bsc#1221260 add bsc1221260-test_asyncio-ResourceWarning.patch
  to eliminate ResourceWarning which broke the test suite in
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python311.spec ++++++
--- /var/tmp/diff_new_pack.6Loxjy/_old  2024-03-13 22:16:07.154843327 +0100
+++ /var/tmp/diff_new_pack.6Loxjy/_new  2024-03-13 22:16:07.154843327 +0100
@@ -134,43 +134,46 @@
 Patch02:        F00251-change-user-install-location.patch
 # PATCH-FEATURE-UPSTREAM distutils-reproducible-compile.patch 
gh#python/cpython#8057 mc...@suse.com
 # Improve reproduceability
-Patch06:        distutils-reproducible-compile.patch
+Patch03:        distutils-reproducible-compile.patch
 # support finding packages in /usr/local, install to /usr/local by default
-Patch07:        python-3.3.0b1-localpath.patch
+Patch04:        python-3.3.0b1-localpath.patch
 # replace DATE, TIME and COMPILER by fixed definitions to aid reproducible 
builds
-Patch08:        python-3.3.0b1-fix_date_time_compiler.patch
+Patch05:        python-3.3.0b1-fix_date_time_compiler.patch
 # POSIX_FADV_WILLNEED throws EINVAL. Use a different constant in test
-Patch09:        python-3.3.0b1-test-posix_fadvise.patch
+Patch06:        python-3.3.0b1-test-posix_fadvise.patch
 # Raise timeout value for test_subprocess
-Patch15:        subprocess-raise-timeout.patch
+Patch07:        subprocess-raise-timeout.patch
 # PATCH-FEATURE-UPSTREAM bpo-31046_ensurepip_honours_prefix.patch bpo#31046 
mc...@suse.com
 # ensurepip should honour the value of $(prefix)
-Patch29:        bpo-31046_ensurepip_honours_prefix.patch
+Patch08:        bpo-31046_ensurepip_honours_prefix.patch
 # PATCH-FIX-SLE no-skipif-doctests.patch jsc#SLE-13738 mc...@suse.com
 # SLE-15 version of Sphinx doesn't know about skipif directive in doctests.
-Patch33:        no-skipif-doctests.patch
+Patch09:        no-skipif-doctests.patch
 # PATCH-FIX-SLE skip-test_pyobject_freed_is_freed.patch mc...@suse.com
 # skip a test failing on SLE-15
-Patch34:        skip-test_pyobject_freed_is_freed.patch
+Patch10:        skip-test_pyobject_freed_is_freed.patch
 # PATCH-FIX-SLE fix_configure_rst.patch bpo#43774 mc...@suse.com
 # remove duplicate link targets and make documentation with old Sphinx in SLE
-Patch35:        fix_configure_rst.patch
+Patch11:        fix_configure_rst.patch
 # PATCH-FIX-UPSTREAM support-expat-CVE-2022-25236-patched.patch jsc#SLE-21253 
mc...@suse.com
 # Makes Python resilient to changes of API of libexpat
-Patch36:        support-expat-CVE-2022-25236-patched.patch
+Patch12:        support-expat-CVE-2022-25236-patched.patch
 # PATCH-FIX-UPSTREAM skip_if_buildbot-extend.patch gh#python/cpython#103053 
mc...@suse.com
 # Skip test_freeze_simple_script
-Patch39:        skip_if_buildbot-extend.patch
+Patch13:        skip_if_buildbot-extend.patch
 # PATCH-FIX-UPSTREAM CVE-2023-27043-email-parsing-errors.patch bsc#1210638 
mc...@suse.com
 # Detect email address parsing errors and return empty tuple to
 # indicate the parsing error (old API)
-Patch40:        CVE-2023-27043-email-parsing-errors.patch
+Patch14:        CVE-2023-27043-email-parsing-errors.patch
 # PATCH-FIX-UPSTREAM libexpat260.patch gh#python/cpython#115289
 # Fix tests for XMLPullParser with Expat 2.6.0
-Patch41:        libexpat260.patch
+Patch15:        libexpat260.patch
 # PATCH-FIX-UPSTREAM CVE-2023-6597-TempDir-cleaning-symlink.patch bsc#1219666 
mc...@suse.com
 # tempfile.TemporaryDirectory: fix symlink bug in cleanup (from 
gh#python/cpython!99930)
-Patch42:        CVE-2023-6597-TempDir-cleaning-symlink.patch
+Patch16:        CVE-2023-6597-TempDir-cleaning-symlink.patch
+# PATCH-FIX-UPSTREAM bsc1221260-test_asyncio-ResourceWarning.patch bsc#1221260 
mc...@suse.com
+# prevent ResourceWarning in test_asyncio tests
+Patch17:        bsc1221260-test_asyncio-ResourceWarning.patch
 BuildRequires:  autoconf-archive
 BuildRequires:  automake
 BuildRequires:  fdupes
@@ -412,27 +415,13 @@
 other applications.
 
 %prep
-%setup -q -n %{tarname}
-%patch -P 02 -p1
+%autosetup -p1 -N -n %{tarname}
+%autopatch -p1 -M 08
 
-%patch -P 06 -p1
-%patch -P 07 -p1
-%patch -P 08 -p1
-%patch -P 09 -p1
-%patch -P 15 -p1
-%patch -P 29 -p1
 %if 0%{?suse_version} <= 1500
-%patch -P 33 -p1
-%endif
-%if 0%{?sle_version} && 0%{?sle_version} <= 150300
-%patch -P 34 -p1
+%patch -P 09 -p1
 %endif
-%patch -P 35 -p1
-%patch -P 36 -p1
-%patch -P 39 -p1
-%patch -P 40 -p1
-%patch -P 41 -p1
-%patch -P 42 -p1
+%autopatch -p1 -m 10
 
 # drop Autoconf version requirement
 sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
@@ -506,6 +495,9 @@
     --with-system-ffi \
     --with-system-expat \
     --with-lto \
+%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150400
+    --with-ssl-default-suites=openssl \
+%endif
 %if %{with profileopt}
     --enable-optimizations \
 %endif
@@ -537,6 +529,8 @@
 %endif
 
 %check
+export SUSE_VERSION="0%{?suse_version}"
+export SLE_VERSION="0%{?sle_version}"
 %if %{with general}
 # exclude test_gdb -- it doesn't run in buildservice anyway, and fails on 
missing debuginfos
 # when you install gdb into your test env
@@ -750,7 +744,7 @@
 install -m 755 -D Tools/gdb/libpython.py 
%{buildroot}%{_datadir}/gdb/auto-load/%{_libdir}/libpython%{python_abi}.so.%{so_major}.%{so_minor}-gdb.py
 
 # install devel files to /config
-#cp Makefile Makefile.pre.in Makefile.pre 
$RPM_BUILD_ROOT%{sitedir}/config-%{python_abi}/
+#cp Makefile Makefile.pre.in Makefile.pre 
$RPM_BUILD_ROOT%%{sitedir}/config-%%{python_abi}/
 
 # RPM macros
 %if %{primary_interpreter}
@@ -910,7 +904,7 @@
 %{_mandir}/man1/python3.1%{?ext_man}
 %endif
 %{_mandir}/man1/python%{python_version}.1%{?ext_man}
-%if %{suse_version} > 1550
+%if 0%{?suse_version} > 1550
 # PEP-0668
 %{sitedir}/EXTERNALLY-MANAGED
 %endif


++++++ bsc1221260-test_asyncio-ResourceWarning.patch ++++++
>From a3052035485bd2836e40f5284657ca105382cbfd Mon Sep 17 00:00:00 2001
From: sobolevn <m...@sobolevn.me>
Date: Tue, 5 Mar 2024 20:24:16 +0300
Subject: [PATCH] gh-116112: Fix `ResourceWarning` in
 `test_asyncio.test_stream`

Co-authored-by: @CendioOssman
---
 Lib/test/test_asyncio/test_streams.py |    1 +
 1 file changed, 1 insertion(+)

--- a/Lib/test/test_asyncio/test_streams.py
+++ b/Lib/test/test_asyncio/test_streams.py
@@ -1156,6 +1156,7 @@ os.close(fd)
 
     def test_unhandled_cancel(self):
         async def handle_echo(reader, writer):
+            writer.close()
             asyncio.current_task().cancel()
         messages = self._basetest_unhandled_exceptions(handle_echo)
         self.assertEqual(messages, [])

++++++ no-skipif-doctests.patch ++++++
++++ 686 lines (skipped)
++++ between /work/SRC/openSUSE:Factory/python311/no-skipif-doctests.patch
++++ and /work/SRC/openSUSE:Factory/.python311.new.1770/no-skipif-doctests.patch


++++++ skip-test_pyobject_freed_is_freed.patch ++++++
--- /var/tmp/diff_new_pack.6Loxjy/_old  2024-03-13 22:16:07.370851273 +0100
+++ /var/tmp/diff_new_pack.6Loxjy/_new  2024-03-13 22:16:07.374851420 +0100
@@ -1,14 +1,23 @@
 ---
- Lib/test/test_capi/test_misc.py |    1 +
- 1 file changed, 1 insertion(+)
+ Lib/test/test_capi/test_misc.py |    3 +++
+ 1 file changed, 3 insertions(+)
 
 --- a/Lib/test/test_capi/test_misc.py
 +++ b/Lib/test/test_capi/test_misc.py
-@@ -1236,6 +1236,7 @@ class PyMemDebugTests(unittest.TestCase)
+@@ -40,6 +40,8 @@ import _testinternalcapi
+ # Were we compiled --with-pydebug or with #define Py_DEBUG?
+ Py_DEBUG = hasattr(sys, 'gettotalrefcount')
+ 
++# Which version of the SLE distro we build on?
++SLE_VERSION = int(os.environ.get('SLE_VERSION', '0'), 10)
+ 
+ NULL = None
+ 
+@@ -1281,6 +1283,7 @@ class PyMemDebugTests(unittest.TestCase)
      def test_pyobject_forbidden_bytes_is_freed(self):
          
self.check_pyobject_is_freed('check_pyobject_forbidden_bytes_is_freed')
  
-+    @unittest.skip('Failing on Leap 15.*')
++    @unittest.skipIf(0 < SLE_VERSION < 150300, 'Failing on Leap 15.*')
      def test_pyobject_freed_is_freed(self):
          self.check_pyobject_is_freed('check_pyobject_freed_is_freed')
  

Reply via email to