[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1018688: pygame: FTBFS on riscv64: test_src_alpha_sdl2_blitter failed on riscv64



Source: pygame
Version: 2.1.2+dfsg-3
Severity: normal
Tags: ftbfs, patch
User: debian-riscv@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-riscv@lists.debian.org

Dear Maintainer,

Pygame has been failing on riscv64 after updated to 2.1.2 [1] because of test_src_alpha_sdl2_blitter [2]. It seems that the test fails except for amd64 [3] and is not very important even fails [4].

[1] https://buildd.debian.org/status/logs.php?pkg=pygame&arch=riscv64
[2] https://buildd.debian.org/status/fetch.php?pkg=pygame&arch=riscv64&ver=2.1.2%2Bdfsg-3&stamp=1660431877
[3] https://github.com/pygame/pygame/issues/3097
[4] https://github.com/conda-forge/staged-recipes/pull/19665

After disabling it, pygame could be built successfully on riscv64. The patch has been attached below.

--
Regards,
--
  Sakura286

--- a/test/surface_test.py
+++ b/test/surface_test.py
@@ -1481,7 +1481,7 @@
         self.assertEqual(results, results_expected)

     @unittest.skipIf(
-        "arm" in platform.machine() or "aarch64" in platform.machine() or "mips" in platform.machine() or "ppc64le" in platform.machine() or "s390x" in platform.machine(), +        "arm" in platform.machine() or "aarch64" in platform.machine() or "mips" in platform.machine() or "ppc64le" in platform.machine() or "s390x" in platform.machine() or "riscv64" in platform.machine(),
         "sdl2 blitter produces different results on arm",
     )
     def test_src_alpha_sdl2_blitter(self):


Reply to: