Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1831213 - insight fails to build with Python 3.9: error: 'void PyEval_InitThreads()' is deprecated [-Werror=deprecated-declarations]
Summary: insight fails to build with Python 3.9: error: 'void PyEval_InitThreads()' is...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: insight
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Patrick Monnerat
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON39
TreeView+ depends on / blocked
 
Reported: 2020-05-04 18:02 UTC by Miro Hrončok
Modified: 2020-05-05 15:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-05 15:49:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2020-05-04 18:02:59 UTC
insight fails to build with Python 3.9.0a6.

python/python.c: In function 'bool do_start_initialization()':
python/python.c:1621:23: error: 'void PyEval_InitThreads()' is deprecated [-Werror=deprecated-declarations]
 1621 |   PyEval_InitThreads ();
      |                       ^
In file included from /usr/include/python3.9/Python.h:143,
                 from python/python-internal.h:86,
                 from python/python.c:92:
/usr/include/python3.9/ceval.h:132:37: note: declared here
  132 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
      |                                     ^~~~~~~~~~~~~~~~~~
  CXX    ravenscar-thread.o
cc1plus: all warnings being treated as errors
make[2]: *** [Makefile:1662: python/python.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/builddir/build/BUILD/insight-10.0.50.20200110/gdb'
make[1]: *** [Makefile:8741: all-gdb] Error 2
make[1]: Leaving directory '/builddir/build/BUILD/insight-10.0.50.20200110'
make: *** [Makefile:849: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.lJA8Cv (%build)


As a temporary workaround, consider not building with -Werror=deprecated-declarations.



For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.9/fedora-rawhide-x86_64/01365366-insight/

For all our attempts to build insight with Python 3.9, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/insight/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.9:
https://copr.fedorainfracloud.org/coprs/g/python/python3.9/

Let us know here if you have any questions.

Python 3.9 will be included in Fedora 33. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.9.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Patrick Monnerat 2020-05-05 15:49:45 UTC
insight-10.0.50.20200110-4 should fix it.
https://koji.fedoraproject.org/koji/taskinfo?taskID=44120778

Comment 2 Miro Hrončok 2020-05-05 15:52:54 UTC
Thanks.


Note You need to log in before you can comment on or make changes to this bug.