[MacPorts] #69378: gtk3 @3.24.38: ERROR: Dependency "appleframeworks" not found, tried framework (IOSurface) (was: gtk3 @3.24.38 fails to configure for missing appleframeworks (Leopard 10.5))

MacPorts noreply at macports.org
Wed Feb 21 11:06:31 UTC 2024


#69378: gtk3 @3.24.38: ERROR: Dependency "appleframeworks" not found, tried
framework (IOSurface)
-----------------------+----------------------
  Reporter:  rmottola  |      Owner:  mascguy
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:
Resolution:            |   Keywords:  leopard
      Port:  gtk3      |
-----------------------+----------------------
Changes (by ryandesign):

 * owner:  (none) => mascguy
 * status:  new => assigned


Comment:

 "appleframeworks" appears to be gtk3's generic name for any Apple
 framework. According to
 [https://gitlab.gnome.org/GNOME/gtk/-/blob/3.24.38/gdk/quartz/meson.build?ref_type=tags#L48-53
 the source code], it is looking for the frameworks CoreGraphics, AppKit,
 Cocoa, Carbon, QuartzCore, and IOSurface, and all of them are marked
 required.

 Although [https://developer.apple.com/documentation/coregraphics
 CoreGraphics] was available in earlier Mac OS X versions as part of the
 ApplicationServices framework, it was not a top-level framework until OS X
 10.8, and meson can only find top-level frameworks, therefore we use
 [browser:macports-ports/gnome/gtk3/files/patch-quartz-meson-
 appleframeworks.diff?rev=fb2e768a990260b7f04b447ead2596c96f3bbd97 a
 patchfile] that makes CoreGraphics optional. That's the first "NO (tried
 framework)" in your output and is fine.

 AppKit, Cocoa, Carbon, and QuartzCore were all found, so that's fine.

 [https://developer.apple.com/documentation/iosurface IOSurface] was
 introduced in Mac OS X 10.6, which is the second "NO (tried framework)" in
 your output. Since IOSurface is still marked as required, this is why your
 build fails on Mac OS X 10.5. I don't know how gtk3 uses IOSurface so I
 don't know whether it can be made optional.

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


More information about the macports-tickets mailing list