diff --git a/correct-pthread-library-name.patch b/correct-pthread-library-name.patch new file mode 100644 index 0000000..9572cef --- /dev/null +++ b/correct-pthread-library-name.patch @@ -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 diff --git a/python-debugpy.changes b/python-debugpy.changes index 62fa9e0..0b08b30 100644 --- a/python-debugpy.changes +++ b/python-debugpy.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Sep 2 09:01:19 UTC 2021 - Steve Kowalik + +- Add correct-pthread-library-name.patch: + * Look for the correct pthread library. + ------------------------------------------------------------------- Tue Jun 29 13:04:38 UTC 2021 - Ben Greiner diff --git a/python-debugpy.spec b/python-debugpy.spec index a16ccac..cbc2f23 100644 --- a/python-debugpy.spec +++ b/python-debugpy.spec @@ -1,5 +1,5 @@ # -# spec file for package python-debugpy +# spec file # # Copyright (c) 2021 SUSE LLC # @@ -39,6 +39,8 @@ URL: https://github.com/microsoft/debugpy/ Source: https://github.com/microsoft/%{modname}/archive/v%{version}.tar.gz#/%{modname}-%{version}.tar.gz # PATCH-FIX-OPENSUSE pydevd-openSUSE-attach-autoarch.patch -- support more than intel: use rpmbuild compiled attach library and let gdb figure out the architecture automatically. code@bnavigator.de Patch0: pydevd-openSUSE-attach-autoarch.patch +# PATCH-FIX-UPSTREAM gh#microsoft/debugpy#716 +Patch1: correct-pthread-library-name.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools}