Public bug reported:

Attempting to compile libappindicator 12.10.0 from source fails for me
on Artix:

app-indicator.c: In function 'app_indicator_init':
app-indicator.c:584:13: error: G_ADD_PRIVATE [-Werror]
  584 |  AppIndicatorPrivate * priv = APP_INDICATOR_GET_PRIVATE(self);
      |             ^~~~~~~~~~~~~~~
cc1: all warnings being treated as errors

Research suggests that this is may be because
"g_type_class_add_private", which is used in app-indicator.c at line
212, is deprecated by glib2, see: https://blog.gtk.org/2018/07/11/news-
from-glib-2-58/

Further research suggests that this may be "solvable" by replacing
-werror with -wno-error, but that seems like an untidy band-aid at best.

** Affects: libappindicator (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to libappindicator in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1861503

Title:
  libappindicator won't compile because "g_type_class_add_private"
  deprecated

Status in libappindicator package in Ubuntu:
  New

Bug description:
  Attempting to compile libappindicator 12.10.0 from source fails for me
  on Artix:

  app-indicator.c: In function 'app_indicator_init':
  app-indicator.c:584:13: error: G_ADD_PRIVATE [-Werror]
    584 |  AppIndicatorPrivate * priv = APP_INDICATOR_GET_PRIVATE(self);
        |             ^~~~~~~~~~~~~~~
  cc1: all warnings being treated as errors

  Research suggests that this is may be because
  "g_type_class_add_private", which is used in app-indicator.c at line
  212, is deprecated by glib2, see: https://blog.gtk.org/2018/07/11
  /news-from-glib-2-58/

  Further research suggests that this may be "solvable" by replacing
  -werror with -wno-error, but that seems like an untidy band-aid at
  best.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libappindicator/+bug/1861503/+subscriptions

-- 
Mailing list: https://launchpad.net/~dx-packages
Post to     : dx-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dx-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to