Hello, I'm having issues compiling dev-db/sqlitestudio-3.4.3's plugins with Python 3.11. Python 3.11 removed PyThreadState()->frame. * Package: dev-db/sqlitestudio-3.4.3:0 * Repository: gentoo * USE: abi_x86_64 amd64 cli cups elibc_glibc kernel_linux python python_single_target_python3_11 tcl userland_GNU * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox * Using python3.11 to build ../../../../Plugins/ScriptingPython/scriptingpython.cpp:585:17: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’? 585 | if (!state->frame) | ^~~~~ | cframe ../../../../Plugins/ScriptingPython/scriptingpython.cpp:591:33: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’? 591 | PyFrame_FastToLocals(state->frame); | ^~~~~ | cframe ../../../../Plugins/ScriptingPython/scriptingpython.cpp:592:31: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’? 592 | PyObject* locals = state->frame->f_locals; | ^~~~~ | cframe ../../../../Plugins/ScriptingPython/scriptingpython.cpp:593:32: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘frame’; did you mean ‘cframe’? 593 | PyObject* globals = state->frame->f_globals; | ^~~~~ | cframe
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d14468e49a5189ce2b486b07e752cde14d996e1b commit d14468e49a5189ce2b486b07e752cde14d996e1b Author: Matthew White <mehw.is.me@inventati.org> AuthorDate: 2023-05-05 19:10:19 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-06 03:46:10 +0000 dev-db/sqlitestudio: enable compiling plugins with Python 3.11 for 3.4.3-r1 Apply upstream patch to enable compiling the plugins with Python 3.11. Closes: https://bugs.gentoo.org/905786 Package-Manager: portage-3.0.44-r1 Signed-off-by: Matteo Bianco <mehw.is.me@inventati.org> Signed-off-by: Sam James <sam@gentoo.org> .../sqlitestudio-3.4.3-fix-PyThreadState.patch | 54 ++++++ dev-db/sqlitestudio/sqlitestudio-3.4.3-r1.ebuild | 187 +++++++++++++++++++++ 2 files changed, 241 insertions(+)