pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: glib2 deprecation vs gtk2



>I guess the answer will be: "don't use gtk2"...
Easier said than done.
This would actually be nice but, to put it into some context...

======
pin@mybox $ pkg_info | wc -l
     192
======

Usually, I prefer gtk applications but recently things changed because I do
need a 2D molecule drawing app. chemtool hasn't seen a new release since 2013,
and gnome-chemistry-utils is even worst, 2012.
Thanks to @kamil molsketch was packaged and that's what I'm currently using.
Molsketch is in wip and is a Qt5 2D molecule drawing application.
I'm a minimalist and don't really like to mix things. So, again with the help
of @kamil I've packaged qt5ct, so I could theme qt5-apps outside a KDE/LXQt
environment. One thing lead to another and I'm mainly using qt5-applications.

Except for 3 gtk-3 applications, galculator, gnumeric and firefox.
Why?...
======
pin@mybox $ doas pkgin install speedcrunch
Password:
calculating dependencies...done.

30 packages to install:
  libdaemon-0.14nb1 flac-1.3.3 speex-1.2.0 check-0.13.0nb1 orc-0.4.31
  gstreamer1-1.16.2 libmysofa-1.0 speexdsp-1.2.0 libsndfile-1.0.28nb3
  libltdl-2.4.6 gdbm-1.14.1 consolekit-1.2.1nb3 avahi-0.6.32nb19 llvm-9.0.1
  qt5-qtserialport-5.14.1 pulseaudio-13.0nb2 openal-soft-1.20.1
  gst-plugins1-base-1.16.2 qt5-qtwebsockets-5.14.1 gsed-4.8 bash-5.0.16nb1
  xdg-utils-1.1.3nb1 qt5-qtwebchannel-5.14.1 qt5-qtsensors-5.14.1
  qt5-qtmultimedia-5.14.1 qt5-qtlocation-5.14.1 qt5-qtdeclarative-5.14.1
  clang-9.0.1 qt5-qttools-5.14.1 speedcrunch-0.12.0nb1

0 to refresh, 0 to upgrade, 30 to install
160M to download, 637M to install

proceed ? [Y/n] n
======
All these for a calculator in qt? Thanks but, no thanks. I keep galculator.

gnumeric has no alternative as calligra isn't available. Even if it was it
would most probably be worst than speedcrunch when it comes to dependencies.

Now for firefox...
======
pin@mybox $ doas pkgin install otter-browser
Password:
calculating dependencies...done.

33 packages to install:
  libdaemon-0.14nb1 flac-1.3.3 speex-1.2.0 llvm-9.0.1 gsed-4.8 check-0.13.0nb1
  orc-0.4.31 gstreamer1-1.16.2 qt5-qtserialport-5.14.1
  qt5-qtwebsockets-5.14.1 xdg-utils-1.1.3nb1 clang-9.0.1 libmysofa-1.0
  speexdsp-1.2.0 libsndfile-1.0.28nb3 libltdl-2.4.6 gdbm-1.14.1
  consolekit-1.2.1nb3 bash-5.0.16nb1 avahi-0.6.32nb19 pulseaudio-13.0nb2
  openal-soft-1.20.1 qt5-qttools-5.14.1 qt5-qtwebchannel-5.14.1
  qt5-qtsensors-5.14.1 qt5-qtlocation-5.14.1 qt5-qtdeclarative-5.14.1
  hyphen-2.8.8nb2 gst-plugins1-base-1.16.2 qt5-qtwebkit-5.212.0.alpha3nb3
  qt5-qtscript-5.14.1 qt5-qtmultimedia-5.14.1 otter-browser-1.0.01nb2

0 to refresh, 0 to upgrade, 33 to install
177M to download, 720M to install

proceed ? [Y/n] n
======
Oh no, I won't do that. I've even looked at bring qutebrowser back to life but,
it requires qt5-qttools and/or qt5-qtmultimedia and that is a no go again,

