diff -Nru impressive-0.13.0~beta2/debian/changelog impressive-0.13.0~beta2/debian/changelog --- impressive-0.13.0~beta2/debian/changelog 2022-01-12 19:35:35.000000000 +0000 +++ impressive-0.13.0~beta2/debian/changelog 2023-12-14 17:49:43.000000000 +0000 @@ -1,3 +1,9 @@ +impressive (0.13.0~beta2-2ubuntu1) jammy; urgency=medium + + * Apply upstream fix to find correct SDL library. (LP: #1969968) + + -- Sudip Mukherjee Thu, 14 Dec 2023 17:49:43 +0000 + impressive (0.13.0~beta2-2) unstable; urgency=medium * debian/patches/up_crash_fix diff -Nru impressive-0.13.0~beta2/debian/control impressive-0.13.0~beta2/debian/control --- impressive-0.13.0~beta2/debian/control 2022-01-12 19:35:35.000000000 +0000 +++ impressive-0.13.0~beta2/debian/control 2023-12-14 17:28:52.000000000 +0000 @@ -1,5 +1,6 @@ Source: impressive -Maintainer: Yaroslav Halchenko +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Yaroslav Halchenko Section: x11 Priority: optional Build-Depends: debhelper (>= 10) diff -Nru impressive-0.13.0~beta2/debian/patches/fix_pygame_sdl_version.patch impressive-0.13.0~beta2/debian/patches/fix_pygame_sdl_version.patch --- impressive-0.13.0~beta2/debian/patches/fix_pygame_sdl_version.patch 1970-01-01 01:00:00.000000000 +0100 +++ impressive-0.13.0~beta2/debian/patches/fix_pygame_sdl_version.patch 2023-12-14 17:49:19.000000000 +0000 @@ -0,0 +1,24 @@ +Description: Find correct library based on pygame sdl version + +--- + +Origin: upstream, https://sources.debian.org/src/impressive/0.13.1-1/impressive.py/#L416 +Bug-Ubuntu: https://launchpad.net/bugs/1969968 + +Notes: I could not find any upstream repo for impressive, source downloads are available. +So, considering Debian source for this change. + +--- impressive-0.13.0~beta2.orig/impressive.py ++++ impressive-0.13.0~beta2/impressive.py +@@ -394,7 +394,10 @@ class Platform_PyGame(object): + pass + + # generic case: load the system-wide SDL +- sdl = sdl or ctypes.util.find_library("SDL") or ctypes.util.find_library("SDL-1.2") or "SDL" ++ if pygame.get_sdl_version() >= (2, 0, 0): ++ sdl = sdl or ctypes.util.find_library("SDL2") or ctypes.util.find_library("SDL2-2.0") or ctypes.util.find_library("SDL-2.0") or "SDL2" ++ else: ++ sdl = sdl or ctypes.util.find_library("SDL") or ctypes.util.find_library("SDL-1.2") or "SDL" + + # load the library + try: diff -Nru impressive-0.13.0~beta2/debian/patches/series impressive-0.13.0~beta2/debian/patches/series --- impressive-0.13.0~beta2/debian/patches/series 2022-01-12 19:35:35.000000000 +0000 +++ impressive-0.13.0~beta2/debian/patches/series 2023-12-14 17:36:22.000000000 +0000 @@ -1,2 +1,3 @@ up_crash_fix deb_force_python3 +fix_pygame_sdl_version.patch