#1 Disable the python2 support for now.
Merged a month ago by churchyard. Opened a month ago by kevin.
rpms/ kevin/glade3 no-python-for-now  into  master

file modified
+8 -7

@@ -1,7 +1,7 @@ 

  Name:		glade3

  Epoch:		2

  Version:	3.8.6

- Release:	6%{?dist}

+ Release:	7%{?dist}

  Summary:	User Interface Designer for GTK+ 2

  

  License:	GPLv2+

@@ -17,8 +17,6 @@ 

  BuildRequires:	itstool

  BuildRequires:	libgnomeui-devel

  BuildRequires:	libxml2-devel

- BuildRequires:	pygtk2-devel

- BuildRequires:	python2-devel

  BuildRequires:	chrpath

  

  Requires:	hicolor-icon-theme

@@ -29,7 +27,7 @@ 

  the GTK+ 2 toolkit and the GNOME desktop environment.

  

  The user interfaces designed in Glade are saved as XML, which can be used in

- numerous programming languages including C, C++, Java, Perl, Python, C#, Pike,

+ numerous programming languages including C, C++, Java, Perl, C#, Pike,

  Ruby, Haskell, Objective Caml and Scheme. Adding support for other languages

  is easy too.

  

@@ -62,7 +60,7 @@ 

  %build

  %configure --disable-static \

    --enable-gtk-doc \

-   --enable-python

+   --disable-python

  

  # Omit unused direct shared library dependencies.

  sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' libtool

@@ -114,7 +112,7 @@ 

        The user interfaces designed in Glade are saved as XML, and can be loaded

        dynamically into applications by using GtkBuilder.

        Those files can be used in many programming languages including C, C++, C#, Vala,

-       Java, Perl, Python, and others.

+       Java, Perl, and others.

        Glade's ability to connect widget signals with corresponding functions makes the

        integration of user interfaces into code even simpler.

      </p>

@@ -136,7 +134,7 @@ 

  # Rpath

  chrpath --delete $RPM_BUILD_ROOT%{_libdir}/glade3/modules/libgladegnome.so

  chrpath --delete $RPM_BUILD_ROOT%{_libdir}/glade3/modules/libgladegtk.so

- chrpath --delete $RPM_BUILD_ROOT%{_libdir}/glade3/modules/libgladepython.so

+ #chrpath --delete $RPM_BUILD_ROOT%{_libdir}/glade3/modules/libgladepython.so

  

  %check

  desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/glade-3.desktop

@@ -189,6 +187,9 @@ 

  %{_includedir}/libgladeui-1.0/gladeui

  

  %changelog

+ * Thu Sep 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2:3.8.6-7

+ - Disable Python 2 support (#1739549)

+ 

  * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2:3.8.6-6

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

  

This allows us to keep all the dependent packages and figure out how important python support is.

Signed-off-by: Kevin Fenzi kevin@scrye.com

The only suspicious one is pspp. Trying to build it in a different copr.

Does it also build without pygtk2?

You might want to mention the lack of python bindings in the description too, or omit it altogether in the languages list.

Lets hold off here for a bit. I think Xfce at least can move to using glade (gtk3/python3).

Also, yes, it does build ok removing pygtk2-devel as well (along with python2-devel).

I think Xfce at least can move to using glade (gtk3/python3).

That is indeed a better way to handle this.

I don't think so, yesterday I gave it a try and it won't work. While they moved all core components to Gtk3, at least libxfceui still supports Gtk2 (in addition to Gtk3).

Xfce applications, which I assume don't count as core components still require Gtk2 and glade3. Below is a list of packages that couldn't remain installed if libxfceui is rebuilt without the glade3 backend:

  • Thunar
  • garcon
  • greybird-xfce4-notifyd-theme
  • imsettings-xfce
  • thunar-archive-plugin
  • thunar-media-tags-plugin
  • thunar-volman
  • xfce4-appfinder
  • xfce4-datetime-plugin
  • xfce4-notifyd
  • xfce4-panel
  • xfce4-places-plugin
  • xfce4-power-manager
  • xfce4-pulseaudio-plugin
  • xfce4-screenshooter-plugin
  • xfce4-settings
  • xfdesktop

Most of those are due to garcon building against the older libxfce4ui library (libxfce4ui provides both a 1.so that is gtk2 and a 2.so that is gtk3).

➜ ~ dnf repoquery --whatrequires 'libxfce4ui-1.so.0()(64bit)'
garcon-0:0.6.4-3.fc31.x86_64
libxfce4ui-devel-0:4.14.1-1.fc31.x86_64
xfbib-0:0.1.0-11.fc31.x86_64
xfburn-0:0.5.5-5.fc31.x86_64
xfce-theme-manager-0:0.3.8-2.fc31.x86_64
xfce4-cellmodem-plugin-0:0.0.5-26.fc31.x86_64
xfce4-embed-plugin-0:1.6.0-10.fc31.x86_64
xfce4-hardware-monitor-plugin-0:1.6.0-7.fc31.x86_64
xfce4-kbdleds-plugin-0:0.0.6-17.fc31.x86_64
xfce4-mailwatch-plugin-0:1.2.0-22.fc31.x86_64
xfce4-notes-plugin-0:1.8.1-22.fc31.x86_64
xfce4-time-out-plugin-0:1.0.3-1.fc32.x86_64

Is the real list. We need those to move to gtk2/libxfce4ui-2.so

So, I think for now we should take over galde3, drop python2 from it and keep it until things are all moved to gtk3 upstream.

Also, yes, it does build ok removing pygtk2-devel as well (along with python2-devel).

I've updated the PR. And will run the checks again.

rebased onto 9ffb719

a month ago

pspp fails and succeeds in a different copr. ccig @peter

Pull-Request has been merged by churchyard

a month ago