Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 897326 - www-apache/mod_wsgi: needs upgrade to Python 3.11 (PythonCompatUpdate)
Summary: www-apache/mod_wsgi: needs upgrade to Python 3.11 (PythonCompatUpdate)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 896398
  Show dependency tree
 
Reported: 2023-02-25 09:58 UTC by Michał Górny
Modified: 2023-04-09 06:58 UTC (History)
2 users (show)

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


Attachments
mod_wsgi 4.9.4 ebuild (mod_wsgi-4.9.4.ebuild,1.08 KB, text/plain)
2023-04-08 17:05 UTC, Robert Marmorstein
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-02-25 09:58:58 UTC
This package does not support Python 3.11.  Please test it with Python 3.11 as a matter of urgency as the default will change in early June, as per message on gentoo-dev: https://archives.gentoo.org/gentoo-dev/message/abb5788ea81c7bbf4d40a2995b682eb9.  Please check the information provided in the tracker.  Ask in #gentoo-python on IRC if need any help.
Comment 1 François Valenduc 2023-04-03 10:03:38 UTC
I tried to compile mod_wsgi with python 3.11, but I get this error:

src/server/mod_wsgi.c:9524:32: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
 9524 |                     if (current->f_trace) {
      |                                ^~
src/server/mod_wsgi.c:9525:41: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
 9525 |                         lineno = current->f_lineno;
      |                                         ^~
src/server/mod_wsgi.c:9528:58: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
 9528 |                         lineno = PyCode_Addr2Line(current->f_code,
      |                                                          ^~
src/server/mod_wsgi.c:9529:58: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
 9529 |                                                   current->f_lasti);
      |                                                          ^~
src/server/mod_wsgi.c:9533:56: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
 9533 |                     filename = PyUnicode_AsUTF8(current->f_code->co_filename);
      |                                                        ^~
src/server/mod_wsgi.c:9534:52: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
 9534 |                     name = PyUnicode_AsUTF8(current->f_code->co_name);
      |                                                    ^~
src/server/mod_wsgi.c:9547:36: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
 9547 |                         if (current->f_back) {
      |                                    ^~
src/server/mod_wsgi.c:9561:38: error: invalid use of incomplete typedef 'PyFrameObject' {aka 'struct _frame'}
 9561 |                     current = current->f_back;
      |                                      ^~
apxs:Error: Command failed with rc=65536
.
make: *** [Makefile:31: src/server/mod_wsgi.la] Error 1
Comment 2 François Valenduc 2023-04-03 10:11:10 UTC
However, the latest available version (4.9.4) compile and seems to work fine with python 3.11. I tested it with pgadmin4 and I found no problems so far.
Comment 3 Robert Marmorstein 2023-04-08 17:05:12 UTC
Created attachment 859693 [details]
mod_wsgi 4.9.4 ebuild

Here is the ebuild I used to build, test, and install a new Python 3.11 compatible mod_wsgi.  It builds fine.  I will test it on my server as soon as I finish the Python-3.10 to Python-3.11 upgrade to make sure it also runs fine.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-09 06:28:39 UTC
(In reply to Robert Marmorstein from comment #3)
> Created attachment 859693 [details]
> mod_wsgi 4.9.4 ebuild
> 
> Here is the ebuild I used to build, test, and install a new Python 3.11
> compatible mod_wsgi.  It builds fine.  I will test it on my server as soon
> as I finish the Python-3.10 to Python-3.11 upgrade to make sure it also runs
> fine.

Thanks Robert. I'll take a look.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-09 06:58:50 UTC
commit 4cf080a536a86eaceb17c82433ff4d81e43047ef
Author: Sam James <sam@gentoo.org>
Date:   Sun Apr 9 07:32:06 2023 +0100

    www-apache/mod_wsgi: add 4.9.4

    Closes: https://bugs.gentoo.org/897326
    Signed-off-by: Sam James <sam@gentoo.org>