[MacPorts] #54981: py-gobject fails to build against glib2 +quartz
MacPorts
noreply at macports.org
Tue Oct 3 15:11:52 UTC 2017
#54981: py-gobject fails to build against glib2 +quartz
--------------------------+-----------------
Reporter: michaellass | Owner:
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-gobject |
--------------------------+-----------------
Description changed by mf2k:
Old description:
> Trying to build py27-gobject when glib2 is installed with variant
> +quartz, results in the following error:
>
> {{{
> unix.override:27:10: fatal error: 'gio/gdesktopappinfo.h' file not found
> #include <gio/gdesktopappinfo.h>
> ^~~~~~~~~~~~~~~~~~~~~~~
> }}}
>
> This error is very similar to an earlier problem in gtk3 and in fact,
> someone notices this issue with py-gobject before as well:
> https://trac.macports.org/ticket/53911
> https://trac.macports.org/ticket/54379
>
> I attempted to patch py-gobject in a similar way to include
> gio/gosxappinfo.h instead but with that change applied, I get the
> following error messages:
>
> {{{
> unix.c:747:5: error: use of undeclared identifier 'GDesktopAppInfo'
> GDesktopAppInfo *ret;
> ^
> [...]
> unix.c:1227:52: error: use of undeclared identifier
> 'G_TYPE_DESKTOP_APP_INFO'; did you mean 'G_DESKTOP_APP_INFO'?
> pygobject_register_class(d, "GDesktopAppInfo",
> G_TYPE_DESKTOP_APP_INFO, &PyGDesktopAppInfo_Type, Py_BuildValue("(O)",
> &PyGObject_Type));
> ^~~~~~~~~~~~~~~~~~~~~~~
> G_DESKTOP_APP_INFO
> unix.c:261:44: note: 'G_DESKTOP_APP_INFO' declared here
> ret =
> g_desktop_app_info_get_is_hidden(G_DESKTOP_APP_INFO(self->obj));
> ^
> }}}
>
> So it looks like more changes are required to get this working. py-
> gobject is required for py-pygtk and therefore for lots of GTK
> applications such as VLC and gimp2.
>
> Attached you find full build logs as well as my first attempt at patching
> py-gobject.
New description:
Trying to build py27-gobject when glib2 is installed with variant +quartz,
results in the following error:
{{{
unix.override:27:10: fatal error: 'gio/gdesktopappinfo.h' file not found
#include <gio/gdesktopappinfo.h>
^~~~~~~~~~~~~~~~~~~~~~~
}}}
This error is very similar to an earlier problem in gtk3 and in fact,
someone notices this issue with py-gobject before as well:
#53911
#54379
I attempted to patch py-gobject in a similar way to include
gio/gosxappinfo.h instead but with that change applied, I get the
following error messages:
{{{
unix.c:747:5: error: use of undeclared identifier 'GDesktopAppInfo'
GDesktopAppInfo *ret;
^
[...]
unix.c:1227:52: error: use of undeclared identifier
'G_TYPE_DESKTOP_APP_INFO'; did you mean 'G_DESKTOP_APP_INFO'?
pygobject_register_class(d, "GDesktopAppInfo",
G_TYPE_DESKTOP_APP_INFO, &PyGDesktopAppInfo_Type, Py_BuildValue("(O)",
&PyGObject_Type));
^~~~~~~~~~~~~~~~~~~~~~~
G_DESKTOP_APP_INFO
unix.c:261:44: note: 'G_DESKTOP_APP_INFO' declared here
ret = g_desktop_app_info_get_is_hidden(G_DESKTOP_APP_INFO(self->obj));
^
}}}
So it looks like more changes are required to get this working. py-gobject
is required for py-pygtk and therefore for lots of GTK applications such
as VLC and gimp2.
Attached you find full build logs as well as my first attempt at patching
py-gobject.
--
--
Ticket URL: <https://trac.macports.org/ticket/54981#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list