15
0

- Add correct-pthread-library-name.patch:

* Look for the correct pthread library.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-debugpy?expand=0&rev=3
This commit is contained in:
2021-09-02 09:02:04 +00:00
committed by Git OBS Bridge
parent 9a58275edf
commit 82cb29b3ea
3 changed files with 22 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
Index: debugpy-1.3.0/tests/debugpy/test_threads.py
===================================================================
--- debugpy-1.3.0.orig/tests/debugpy/test_threads.py
+++ debugpy-1.3.0/tests/debugpy/test_threads.py
@@ -170,7 +170,7 @@ def test_debug_this_thread(pyfile, targe
from ctypes import CDLL, CFUNCTYPE, byref, c_void_p, c_ulong
from ctypes.util import find_library
- libpthread = CDLL(find_library("libpthread"))
+ libpthread = CDLL(find_library("pthread"))
thread_func_p = CFUNCTYPE(c_void_p, c_void_p)
thread_func = thread_func_p(
foo