Bugzilla – Bug 1211052
gdb build failure against python 311
Last modified: 2024-03-14 20:36:25 UTC
gdb is still on 12.1 and no longer builds against python 3.11. ] In file included from ../../gdb/python/py-cmd.c:24: [ 318s] ../../gdb/python/python-internal.h: In function 'void gdb_PySys_SetPath(const wchar_t*)': [ 318s] ../../gdb/python/python-internal.h:221:17: error: 'void PySys_SetPath(const wchar_t*)' is deprecated [-Werror=deprecated-declarations] [ 318s] 221 | PySys_SetPath (const_cast<GDB_PYSYS_SETPATH_CHAR *> (path)); [ 318s] | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 318s] In file included from /usr/include/python3.11/Python.h:96, [ 318s] from ../../gdb/python/python-internal.h:86: [ 318s] /usr/include/python3.11/sysmodule.h:15:38: note: declared here [ 318s] 15 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetPath(const wchar_t *); [ 318s] | ^~~~~~~~~~~~~ this has been fixed upsteram in https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=fe587fc997af5486e94250a3dbe7e96f966b1d94 which is part of 13.1. backporting that to our old gdb package seems nontrivial as it relies on the python2 removal which touched a lot of code prior. please update or cherry pick.
this breaks openSUSE:Factory:Staging:O
Should be fixed by upstream commit: ... commit fe587fc997af5486e94250a3dbe7e96f966b1d94 Author: Kevin Buettner <kevinb@redhat.com> Date: Thu Jun 30 15:40:29 2022 -0700 Handle Python 3.11 deprecation of PySys_SetPath and Py_SetProgramName ...
(In reply to Dirk Mueller from comment #0) > this has been fixed upsteram in > https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff; > h=fe587fc997af5486e94250a3dbe7e96f966b1d94 > > which is part of 13.1. backporting that to our old gdb package seems > nontrivial as it relies on the python2 removal which touched a lot of code > prior. > Ack. > please update or cherry pick. I'm already in the process of porting gdb 13.1.
SUSE-SU-2024:0319-1: An update that solves three vulnerabilities and contains one feature can now be installed. Category: security (moderate) Bug References: 1068950, 1081527, 1211052 CVE References: CVE-2017-16829, CVE-2018-7208, CVE-2022-4806 Jira References: PED-6584 Sources used: SUSE Linux Enterprise Software Development Kit 12 SP5 (src): gdb-13.2-2.23.1 SUSE Linux Enterprise High Performance Computing 12 SP5 (src): gdb-13.2-2.23.1 SUSE Linux Enterprise Server 12 SP5 (src): gdb-13.2-2.23.1 SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): gdb-13.2-2.23.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2024:0899-1: An update that solves three vulnerabilities and contains one feature can now be installed. Category: security (moderate) Bug References: 1068950, 1081527, 1211052 CVE References: CVE-2017-16829, CVE-2018-7208, CVE-2022-48064 Jira References: PED-6584 Sources used: SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS 15-SP2 (src): gdb-13.2-150100.8.39.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP3 (src): gdb-13.2-150100.8.39.1 SUSE Linux Enterprise Server 15 SP2 LTSS 15-SP2 (src): gdb-13.2-150100.8.39.1 SUSE Linux Enterprise Server 15 SP3 LTSS 15-SP3 (src): gdb-13.2-150100.8.39.1 SUSE Linux Enterprise Server for SAP Applications 15 SP2 (src): gdb-13.2-150100.8.39.1 SUSE Linux Enterprise Server for SAP Applications 15 SP3 (src): gdb-13.2-150100.8.39.1 SUSE Enterprise Storage 7.1 (src): gdb-13.2-150100.8.39.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-SU-2024:0898-1: An update that solves three vulnerabilities and contains one feature can now be installed. Category: security (moderate) Bug References: 1068950, 1081527, 1211052 CVE References: CVE-2017-16829, CVE-2018-7208, CVE-2022-48064 Jira References: PED-6584 Sources used: openSUSE Leap 15.4 (src): gdb-13.2-150400.15.14.1 openSUSE Leap 15.5 (src): gdb-13.2-150400.15.14.1 Development Tools Module 15-SP5 (src): gdb-13.2-150400.15.14.1 SUSE Linux Enterprise High Performance Computing ESPOS 15 SP4 (src): gdb-13.2-150400.15.14.1 SUSE Linux Enterprise High Performance Computing LTSS 15 SP4 (src): gdb-13.2-150400.15.14.1 SUSE Linux Enterprise Desktop 15 SP4 LTSS 15-SP4 (src): gdb-13.2-150400.15.14.1 SUSE Linux Enterprise Server 15 SP4 LTSS 15-SP4 (src): gdb-13.2-150400.15.14.1 SUSE Linux Enterprise Server for SAP Applications 15 SP4 (src): gdb-13.2-150400.15.14.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.