Bug 1897148

Summary: m2crypto fails to build with Python 3.10: PyObject_AsReadBuffer() is removed
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: m2cryptoAssignee: Neal Gompa <ngompa13>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: gholms, mhroncok, ngompa13, python-sig, thrnciar
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: m2crypto-0.37.1-1.fc35 m2crypto-0.37.1-1.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-29 14:10:25 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:
Bug Depends On:    
Bug Blocks: 1890881    

Description Tomáš Hrnčiar 2020-11-12 12:45:36 UTC
m2crypto fails to build with Python 3.10.0a2.

ImportError: /builddir/build/BUILD/M2Crypto-0.35.2/M2Crypto/_m2crypto.cpython-310-x86_64-linux-gnu.so: undefined symbol: PyObject_AsReadBuffer

bpo-41103: PyObject_AsCharBuffer(), PyObject_AsReadBuffer(), PyObject_CheckReadBuffer(), and PyObject_AsWriteBuffer() are removed. Please migrate to new buffer protocol; PyObject_GetBuffer() and PyBuffer_Release().


For the build logs, see:

For all our attempts to build m2crypto with Python 3.10, see:

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.10:

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
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 2 Ben Cotton 2021-02-09 15:23:49 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 34 development cycle.
Changing version to 34.

Comment 3 Tomáš Hrnčiar 2021-03-29 12:17:21 UTC
Hello Neal,

is there any update on this? There are two packages depending on m2crypto (ipsilon and module-build-service), we cannot test them with Python 3.10 without it. 

Thank you

Comment 4 Neal Gompa 2021-03-29 14:10:25 UTC
Sorry, I forgot to close this when I updated m2crypto 0.37.1. This should be fixed now: https://gitlab.com/m2crypto/m2crypto/-/commit/6bb65c27f01dd69f08c4654ce531fb283c7bcc07

Comment 5 Miro Hrončok 2021-03-29 14:13:17 UTC
But it is not. See https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/m2crypto/