Opened 7 years ago

Closed 3 years ago

#54379 closed defect (worksforme)

gtk3 build needs gio/gdesktopappinfo.h which is not available

Reported by: peterjw (Peter J. W.) Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.4.1
Keywords: Cc: libsystem-ethan
Port: gtk3

Description (last modified by mf2k (Frank Schima))

~ root# port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.4.1 installed,
MacPorts base version 2.4.1 downloaded.
--->  Updating the ports tree
--->  MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
~ root# port echo outdated
gtk3                           @3.22.1_0+quartz
~ root# port diagnose

~ root# port clean --all gtk3 ; port install gtk3
--->  Cleaning gtk3
--->  Computing dependencies for gtk3
--->  Fetching distfiles for gtk3
--->  Attempting to fetch gtk+-3.22.11.tar.xz from http://artfiles.org/gnome.org/sources/gtk+/3.22/
--->  Verifying checksums for gtk3                                              
--->  Extracting gtk3
--->  Applying patches to gtk3
--->  Configuring gtk3
--->  Building gtk3
Error: Failed to build gtk3: command execution failed
Error: See /opt/macports/var/macports/logs/_opt_macports_var_macports_sources_rsync.macports.org_release_tarballs_ports_gnome_gtk3/gtk3/main.log for details.
~ root# find /opt/macports -name gdesktopappinfo.h
~ root# xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
~ root# xcode-select -v
xcode-select version 2339.

~ root#

Searching that file leads to the message

:info:build gtkapplicationwindow.c:34:10: fatal error: 'gio/gdesktopappinfo.h' file not found

which is - indeed - not available. It has been, before I did all possible upgrades and cleans, but the error has been the same.

After doing all kind of upgrades and debugging, I am out of ideas. Maybe this is realy a bug of the port, but then somebody else would propably have reported it already (I did not find anything matching in tickets assigned to gtk3).

Apple isn't offering me an update for XCode.

Any help would be highly appreciated,

Thanks,

Peter

Attachments (1)

main.log (490.1 KB) - added by peterjw (Peter J. W.) 7 years ago.
gtk3/main.log

Download all attachments as: .zip

Change History (12)

Changed 7 years ago by peterjw (Peter J. W.)

Attachment: main.log added

gtk3/main.log

comment:1 Changed 7 years ago by mf2k (Frank Schima)

Owner: set to dbevans
Status: newassigned

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers gtk3), if any.

comment:2 Changed 7 years ago by mf2k (Frank Schima)

Description: modified (diff)

comment:3 in reply to:  2 Changed 7 years ago by peterjw (Peter J. W.)

Replying to mf2k: Thanks for the edit. Sorry for not reading the Guidlines till the end (I stopped when they explained how to open a ticket in trac as I didn't expect anything new further down - sorry again.)

comment:4 Changed 7 years ago by libsystem-ethan

Cc: libsystem-ethan added

comment:5 Changed 7 years ago by libsystem-ethan

I'm receiving this when building py27-gobject. The offending file seems to be pygobject-2.28.6/gio/unix.override at line 27 (#include <gio/gdesktopappinfo.h>).

comment:6 Changed 7 years ago by kencu (Ken)

See comment:ticket:53911:11 for a hint.

Dave was going to explain the +quartz vs +x11 variants thingy last year, and exactly what goes on with some ports being one but not the other, and some both -- but I never saw the end result of that analysis.

I found I had trouble with the +quartz variants, much as I wanted them to work. I always seemed to have the wrong version (quartz vs x11) installed for what the next port wanted, and lots of ports needed the +x11 support. I eventually gave up on quartz, and stuck with x11. Haven't had trouble since. Maybe somebody can explain better what really goes on behind the scenes.

Here's what I have

gtk3 @3.22.11_1+x11 (active) platform='darwin 16' archs='x86_64' date='2017-05-30T17:14:17-0700'
glib2 @2.52.3_0+universal+x11 (active) platform='darwin 16' archs='i386 x86_64' date='2017-06-25T22:47:59-0700'
Last edited 4 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:7 Changed 7 years ago by peterjw (Peter J. W.)

The reported problem seems to be gone with gtk3 @3.22.21_0+quartz or before. (Didn't try the version in between)

comment:8 Changed 7 years ago by seanchannel (Sean Channel)

as far as I can tell gio/gdesktopappinfo.h should come from the glib2 distribution / source, but the port affected here is marked as gtk3. HTH.

comment:9 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy added

comment:10 Changed 3 years ago by mascguy (Christopher Nielsen)

Cc: mascguy removed
Owner: changed from dbevans to mascguy

comment:11 Changed 3 years ago by mascguy (Christopher Nielsen)

Resolution: worksforme
Status: assignedclosed

Generally speaking, this issue occurs when there's a mismatch between Quartz and X11 components. And specifically, when glib2 is installed as Quartz, while dependents are built as X11.

Reason: gio/gdesktopappinfo.h is only provided by glib2, when installed as X11.

These annoyances should be resolved once we provide separate X11 and Quartz subports, for glib2 and other components. That work is tracked by issue:63680

Note: See TracTickets for help on using tickets.