[MacPorts] #44062: root6: either make it work on 10.6 (or declare it broken)

MacPorts noreply at macports.org
Wed Jun 18 09:58:27 PDT 2014


#44062: root6: either make it work on 10.6 (or declare it broken)
----------------------+--------------------------------
  Reporter:  mojca@…  |      Owner:  macports-tickets@…
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:
Resolution:           |   Keywords:  snowleopard
      Port:  root6    |
----------------------+--------------------------------

Comment (by mojca@…):

 Citing myself for future reference:

 > The first (but trivial to solve) problem was that Xcode in 10.6
 > installs SDK to `/Developer/SDKs/MacOSX10.6.sdk` (it does that also in
 > early versions for 10.7).
 >
 > So the second line here (line 2597) fails to configure:
 > {{{
 > xcodepath=`/usr/bin/xcode-select -print-path`
 >
 osxsdk=$xcodepath/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$macosxvers.sdk
 > }}}
 > I had to adjust the line to also check for
 > {{{
 > osxsdk=$xcodepath/SDKs/MacOSX$macosxvers.sdk
 > }}}
 >
 > then the configure step succeeded. I would need to write a proper
 > patch for that, but that's trivial.
 >
 > But then there are four functions used that have only been introduced in
 10.7:
 >   *
 https://developer.apple.com/library/mac/documentation/Carbon/reference/CTFontRef/Reference/reference.html#//apple_ref/c/func/CTFontDrawGlyphs
 >   *
 https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWindow_Class/Reference/Reference.html
 >
 > 1. `convertRectToScreen` (on < 10.7 `convertBaseToScreen`)
 > 2. `convertRectFromScreen` (on < 10.7 `convertScreenToBase`)
 > 3. `backingScaleFactor` (on < 10.7 `userSpaceScaleFactor`, but maybe
 combined with something else?)
 > 4. `CTFontDrawGlyphs` (I don't know how to replace it, but I have found
 [https://bugzilla.mozilla.org/show_bug.cgi?id=715798 this thread])
 >
 > Affected files:
 >   * `graf2d/cocoa/src/QuartzWindow.mm`
 >   * `ROOTOpenGLView.mm`
 >   * `TGCocoa.mm`
 >   * `TGQuartz.mm`
 >   * `graf2d/quartz/src/QuartzText.mm`
 >
 > I attempted to fix the first three, commented out the fourth and the
 > build succeeded. It displays graphics, but then disappears (maybe a
 > subject to my faulty fixes, maybe something else).

-- 
Ticket URL: <https://trac.macports.org/ticket/44062#comment:24>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list