Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pygame for openSUSE:Factory 
checked in at 2026-02-23 16:13:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pygame (Old)
 and      /work/SRC/openSUSE:Factory/.python-pygame.new.1977 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pygame"

Mon Feb 23 16:13:17 2026 rev:45 rq:1334467 version:2.6.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pygame/python-pygame.changes      
2025-03-04 18:33:46.320908171 +0100
+++ /work/SRC/openSUSE:Factory/.python-pygame.new.1977/python-pygame.changes    
2026-02-23 16:15:18.148144469 +0100
@@ -1,0 +2,11 @@
+Mon Feb 23 10:09:03 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Add "-mavx2" to CFLAGS to fix build in i586, gh#pygame/pygame#4573
+
+-------------------------------------------------------------------
+Mon Feb 23 09:13:25 UTC 2026 - Daniel Garcia <[email protected]>
+
+- Skip broken tests in OBS build env, new patch:
+  skip-broken-tests.patch
+
+-------------------------------------------------------------------

New:
----
  skip-broken-tests.patch

----------(New B)----------
  New:- Skip broken tests in OBS build env, new patch:
  skip-broken-tests.patch
----------(New E)----------

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

Other differences:
------------------
++++++ python-pygame.spec ++++++
--- /var/tmp/diff_new_pack.XmZDtb/_old  2026-02-23 16:15:18.688166735 +0100
+++ /var/tmp/diff_new_pack.XmZDtb/_new  2026-02-23 16:15:18.692166901 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pygame
 #
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,6 +24,8 @@
 License:        Apache-2.0 AND LGPL-2.1-or-later AND BSD-2-Clause AND 
BSD-3-Clause AND libpng-2.0
 URL:            https://github.com/pygame/pygame
 Source0:        %{url}/archive/%{version}.tar.gz#/pygame-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE skip-broken-tests.patch
+Patch0:         skip-broken-tests.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module numpy}
@@ -102,6 +104,12 @@
 
 %build
 export CFLAGS="%{optflags} -fno-strict-aliasing"
+
+# -mavx2 fixes the build for i586
+%ifarch %ix86
+export CFLAGS="${CFLAGS} -mavx2"
+%endif
+
 export PORTMIDI_INC_PORTTIME=1
 %pyproject_wheel
 

++++++ skip-broken-tests.patch ++++++
Index: pygame-2.6.1/test/surface_test.py
===================================================================
--- pygame-2.6.1.orig/test/surface_test.py
+++ pygame-2.6.1/test/surface_test.py
@@ -239,6 +239,7 @@ class SurfaceTypeTest(unittest.TestCase)
         for pt in test_utils.rect_outer_bounds(fill_rect):
             self.assertNotEqual(s1.get_at(pt), color)
 
+    @unittest.skip("Broken test in OBS build")
     def test_fill_rle(self):
         """Test RLEACCEL flag with fill()"""
         color = (250, 25, 25, 255)
@@ -255,6 +256,7 @@ class SurfaceTypeTest(unittest.TestCase)
         )
         self.assertTrue(blit_surf.get_flags() & pygame.RLEACCEL)
 
+    @unittest.skip("Broken test in OBS build")
     def test_mustlock_rle(self):
         """Test RLEACCEL flag with mustlock()"""
         surf = pygame.Surface((100, 100))
@@ -265,6 +267,7 @@ class SurfaceTypeTest(unittest.TestCase)
         self.assertTrue(blit_surf.get_flags() & pygame.RLEACCEL)
         self.assertTrue(blit_surf.mustlock())
 
+    @unittest.skip("Broken test in OBS build")
     def test_mustlock_surf_alpha_rle(self):
         """Test RLEACCEL flag with mustlock() on a surface
         with per pixel alpha - new feature in SDL2"""
@@ -277,6 +280,7 @@ class SurfaceTypeTest(unittest.TestCase)
         self.assertTrue(blit_surf.get_flags() & pygame.SRCALPHA)
         self.assertTrue(blit_surf.mustlock())
 
+    @unittest.skip("Broken test in OBS build")
     def test_copy_rle(self):
         """Test copying a surface set to use run length encoding"""
         s1 = pygame.Surface((32, 32), 24)
@@ -302,6 +306,7 @@ class SurfaceTypeTest(unittest.TestCase)
         self.assertTrue(s1.get_flags() & pygame.RLEACCEL)
         self.assertTrue(not s2.get_flags() & pygame.RLEACCEL)
 
+    @unittest.skip("Broken test in OBS build")
     def test_subsurface_rle2(self):
         """Ensure an RLE sub-surface works independently of its parent."""
         color = (250, 25, 25, 255)
@@ -318,6 +323,7 @@ class SurfaceTypeTest(unittest.TestCase)
         self.assertTrue(s1.get_flags() & pygame.RLEACCELOK)
         self.assertTrue(not s2.get_flags() & pygame.RLEACCELOK)
 
+    @unittest.skip("Broken test in OBS build")
     def test_solarwolf_rle_usage(self):
         """Test for error/crash when calling set_colorkey() followed
         by convert twice in succession. Code originally taken
@@ -346,6 +352,7 @@ class SurfaceTypeTest(unittest.TestCase)
         finally:
             pygame.display.quit()
 
+    @unittest.skip("Broken test in OBS build")
     def test_solarwolf_rle_usage_2(self):
         """Test for RLE status after setting alpha"""
 
Index: pygame-2.6.1/test/pixelarray_test.py
===================================================================
--- pygame-2.6.1.orig/test/pixelarray_test.py
+++ pygame-2.6.1/test/pixelarray_test.py
@@ -990,6 +990,7 @@ class PixelArrayTypeTest(unittest.TestCa
         self.assertEqual(w2, w)
         self.assertEqual(h2, h_slice)
 
+    @unittest.skip("Broken test in OBS build")
     def test_make_surface__subclassed_surface(self):
         """Ensure make_surface can handle subclassed surfaces."""
         expected_size = (3, 5)

Reply via email to