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 1739548 - gnome-desktop depends on Python 2
Summary: gnome-desktop depends on Python 2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-desktop
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Yaakov Selkowitz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F31_PY2REMOVAL
TreeView+ depends on / blocked
 
Reported: 2019-08-09 13:47 UTC by Lumír Balhar
Modified: 2020-07-13 20:05 UTC (History)
11 users (show)

Fixed In Version: gnome-desktop-2.32.0-27.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 20:05:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch for rawhide (2.27 KB, patch)
2019-08-26 14:51 UTC, Yaakov Selkowitz
no flags Details | Diff

Description Lumír Balhar 2019-08-09 13:47:29 UTC
Python 2.7 will reach end-of-life in January 2020, over 9 years after it was released. This falls within the Fedora 31 lifetime.
Packages that depend on Python 2 are being switched to Python 3 or removed from Fedora: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages
Python 2 will be retired in Fedora 32: https://fedoraproject.org/wiki/Changes/RetirePython2

To help planning, we'd like to know the plans for gnome-desktop's future. Specifically:


- What is the reason for the Python2 dependency? (Is it software written in Python, or does it just provide Python bindings, or use Python in the build system or test runner?) 

- What are the upstream/community plans/timelines regarding Python 3?

- What is the guidance for porting to Python 3? (Assuming that there is someone who generally knows how to port to Python 3, but doesn't know anything about the particular package, what are the next steps to take?)


This bug is filed semi-automatically, and might not have all the context specific to gnome-desktop.
If you need anything from us, or something is unclear, please mention it here.

Thank you.

Comment 1 Ben Cotton 2019-08-13 16:59:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Ben Cotton 2019-08-13 17:15:20 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 3 Lumír Balhar 2019-08-19 11:25:58 UTC
Please answer the above questions. If you don't, the package can be orphaned: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages

If you need any information or help, or if you need some more time, please let us know.

Comment 4 Lumír Balhar 2019-08-26 13:49:05 UTC
Please answer the above questions. If you don't, the package can be orphaned: https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages

If you need any information or help, or if you need some more time, please let us know.

Comment 5 Yaakov Selkowitz 2019-08-26 14:37:28 UTC
I'm not the PoC for the Fedora builds, but let me help clarify.

(In reply to Lumír Balhar from comment #0)
> - What is the reason for the Python2 dependency? (Is it software written in
> Python, or does it just provide Python bindings, or use Python in the build
> system or test runner?) 

The gnome-about application uses pygtk2.

> - What are the upstream/community plans/timelines regarding Python 3?

None for this version.  This is a compat package for old GNOME2-based applications.

> - What is the guidance for porting to Python 3? (Assuming that there is
> someone who generally knows how to port to Python 3, but doesn't know
> anything about the particular package, what are the next steps to take?)

IMO the best path forward would be to drop the obsolete gnome-about application and only ship the libgnome-desktop-2 library and other miscellaneous data.

Comment 6 Yaakov Selkowitz 2019-08-26 14:51:07 UTC
Created attachment 1608152 [details]
Patch for rawhide

Scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=37294828

Comment 7 Lumír Balhar 2019-09-03 10:08:40 UTC
From the configure part in the build log of your scratch build it seems that it still checks the presence of python2. I'm not sure what will happen when it'll be unavailable. But it seems that the RPM from the latest build does not depend on Python 2.

checking for python... no
checking for python2... /usr/bin/python2
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages

https://kojipkgs.fedoraproject.org//work/tasks/4831/37294831/build.log

Comment 8 Miro Hrončok 2019-09-22 11:30:13 UTC
Automation has figured out the package is retired in Fedora 31.

If you like it to be unretired, please open a ticket at https://pagure.io/releng/new_issue?template=package_unretirement

Comment 9 Petr Viktorin 2020-02-17 09:57:30 UTC
The package was unretired. It still depends on Python 2.

If you want to keep your package in Fedora and you cannot port it to Python 3 yet, you need to request a FESCo exception for the package and all its Python 2 dependencies (even transitive) [1]. This is a process to ensure maintainers of all the dependencies are OK twith continuing to maintain py2 versions.
Here's an example exceptions request: https://pagure.io/fesco/issue/2238

gnome-desktop currently uses:
  pycairo
     python2-setuptools
  pygtk2
     pygobject2

All these have an exception for Gimp, but you should contact the maintainers anyway and include them in the exception for gnome-desktop, so they aren't removed if Gimp is retired/modularized.


[1] https://fedoraproject.org/wiki/Changes/RetirePython2#FESCo_exceptions

Comment 10 Kalev Lember 2020-03-08 16:21:33 UTC
According to my repoquery there's nothing in Fedora 32 that uses gnome-desktop any more and I believe it should be safe to retire it now.

Comment 11 Fedora Admin user for bugzilla script actions 2020-07-01 14:52:06 UTC
This package has changed maintainer in the Fedora.
Reassigning to the new maintainer of this component.

Comment 12 Yaakov Selkowitz 2020-07-13 20:05:39 UTC
gnome-about has been removed from the gnome-desktop package.


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