[MacPorts] #61113: py27-gobject +quartz build failure: implicit declaration of function 'g_desktop_app_info_set_desktop_env'

MacPorts noreply at macports.org
Fri Sep 4 07:15:28 UTC 2020


#61113: py27-gobject +quartz build failure: implicit declaration of function
'g_desktop_app_info_set_desktop_env'
-------------------------+--------------------
  Reporter:  jmercouris  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.3
Resolution:              |   Keywords:
      Port:  py-gobject  |
-------------------------+--------------------
Changes (by ryandesign):

 * cc: ryandesign (added)


Comment:

 MacPorts glib2 contains a substantial patch written by a MacPorts
 contributor to implement a new glib2 feature: the introduction of a macOS-
 specific appinfo implementation. Previously, glib2 only offered a
 "freedesktop" appinfo implementation which was suitable for Linux systems
 but not as useful for Macs.

 g_desktop_app_info_set_desktop_env is part of the "freedesktop" appinfo
 implementation which we now offer only in the +x11 variant. It's not
 available when you select the macOS appinfo implementation by using the
 +quartz variant.

 py-gobject evidently uses g_desktop_app_info_set_desktop_env, so py-
 gobject cannot be used with glib2's +quartz variant. If you want py-
 gobject, you'll need to use +x11 for glib2 and everything else. Or you
 might ask the developers of py-gobject if they want to stop using
 g_desktop_app_info_set_desktop_env, since it has been deprecated since
 glib 2.42. Or maybe we can apply
 [https://git.qyliss.net/nixlib/tree/nixpkgs/pkgs/development/python-
 modules/pygobject/pygobject-2.0-fix-darwin.patch this patch] to py-gobject
 to do so.

 Here is the [https://gitlab.gnome.org/GNOME/glib/-/issues/1263 issue
 tracking the new macOS appinfo implemenation]. Over three years later it
 still hasn't been resolved. The last comments in the issue, from over a
 year ago, are about maybe reimplementing it as a runtime option.

 In the mean time, glib2 has switched to meson, and any further development
 by them of this feature will be incorporated into the meson build system.
 MacPorts has not [ticket:58261 updated to a meson version of glib2] yet
 because that is difficult.

-- 
Ticket URL: <https://trac.macports.org/ticket/61113#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list