[MacPorts] #62323: mpv @0.33.0_2: error: cannot convert value of type 'CALayerContentsFormat' to specified type 'String' (was: Failed to build mpv @0.33.0_2 Error code: CHILDSTATUS 53341 1)

MacPorts noreply at macports.org
Sat Feb 20 08:50:21 UTC 2021


#62323: mpv @0.33.0_2: error: cannot convert value of type 'CALayerContentsFormat'
to specified type 'String'
-------------------------+------------------------
  Reporter:  cave-canem  |      Owner:  Ionic
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:
Resolution:              |   Keywords:  highsierra
      Port:  mpv         |
-------------------------+------------------------
Changes (by ryandesign):

 * status:  new => assigned
 * cc: ionic@… (removed)
 * owner:  (none) => Ionic
 * keywords:  High Sierra => highsierra


Old description:

> '''On macOS 10.13, ​mpv fails to build:'''
>
> Failed to build mpv: command execution failed
>
> :debug:build Error code: CHILDSTATUS 53341 1
>
> :debug:build Backtrace: command execution failed
>
> :debug:build     while executing
>
> :debug:build "system {*}$notty {*}$nice $fullcmdstring"
>
> :debug:build     invoked from within
>
> :debug:build "command_exec build"
>
> :debug:build     (procedure "portbuild::build_main" line 8)
>
> :debug:build     invoked from within
>
> :debug:build "$procedure $targetname"
>

> '''See attached main.log.zip for details.'''

New description:

 '''On macOS 10.13, ​mpv fails to build:'''

 {{{
 Failed to build mpv: command execution failed
 :debug:build Error code: CHILDSTATUS 53341 1
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec build"
 :debug:build     (procedure "portbuild::build_main" line 8)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 }}}

 '''See attached main.log.zip for details.'''

--

Comment:

 The relevant error is actually:

 {{{
 osdep/macos/swift_compat.swift:29:38: error: cannot convert value of type
 'CALayerContentsFormat' to specified type 'String'
     static let RGBA16Float: String = kCAContentsFormatRGBA16Float
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
                                                                  .rawValue
 osdep/macos/swift_compat.swift:30:36: error: cannot convert value of type
 'CALayerContentsFormat' to specified type 'String'
     static let RGBA8Uint: String = kCAContentsFormatRGBA8Uint
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                              .rawValue
 osdep/macos/swift_compat.swift:31:36: error: cannot convert value of type
 'CALayerContentsFormat' to specified type 'String'
     static let gray8Uint: String = kCAContentsFormatGray8Uint
                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
                                                              .rawValue
 }}}

 So this is a duplicate of #62177.

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


More information about the macports-tickets mailing list