Fedora Account System
Red Hat Associate
Red Hat Customer
m2crypto uses distutils. That means with Python 3.12 - where distutils is removed - it effectively runtime requires setuptools, as setuptools provides a hack to supply distutils. This is easy to verify. Set up a clean F39 or Rawhide environment without python3-setuptools installed, and try to import m2crypto. It will fail. Install setuptools and it will work. An alternative, of course, would be to send a patch upstream to drop m2crypto's use of distutils, then backport it.
Could you please report this upstream? https://gitlab.com/m2crypto/m2crypto
well, probably the appropriate issue for upstream would be "stop using distutils"...I can file that.
oh, looks like upstream already fixed this in https://gitlab.com/m2crypto/m2crypto/-/commit/ce75069d20053ad7bd558166eeb7c9ec8c7d77da (which just kinda dropped it all) then https://gitlab.com/m2crypto/m2crypto/-/commit/b83e39ed09e46f9f2c506d56d22f08f1f2d2b63c (which added it back but with safety for distutils not being there).
It's probably going to be safer to upgrade m2crypto and then backport the second patch... seems upstream made releases while I wasn't looking! :P
This bug appears to have been reported against 'rawhide' during the Fedora Linux 40 development cycle. Changing version to 40.
Is there any progress in making recent m2crypto working on recent releases? What are blockers, if I may ask? Should the effort spent into migrating remaining packages away from it?
FEDORA-2024-5e75b28838 (m2crypto-0.41.0^git20240613.3156614-1.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-5e75b28838
FEDORA-2024-5e75b28838 has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5e75b28838` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5e75b28838 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2024-5e75b28838 (m2crypto-0.41.0^git20240613.3156614-1.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report.