Bug 1323228
Summary: | FlightCrew: Please use python3 shebang | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomas Orsava <torsava> |
Component: | FlightCrew | Assignee: | Hans de Goede <hdegoede> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 25 | CC: | dan, fredhgl, hdegoede, lbalhar, mhroncok, pviktori |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | FlightCrew-0.9.1-3.fc25 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-08-27 10:33:42 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: | 1285816, 1312032 | ||
Attachments: |
Description
Tomas Orsava
2016-04-01 15:23:30 UTC
We do not provide a python subpackage at all, the only .py file in FlightCrew 0.9.1 (the current version) is a plugin for Sigil, which is already using python3. Sorry for the wrong diagnosis. The plugin's shebang, #!/usr/bin/python, causes the FlightCrew-sigil-plugin RPM to depend on Python 2. Could the shebang be changed to /usr/bin/python3? May I make a patch for you? (In reply to Frederico Henrique Gonçalves Lima from comment #3) > May I make a patch for you? I have this on my todo list but at a low priority, so yes a patch would definitely be welcome. Thanks, Hans p.s. I'm going on vacation for 2 weeks starting this Monday, so if it takes a while to apply the patch that is why. Created attachment 1181331 [details]
patch for the Flightcrew-plugin
I've changed the shebang to python3 on the
/src/FlightCrew-plugin/plugin.py
can you check if its correct?
Thanks
Created attachment 1181335 [details]
Another patch for all shebangs in the Flightcrew package changed to py3
I've created another patch.
The difference is that this new patch don't change only the plugin shebangs, but all the shebangs, from python to python3 and the envs on the package.
If its not the plan of the maintainer, use only the first patch, the patch that change only the plugin shebang.
Created attachment 1181413 [details]
resend of the patch that change shebang of the plugin
resend of the patch that change shebang of the plugin
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'. This patch is simple and looks good to me. If you want to apply it during RPM building process we can help you with change in specfile but it will be simple as well. Created attachment 1189230 [details] Fixing python shebang Hello. I am providing patch for specfile in which I am using `sed` command to change python shebang instead of patch in separated file. It's up to the maintainer to decide which approach is better for this package. Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=15186172 Have a nice day. Thanks for the patches. I've gone with the patch using the sed as that should avoid the need to rebase patches when updating to a newer upstream version. I've started builds with this patch for F25+, closing. 25 now has bodhi, please don't forget to do the update. FlightCrew-0.9.1-3.fc25 sigil-0.9.6-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-890e97bb53 FlightCrew-0.9.1-3.fc25, sigil-0.9.6-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-890e97bb53 FlightCrew-0.9.1-3.fc25, sigil-0.9.6-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |