Package: python-pyglfw / 2.8.0+dfsg-2

supplemental-architectures.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: fix library dynamic loading for a range of architectures.
 This patch fixes the following issue when attempting to load the glfw
 Python module on an unhandled architecture:
 .
        Traceback (most recent call last):
          File "/build/reproducible-path/python-pyglfw-2.8.0+dfsg/debian/tests/example.py", line 6, in <module>
            import glfw
          File "/build/reproducible-path/python-pyglfw-2.8.0+dfsg/.pybuild/cpython3_3.13/build/glfw/__init__.py", line 43, in <module>
            raise ImportError("Failed to load GLFW3 shared library.")
        ImportError: Failed to load GLFW3 shared library.
 .
 Sure it might be cleaner to parse /etc/ld.so.conf, but it might be more
 delicate to implement as well.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1103102
Forwarded: https://github.com/FlorianRhiem/pyGLFW/pull/83
Last-Update: 2025-04-14
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- python-pyglfw.orig/glfw/library.py
+++ python-pyglfw/glfw/library.py
@@ -173,6 +173,14 @@
         '/usr/lib/x86_64-linux-gnu/',
         '/usr/lib/aarch64-linux-gnu/',
         '/usr/lib/arm-linux-gnueabihf',
+        '/usr/lib/riscv64-linux-gnu',
+        '/usr/lib/powerpc64le-linux-gnu',
+        '/usr/lib/loongarch64-linux-gnu',
+        '/usr/lib/s390x-linux-gnu',
+        '/usr/lib/i386-linux-gnu',
+        '/usr/lib/arm-linux-gnueabi',
+        '/usr/lib/sparc64-linux-gnu',
+        '/usr/lib/mips64el-linux-gnuabi64',
     ]
 
     package_path_variant = _get_package_path_variant(package_path)