Opened 5 months ago

Closed 6 weeks ago

#62696 closed defect (fixed)

gtk3 @3.24.23_0+x11.: fatal error: 'gio/gdesktopappinfo.h' file not found as glib2 no longer provides it on 10.6 i386

Reported by: ryandesign (Ryan Schmidt) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: snowleopard Cc:
Port: gtk3 glib2

Description

This build failure happens on 10.6 i386 only (not on 10.6 x86_64, not on 10.7 or later versions):

https://build.macports.org/builders/ports-10.6_i386-builder/builds/26507/steps/install-port/logs/stdio

gdkapplaunchcontext-x11.c:30:10: fatal error: 'gio/gdesktopappinfo.h' file not found
#include <gio/gdesktopappinfo.h>
         ^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[4]: *** [gdkapplaunchcontext-x11.lo] Error 1

We did not have this problem with gtk3 @3.24.22_0+x11.

I don't know if this is really a new problem in 3.24.23 that only affects 10.6 i386, or if something else changed coincidentally at the same time.

Change History (5)

comment:1 Changed 5 months ago by ryandesign (Ryan Schmidt)

Similar error reported in #54379 but that was on OS X 10.10 and was reported no longer to be happening 4 years ago.

comment:2 Changed 7 weeks ago by kencu (Ken)

The issue seems to really be with glib2, which for some as-yet-unknown reason no longer provides the file

gio/gdesktopappinfo.h

on 10.6 i386 whereas it does provide that file on other systems, and apparently used to provide it on 10.6 i386 but now does not.

I don't know why that is happening, but I did notice that glib2-devel does provide that file on 10.6 i386, so gtk3 can build through if glib2-devel is installed.

As an update of glib2 to glib2-devel seems impending, it is possible that it might be most convenient to just do that rather than sort out why glib2 is no longer providing the missing file.

Last edited 7 weeks ago by kencu (Ken) (previous) (diff)

comment:3 Changed 7 weeks ago by kencu (Ken)

Port: glib2 added
Summary: gtk3 @3.24.23_0+x11.: fatal error: 'gio/gdesktopappinfo.h' file not foundgtk3 @3.24.23_0+x11.: fatal error: 'gio/gdesktopappinfo.h' file not found as glib2 no longer provides it on 10.6 i386

comment:4 Changed 7 weeks ago by kencu (Ken)

It seems to have something to do with the fact that during the build of glib2 Cocoa support is not found on i386 10.6:

checking for Mac OS X Carbon support... no
checking for Mac OS X Cocoa support... no

and our patch for glib2 seems to need Cocoa enabled to add the gdesktopappinfo.h header:

--- gio/Makefile.am.orig	2019-01-21 07:38:50.000000000 -0600
+++ gio/Makefile.am	2019-01-30 10:36:31.000000000 -0600
@@ -255,9 +255,13 @@
 if OS_UNIX
 platform_libadd += xdgmime/libxdgmime.la
 platform_deps += xdgmime/libxdgmime.la
-if !OS_COCOA
+if OS_COCOA
+if APPINFO_IMPL_NATIVE
+appinfo_headers += gosxappinfo.h
+else
 appinfo_headers += gdesktopappinfo.h
 endif
+endif

So why this doesn't work now is still an open question.

Last edited 7 weeks ago by kencu (Ken) (previous) (diff)

comment:5 Changed 6 weeks ago by kencu (Ken)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.