Bug 1808355
Summary: | python-greenlet fails to build with Python 3.9: error: ‘_Py_DEC_REFTOTAL’ undeclared | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-greenlet | Assignee: | Kevin Fenzi <kevin> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | apevec, cstratak, igor.raits, kevin, mhroncok, michel, mplch, shamardin, terje.rosten, vstinner |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-25 13:01:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1785415 |
Description
Miro Hrončok
2020-02-28 10:04:44 UTC
Setting the severity to high. This package is part of the initial bootstrap sequence. Without it, we cannot proceed with the bootstrap in a Koji side tag. https://fedoraproject.org/wiki/Changes/Python3.9#Important_dates_and_plan The current plan is to follow the "ideal point when we can start rebuilding in Koji" -- that is we need to get this bug fixed approximately in 2 months. That includes potential uncovered bugs in packages that depend on this one. Please knowledge that you have read this message and that you can dedicate time to fix it. If you know already that you won't be able to fix it by the deadline, please let us know ASAP, so we can allocate resources to do that. Thank You. (This comment is posted to multiple Bugzillas, please forgive me if it's not 100% accurate.) Looks like this one succeded? https://copr-be.cloud.fedoraproject.org/results/%40python/python3.9/fedora-rawhide-x86_64/01210367-python-greenlet/ That was from january tho. Is that the right place to look? https://copr.fedorainfracloud.org/coprs/g/python/python3.9/package/python-greenlet/ is indeed a right place to look. However, the successful build from January is with 3.9.0a3. The failure started with 3.9.0a4. Note that _underscored names are not part of the API. _Py_DEC_REFTOTAL was removed in https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924 commit 49932fec62c616ec88da52642339d83ae719e924 Author: Victor Stinner <vstinner> Date: Mon Feb 3 17:55:05 2020 +0100 bpo-39542: Simplify _Py_NewReference() (GH-18332) * Remove _Py_INC_REFTOTAL and _Py_DEC_REFTOTAL macros: modify directly _Py_RefTotal. * _Py_ForgetReference() is no longer defined if the Py_TRACE_REFS macro is not defined. * Remove _Py_NewReference() implementation from object.c: unify the two implementations in object.h inline function. * Fix Py_TRACE_REFS build: _Py_INC_TPALLOCS() macro has been removed. Include/object.h | 42 +++++++++++++++--------------------------- Modules/_testcapimodule.c | 8 +++++--- Objects/bytesobject.c | 6 +++++- Objects/dictobject.c | 26 ++++++++++++++++++-------- Objects/object.c | 21 +++++---------------- Objects/tupleobject.c | 9 +++++++-- Objects/unicodeobject.c | 6 +++++- 7 files changed, 60 insertions(+), 58 deletions(-) I proposed a fix upstream: https://github.com/python-greenlet/greenlet/pull/161 > Note that _underscored names are not part of the API. _Py_DEC_REFTOTAL was removed in https://github.com/python/cpython/commit/49932fec62c616ec88da52642339d83ae719e924 I'm always surprised when I discover that developers rely on private APIs... But greenlet is very low-level, and so has to "hack" CPython internals ;-) So, shall we just carry Victor's patch for now? :) I'm not sure how active upstream really is... We can give it couple weeks. The next mass rebuild in our copr will happen after the 3.9.0a5 release, that should happen early next week. https://www.python.org/dev/peps/pep-0596/#schedule I'll make sure we patch greenlet manually during that. > I'm not sure how active upstream really is... The project is still active: I see multiple changes many one month ago. https://github.com/python-greenlet/greenlet/commits/master That's way more active than many projects ;-) > I proposed a fix upstream: https://github.com/python-greenlet/greenlet/pull/161 My change has been merged: https://github.com/python-greenlet/greenlet/commit/c644ca6823994b958e004b3e00b587723181b58e |