[MacPorts] #64655: libsdl2: find some version to use for Tiger and Leopard

MacPorts noreply at macports.org
Tue Mar 1 23:14:29 UTC 2022


#64655: libsdl2: find some version to use for Tiger and Leopard
---------------------------+------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc, leopard
      Port:  libsdl2       |
---------------------------+------------------------------

Comment (by barracuda156):

 Replying to [comment:14 kencu]:
 > don't be misled by this:
 > {{{
 > *** __NSAutoreleaseNoPool(): Object 0x1945080 of class NSCFArray
 autoreleased with no pool in place - just leaking
 > }}}
 > this is not the error. It is something else, that could be fixed on
 SnowLeopard by adding the @autoreleasepool bits manually to the example
 code. Newer OS versions do some of those things automatically for you, but
 on SL you have to do it the old way still.
 >
 > I have patched various ports here and there for that. The last one that
 comes to mind was glib2 that I fixed up for older systems when I moved it
 to meson last year.
 >
 > But that is just a warning, not an error -- the error is there is no
 image.bmp to be loaded by the example, it seems.

 @autoreleasepool syntax was massively failing for me, I had to refactor
 numerous instances of this and return them to the form which PPC is happy
 with. So adding that won't work (for PPC), but the warning may be a result
 of me messing up something in the process: it was not always immediately
 obvious where to stick `[pool release];`. I mean, I can identify structure
 and follow its logic, but I don’t know anything about Objective C. Another
 problem was that some functions apparently are missing in SDK itself, so I
 had to resort to your trick `#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1070`
 (using 1070 due to 10A190).
 The whole thing took me almost 24 hrs (well, I was doing other stuff in
 parallel, but anyway).

 At the same time outside of Cocoa Video folder few changes had to be made.
 Mostly refactoring of @autoreleasepool.

 I have also noticed they removed some elements of PowerPC-relevant code
 (though not all of it). When I have time I will search source folder with
 BBEdit to make sure I restore all portions of PPC code that were present
 in 2.0.3 but got removed later.

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


More information about the macports-tickets mailing list