Hello community, here is the log from the commit of package gdb for openSUSE:Factory checked in at 2018-08-27 13:45:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gdb (Old) and /work/SRC/openSUSE:Factory/.gdb.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gdb" Mon Aug 27 13:45:45 2018 rev:121 rq:629231 version:8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/gdb/gdb.changes 2018-04-10 09:50:48.791850770 +0200 +++ /work/SRC/openSUSE:Factory/.gdb.new/gdb.changes 2018-08-27 13:45:50.004250255 +0200 @@ -1,0 +2,6 @@ +Fri Aug 10 08:58:06 UTC 2018 - [email protected] + +- Apply patch from fedora to build with python3.7: + * gdb-fix-python37-breakage.patch + +------------------------------------------------------------------- New: ---- gdb-fix-python37-breakage.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gdb.spec ++++++ --- /var/tmp/diff_new_pack.DzCTwy/_old 2018-08-27 13:45:53.920255867 +0200 +++ /var/tmp/diff_new_pack.DzCTwy/_new 2018-08-27 13:45:53.920255867 +0200 @@ -23,7 +23,7 @@ %bcond_without testsuite Summary: A GNU source-level debugger for C, C++, Fortran and other languages -License: GPL-3.0+ and GPL-3.0-with-GCC-exception and LGPL-2.1+ and LGPL-3.0+ +License: GPL-3.0-or-later AND GPL-3.0-with-GCC-exception AND LGPL-2.1-or-later AND LGPL-3.0-or-later Group: Development/Tools/Debuggers Name: gdb @@ -231,6 +231,7 @@ Patch1003: gdb-pahole-python2.patch Patch1004: gdb-fix-buf-overflow.diff Patch1005: gdb-7.10-swo18929.patch +Patch1006: gdb-fix-python37-breakage.patch # libipt support Patch3000: v1.5-libipt-static.patch @@ -352,7 +353,7 @@ %if %{suse_version} > 1010 %package -n gdbserver Summary: A standalone server for GDB (the GNU source-level debugger) -License: GPL-3.0+ and GPL-3.0-with-GCC-exception and LGPL-2.1+ and LGPL-3.0+ +License: GPL-3.0-or-later AND GPL-3.0-with-GCC-exception AND LGPL-2.1-or-later AND LGPL-3.0-or-later Group: Development/Tools/Debuggers %description -n gdbserver @@ -366,7 +367,7 @@ %package doc Summary: Documentation for GDB (the GNU source-level debugger) -License: GFDL-1.3 +License: GFDL-1.3-only Group: Documentation/Other PreReq: %{install_info_prereq} @@ -538,6 +539,7 @@ %patch1003 -p1 %patch1004 -p1 %patch1005 -p1 +%patch1006 -p1 #unpack libipt %if 0%{have_libipt} ++++++ gdb-fix-python37-breakage.patch ++++++ >From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Paul Koning <[email protected]> Date: Fri, 8 Jun 2018 13:26:36 -0400 Subject: gdb-fix-python37-breakage.patch FileName: gdb-fix-python37-breakage.patch ;; Fix build breakage with Python 3.7 ;; RHBZ #1577396 Fix build issue with Python 3.7 Originally reported in https://bugzilla.redhat.com/show_bug.cgi?id=1577396 -- gdb build fails with Python 3.7 due to references to a Python internal function whose declaration changed in 3.7. gdb/ChangeLog 2018-06-08 Paul Koning <[email protected]> PR gdb/23252 * python/python.c (do_start_initialization): Avoid call to internal Python API. (init__gdb_module): New function. diff --git a/gdb/python/python.c b/gdb/python/python.c --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1810,6 +1810,17 @@ finalize_python (void *ignore) restore_active_ext_lang (previous_active); } +#ifdef IS_PY3K +/* This is called via the PyImport_AppendInittab mechanism called + during initialization, to make the built-in _gdb module known to + Python. */ +PyMODINIT_FUNC +init__gdb_module (void) +{ + return PyModule_Create (&python_GdbModuleDef); +} +#endif + static bool do_start_initialization () { @@ -1850,6 +1861,9 @@ do_start_initialization () remain alive for the duration of the program's execution, so it is not freed after this call. */ Py_SetProgramName (progname_copy); + + /* Define _gdb as a built-in module. */ + PyImport_AppendInittab ("_gdb", init__gdb_module); #else Py_SetProgramName (progname.release ()); #endif @@ -1859,9 +1873,7 @@ do_start_initialization () PyEval_InitThreads (); #ifdef IS_PY3K - gdb_module = PyModule_Create (&python_GdbModuleDef); - /* Add _gdb module to the list of known built-in modules. */ - _PyImport_FixupBuiltin (gdb_module, "_gdb"); + gdb_module = PyImport_ImportModule ("_gdb"); #else gdb_module = Py_InitModule ("_gdb", python_GdbMethods); #endif
