Bug 1943359
| Summary: | Unbundle libmpdec/mpdecimal (or at least provide bundled(libmpdec)/bundled(mpdecimal)) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python3.10 | Assignee: | Python Maintainers <python-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | cstratak, jskarvad, mhroncok, pviktori, python-sig, thrnciar, torsava, vstinner |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python3.10-3.10.0~b1-2.fc35 python3.10-3.10.0~b2-1.fc33 python3.10-3.10.0~b2-1.fc34 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-06-09 02:44:39 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: | |||
|
Description
Miro Hrončok
2021-03-25 21:27:33 UTC
Some very draft testing by trying to build by removing the folder:
/home/Harris/dev/cpython/Modules/_decimal/_decimal.c:32:10: fatal error: mpdecimal.h: No such file or directory
32 | #include "mpdecimal.h"
| ^~~~~~~~~~~~~
compilation terminated.
After installing mpdecimal-devel:
building '_decimal' extension
gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -DCONFIG_64=1 -DASM=1 -I/home/Harris/dev/cpython/Modules/_decimal/libmpdec -I./Include -I. -I/usr/local/include -I/home/Harris/dev/cpython/Include -I/home/Harris/dev/cpython -c /home/Harris/dev/cpython/Modules/_decimal/_decimal.c -o build/temp.linux-x86_64-3.10/home/Harris/dev/cpython/Modules/_decimal/_decimal.o
gcc -pthread -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -DCONFIG_64=1 -DASM=1 -I/home/Harris/dev/cpython/Modules/_decimal/libmpdec -I./Include -I. -I/usr/local/include -I/home/Harris/dev/cpython/Include -I/home/Harris/dev/cpython -c _decimal/libmpdec/basearith.c -o build/temp.linux-x86_64-3.10/_decimal/libmpdec/basearith.o
gcc: error: _decimal/libmpdec/basearith.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
Try --with-system-libmpdec (In reply to Miro Hrončok from comment #2) > Try --with-system-libmpdec Well I don't know why I didn't think of checking the configure script. The option exists and everything builds fine. Note by Victor: When we ubunudle, we should switch the Fedora buildbots to do the same. We should also talk to the mpdecimal Fedora maintainer about our plan. This issue affects only python3, python2 doesn't bundle libmpdec. All Python 3 packages < 3.10 now provide bundled(mpdecimal) and bundled(libmpdec) in rawhide. Backports exist but not all have been built. Python 3.10 (python3.10-3.10.0~b1-2 and further) uses the system mpdecimal. Me and cstratak now co-maintain mpdecimal in Fedora. On rawhide, there are CI tests in mpdecimal that run Python's test for the decimal module: https://src.fedoraproject.org/rpms/mpdecimal/blob/rawhide/f/tests/tests_python.yml They use the "main" Python version, which is 3.9 for now, so the tests are kinda useless at this moment, but we plan to update to Python 3.10 really soon. FEDORA-2021-0ea585e459 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-0ea585e459 FEDORA-2021-66690837c0 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-66690837c0 FEDORA-2021-0ea585e459 has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-0ea585e459` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-0ea585e459 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-66690837c0 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-66690837c0` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-66690837c0 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-40c604baa0 has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-40c604baa0` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-40c604baa0 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-7c9181adff has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-7c9181adff` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-7c9181adff See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-40c604baa0 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2021-7c9181adff has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2022-94a79eab1a has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-94a79eab1a FEDORA-2022-94a79eab1a has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report. |