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
Bug 1453185 - gnatcoll: Switch to Python 3
Summary: gnatcoll: Switch to Python 3
Alias: None
Product: Fedora
Classification: Fedora
Component: gnatcoll
Version: 28
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Pavel Zhukov
QA Contact: Fedora Extras Quality Assurance
Depends On: 1444614
Blocks: PYTHON3
TreeView+ depends on / blocked
Reported: 2017-05-22 10:54 UTC by Iryna Shcherbina
Modified: 2018-02-22 13:16 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-02-22 13:16:36 UTC
Type: Bug

Attachments (Terms of Use)

Description Iryna Shcherbina 2017-05-22 10:54:50 UTC
Upstream, this software supports Python 3 [0]. Please provide a Python 3
package for Fedora.

According to the Python packaging guidelines [1], software must be
packaged for Python 3 if upstream supports it.
The guidelines give detailed information on how to do this, and even
provide an example spec file [2].

Since users aren't expected to import this tool from Python code,
you can just switch to /usr/bin/python3. Alternatively, if you want or
need to keep a Python 2 version, the current best practice is to provide
subpackages -- this is called "Common SRPM" in the guidelines.

It's OK to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 25 as well.

If you need more instructions, a guide for porting Python-based RPMs is
available at [3].
If anything is unclear, or if you need any kind of assistance with the
porting, you can ask on IRC (#fedora-python on Freenode), or reply here.
We'll be happy to help!


Comment 1 Pavel Zhukov 2017-07-20 15:28:29 UTC
gnatcoll in rawhide doesn't depend on python/python2 anymore. Actually it's built without python support because of bugs in upstream aclocal script.

Comment 2 Iryna Shcherbina 2018-02-19 12:19:25 UTC
Reopening the bug, as gnatcoll-2017-11.fc28 started to depend on `/usr/bin/python2` since version 2017-11.

This happened, due to recently introduced shebangs mangling [0].
You might see the warning in the build log:

> *** WARNING: mangling shebang in ./usr/share/gnatcoll/ from #!/usr/bin/env python to #!/usr/bin/python2. This will become an ERROR, fix it manually!

Given that `` is compatible with Python 2 and Python 3, please switch the shebang to `#!/usr/bin/python3` manually.


Comment 3 Fedora End Of Life 2018-02-20 15:23:03 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 4 Pavel Zhukov 2018-02-22 13:16:36 UTC

Note You need to log in before you can comment on or make changes to this bug.