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 1951997
Summary: | gnumeric fails to build with Python 3.10: sys.version[0:3] returns Python version as 3.1 instead of 3.10 | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> | ||||
Component: | gnumeric | Assignee: | Huzaifa S. Sidhpurwala <huzaifas> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | belegdol, huzaifas, itsme_410, mhroncok, pviktori, terra, thrnciar | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | gnumeric-1.12.50-1.fc33 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-06-13 19:45:00 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: | 1890881, 1927309, 1927313 | ||||||
Attachments: |
|
Description
Tomáš Hrnčiar
2021-04-21 09:50:53 UTC
Morten, it looks like something for upstream. I'll have a look. That code is old enough to vote. It's a wonder we didn't get bitten until now. > It's a wonder we didn't get bitten until now.
That's nothing to wonder about -- 3.10 is Python's first double-digit minor version.
Created attachment 1774631 [details]
Tentative minimal patch
This might work.
Suggestion: Use "{:d}".format(*sys.version_info) for major_ver (for consistency and future compatibility with Python 10+ -- this sounds silly now, but I guess so did Python 3.10+ once). Ignore my previous comment. It is already compatible with Python 10+. I've misread str(sys.version_info[0]) as str(sys.version[0]). The error is different now make[3]: Leaving directory '/builddir/build/BUILD/gnumeric-1.12.49/plugins/python-loader' /usr/bin/ld: cannot find -lpython Not good. I cannot actually test this, so I hope I can lean on you for a bit of debugging of what is going on here. This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/ The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build. *** Bug 1968810 has been marked as a duplicate of this bug. *** FEDORA-2021-5494c9f0c8 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-5494c9f0c8 FEDORA-2021-81b91be750 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-81b91be750 Hello, Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok). All subpackages of a package against which this bug was filled are now installable or removed from Fedora 35. Thanks for taking care of it! FEDORA-2021-5494c9f0c8 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-5494c9f0c8` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-5494c9f0c8 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-81b91be750 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-81b91be750` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-81b91be750 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2021-5494c9f0c8 has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2021-81b91be750 has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report. |