Bug 1739549 - glade3 depends on Python 2
Summary: glade3 depends on Python 2
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: glade3
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
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: 2019-09-20 09:44 UTC (History)
7 users (show)

Fixed In Version: glade3-3.8.6-7.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-20 09:44:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Lumír Balhar 2019-08-09 13:47:41 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 glade3'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 glade3.
If you need anything from us, or something is unclear, please mention it here.

Thank you.

Comment 1 Ben Cotton 2019-08-13 16:53:47 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:16 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:26: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 4 Lumír Balhar 2019-08-26 13:49:13 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 Lumír Balhar 2019-09-03 10:08:50 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 6 Miro Hrončok 2019-09-11 09:21:21 UTC
According to the procedure described in https://fedoraproject.org/wiki/Changes/F31_Mass_Python_2_Package_Removal#Information_on_Remaining_Packages the package was now orphaned. If you think it was a mistake, you can provide the answers and claim the package back.

Let us know if you need any help or just need more time.

Comment 7 Kevin Fenzi 2019-09-16 16:17:32 UTC
It might be possible to build glade3 with python3? A quick try however fails due to pygtk2 pulling in python2, so that might not work after all. 

It _IS_ possible to build it without python widgets at all... here's a scratch build:
https://koji.fedoraproject.org/koji/taskinfo?taskID=37689944

So, I'd like to I guess take it back over and build it without python for now, unless others have better ideas. :)

Comment 8 Miro Hrončok 2019-09-16 16:46:17 UTC
Sounds good. If you do a PR, we can run https://pagure.io/stewardship-sig/blob/master/f/scripts/review_pr.py on it (it rebuilds all dependent packages in a copr repo) to see what breaks.

Comment 10 Kevin Fenzi 2019-09-17 22:22:08 UTC
So, I guess I was confused by the glade/glade3 versioning/naming. :) 

It seems glade3 is the old gtk2/python2 one. 
Xfce really should be building against the new gtk3/python3 one (glade), and perhaps other packages in the list are similar. 

So, I am going to see if we can move the Xfce packages out, and then see whats left. Perhaps it would then be ok to retire glade3. Or if there's still things using it and someone wants to keep it, we could just drop python2 from it as proposed in that PR above. Also note that it does seem to build ok without pygtk2-devel (when disabling python support).

Comment 11 Miro Hrončok 2019-09-17 23:13:24 UTC
I propose the following:

 1. move xfce to glade
 2. keep glade3 orphaned and see who cares
 3. (either) retire after 6 weeks
 3. (or) drop python2/pygtk2 if unorphaned

Comment 12 Dridi Boukelmoune 2019-09-18 17:15:23 UTC
Xfce already supports glade, at least libxfceui supports both glade and glade3 backends. Below is an extract of the configure script summary when both are available:

    Build Configuration:

    * GTK2 support:  yes
    * Glade Interface Designer:  yes
      - Catalog directory:       /usr/share/glade3/catalogs
      - Module directory:        /usr/lib64/glade3/modules
      - Pixmap directory:        /usr/share/glade3/pixmaps
    * Glade 3.0 Interface Designer:  yes
      - Catalog directory:       /usr/share/glade/catalogs
      - Module directory:        /usr/lib64/glade/modules
      - Pixmap directory:        /usr/share/glade/pixmaps

I think Kevin's plan to remove python 2 bindings from glade is the best option to explore, we need glade3 for basic Xfce applications such as Thunar.

Comment 13 Miro Hrončok 2019-09-20 09:44:27 UTC
Removed Python 2 support from glade3.

The only impacted package is pspp, but only because it used python2 without BRing it: https://src.fedoraproject.org/rpms/pspp/pull-request/1

I've claimed the glade3 package and added kevin, dridi and nonamedotc as admins. I plan to orphan it again once Xfce stops using it.


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