diff --git a/insight-10.0.50-python39.patch b/insight-10.0.50-python39.patch new file mode 100644 index 0000000..c4821cb --- /dev/null +++ b/insight-10.0.50-python39.patch @@ -0,0 +1,16 @@ +diff -Naurp insight-10.0.50.20200110.orig/gdb/python/python.c insight-10.0.50.20200110.new/gdb/python/python.c +--- insight-10.0.50.20200110.orig/gdb/python/python.c 2020-01-03 10:42:10.000000000 +0100 ++++ insight-10.0.50.20200110.new/gdb/python/python.c 2020-05-05 16:52:16.575022701 +0200 +@@ -1618,7 +1618,12 @@ do_start_initialization () + #endif + + Py_Initialize (); ++#if PY_VERSION_HEX < 0x03090000 ++ /* PyEval_InitThreads became deprecated in Python 3.9 and will ++ be removed in Python 3.11. Prior to Python 3.7, this call was ++ required to initialize the GIL. */ + PyEval_InitThreads (); ++#endif + + #ifdef IS_PY3K + gdb_module = PyImport_ImportModule ("_gdb"); diff --git a/insight.spec b/insight.spec index 6f62695..8cf0174 100644 --- a/insight.spec +++ b/insight.spec @@ -21,7 +21,7 @@ Name: insight Version: %(echo %{ver} | tr - .)%{?snap:.%{snap}} -Release: 3%{?dist} +Release: 4%{?dist} Summary: Graphical debugger based on GDB License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL Url: https://www.sourceware.org/insight/ @@ -72,6 +72,7 @@ Patch1: insight-7.4.50-relocate.patch Patch2: insight-10.0-readline-system.patch Patch3: insight-10.0-fix-a-prototype.patch Patch4: insight-10.0.50-gcc10.patch +Patch5: insight-10.0.50-python39.patch # Some patches from gdb. See gdb spec file for info. @@ -124,6 +125,7 @@ GDB version 8.x. %patch2 -p1 -b .readline-system %patch3 -p1 -b .fix-a-prototype %patch4 -p1 -b .gcc10 +%patch5 -p1 -b .python39 %patch101 -p1 %patch102 -p1 @@ -354,6 +356,11 @@ ${INSTALL} -m 644 gdb/gdbtk/insight_icon.svg \ %changelog #------------------------------------------------------------------------------- +* Tue May 5 2020 Patrick Monnerat 10.0.50.20200210-4 +- Patch "python39" removes a Python 3.9 deprecated function call. + https://bugzilla.redhat.com/show_bug.cgi?id=1831213 + https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=97ed802 + * Mon Apr 6 2020 Patrick Monnerat 10.0.50.20200210-3 - Patch "gcc10" for gnu C version 10 compatibility. https://bugzilla.redhat.com/show_bug.cgi?id=1818009