Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905786 - dev-db/sqlitestudio-3.4.3: broken compilation of plugins with Python 3.11
Summary: dev-db/sqlitestudio-3.4.3: broken compilation of plugins with Python 3.11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-05-05 21:01 UTC by mehw
Modified: 2023-05-06 03:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mehw 2023-05-05 21:01:38 UTC
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
Comment 1 Larry the Git Cow gentoo-dev 2023-05-06 03:46:20 UTC
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(+)