[MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

classic Classic list List threaded Threaded
28 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  jmroot
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:
 Keywords:  lion        |       Port:  libsdl2
------------------------+----------------------
 libsdl2 used to build fine on 10.7, and on 10.6 when using the 10.7 sdk,
 but [https://build.macports.org/builders/ports-10.7_x86_64_legacy-
 builder/builds/85541/steps/install-port/logs/stdio now it fails]:

 {{{
 /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_devel_libsdl2/libsdl2/work/SDL2-2.0.9/src/video/cocoa/SDL_cocoawindow.m:1178:53:
 error: property 'CGColor' not found on object of type 'NSColor *'
     self.layer.backgroundColor = NSColor.blackColor.CGColor;
                                                     ^
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/57540>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------
Changes (by kencu):

 * Attachment "patch-src-video-cocoa-SDL_cocoawindow-allow-10.7-SDK.diff"
 added.


--
Ticket URL: <https://trac.macports.org/ticket/57540>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by kencu):

 I sent this one on to Josh a while back.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------
Changes (by kencu):

 * Attachment "patch-ltmain-compat-version.diff" added.


--
Ticket URL: <https://trac.macports.org/ticket/57540>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by kencu):

 the new libsdl2 has a wonky compatibility version that causes every port I
 built against libsdl2 to fail to link. Here's a patch that fixes that for
 me.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by jmroot):

 Are there upstream bugs for these?

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by kencu):

 not yet. What do you think of them (especially the compatibility fix)?

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------
Changes (by jmroot):

 * cc: kencu (added)


Comment:

 The 10.7 fix looks fine. I can't reproduce any link failure. We need to
 point out to upstream that compatibility_version is only supposed to go up
 and figure out how they want to handle the versioning going forward.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:6>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by jmroot):

 https://bugzilla.libsdl.org/show_bug.cgi?id=4368 [[br]]
 https://bugzilla.libsdl.org/show_bug.cgi?id=4367

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by Schamschula):

 I also ran into the library compatibility issue. I reactivated @2.0.8
 until this is fixed.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:9>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by jmroot):

 Can you give specific examples of ports that have a problem with the
 compatibility version? I tried a couple and they worked OK.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:10>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by kencu):

 there were half a dozen or so.

 - libsdl-net
 - widelands
 - hatari I think
 - another libsdl one , maybe image

 and a couple more.. More than I wanted to just rebuild, although
 rebuilding them all would have fixed it I uess.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by Schamschula):

 In my case:

 *  ffmpeg
 * libsdl2_image
 * logstalgia

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by jmroot):

 And you're getting an error when you run an executable? Or from rev-
 upgrade?

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by Schamschula):

 I get an error from the link check at the end of {{{port upgrade
 outdated}}} causing me to have to run rev-upgrade.

 On my work machine I also got the error from qt5-qtgamepad.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:14>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------
Changes (by ryandesign):

 * cc: rmottola (added)


Comment:

 Has duplicate #57548.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:15>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------
Changes (by rmottola):

 * Attachment "libsdl2-blackcolor.diff" added.

 allocate Black constant CGColor directly

--
Ticket URL: <https://trac.macports.org/ticket/57540>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by rmottola):

 Sorry for not finding this duplicate ticket earlier, I mistyped the
 search.
 I have a quite simple patch which solves CGColor property availabel only
 in 10.8. Allocating a Black color has a direct function!

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:17>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by ryandesign):

 If you think that's a better fix than the one Ken attached above which
 Josh [https://bugzilla.libsdl.org/show_bug.cgi?id=4368 passed on to the
 developers], you should notify the developers.

--
Ticket URL: <https://trac.macports.org/ticket/57540#comment:18>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|

Re: [MacPorts] #57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type 'NSColor *'

MacPorts
In reply to this post by MacPorts
#57540: libsdl2 @2.0.9: error: property 'CGColor' not found on object of type
'NSColor *'
-------------------------+----------------------
  Reporter:  ryandesign  |      Owner:  jmroot
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  lion
      Port:  libsdl2     |
-------------------------+----------------------

Comment (by kencu):

 Hey, if Riccardo's patch works, I like that better, for sure.

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