======
pin@mybox $ doas pkgin install qt5-qttools
Password:
calculating dependencies...done.

29 packages to install:
  libdaemon-0.14nb1 flac-1.3.3 speex-1.2.0 check-0.13.0nb1 orc-0.4.31
  gstreamer1-1.16.2 libmysofa-1.0 speexdsp-1.2.0 libsndfile-1.0.28nb3
  libltdl-2.4.6 gdbm-1.14.1 consolekit-1.2.1nb3 avahi-0.6.32nb19 llvm-9.0.1
  qt5-qtserialport-5.14.1 pulseaudio-13.0nb2 openal-soft-1.20.1
  gst-plugins1-base-1.16.2 qt5-qtwebsockets-5.14.1 gsed-4.8 bash-5.0.16nb1
  xdg-utils-1.1.3nb1 qt5-qtwebchannel-5.14.1 qt5-qtsensors-5.14.1
  qt5-qtmultimedia-5.14.1 qt5-qtlocation-5.14.1 qt5-qtdeclarative-5.14.1
  clang-9.0.1 qt5-qttools-5.14.1

0 to refresh, 0 to upgrade, 29 to install
159M to download, 635M to install

proceed ? [Y/n] n
pin@mybox $ doas pkgin install qt5-qtmultimedia
Password:
calculating dependencies...done.

19 packages to install:
  libdaemon-0.14nb1 flac-1.3.3 speex-1.2.0 check-0.13.0nb1 orc-0.4.31
  gstreamer1-1.16.2 libmysofa-1.0 speexdsp-1.2.0 libsndfile-1.0.28nb3
  libltdl-2.4.6 gdbm-1.14.1 consolekit-1.2.1nb3 bash-5.0.16nb1 avahi-0.6.32nb19
  qt5-qtdeclarative-5.14.1 pulseaudio-13.0nb2 openal-soft-1.20.1
  gst-plugins1-base-1.16.2 qt5-qtmultimedia-5.14.1

0 to refresh, 0 to upgrade, 19 to install
32M to download, 148M to install

proceed ? [Y/n] n
======

I don't want pulseaudio, avahi and consolekit. So, I'm keeping firefox.

Back to gtk, as said only 3 gtk-3 apps so it should be fine to...
======
pin@mybox $ doas pkgin remove gtk2+
Password:
7 packages to delete:
  firefox68-68.5.0 pcmanfm-qt-0.14.1 lximage-qt-0.14.1 libfm-qt-0.14.1
  menu-cache-1.1.0 libfm-extra-1.3.0.2nb3 gtk2+-2.24.32nb11

proceed ? [Y/n] n
======
Nope! It breaks firefox and even some of my nicer qt5-apps.

All this to say, its not so simple as to choose not to use gtk2.

Sorry for thowing wood into the fire. I wish I could untangle this dependency
hell but, I can't do it on my own and it goes rather deep.
And, sorry for being a bit out of topic here.


Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Saturday, February 29, 2020 1:01 AM, Thomas Klausner <tk%giga.or.at@localhost> wrote:

> On Fri, Feb 28, 2020 at 01:15:58PM -0500, Greg Troxel wrote:
>
> > In glib2, GTypeDebugFlags is deprecated as of 2.36.
> > But, our gtk2+ has:
> > /usr/pkg/include/gtk-2.0/gtk/gtktypeutils.h:void gtk_type_init (GTypeDebugFlags debug_flags);
> > and this is leading to a warning in pkgsrc/ham/xlog, and failure with
> > -Werror. (I have turned off deprecation warnings for xlog.)
> > So it looks like our gtk2 uses things deprecated in glib2.
> > Does anyone have any wisdom or advice.
>
> I think both are quite recent if not even the latest versions, so this
> looks like an upstream question to me.
>
> I guess the answer will be: "don't use gtk2"...
> Thomas




Home | Main Index | Thread Index | Old Index