[MacPorts] #62177: mpv @0.33.0_2+audiocd+bluray+bundle+dvd+libarchive+network+opengl+osd+python39+rubberband: cannot convert value of type 'CALayerContentsFormat' to specified type 'String'

MacPorts noreply at macports.org
Fri Jan 29 08:18:29 UTC 2021


#62177: mpv
@0.33.0_2+audiocd+bluray+bundle+dvd+libarchive+network+opengl+osd+python39+rubberband:
cannot convert value of type 'CALayerContentsFormat' to specified type
'String'
--------------------+----------------------
 Reporter:  JDLH    |      Owner:  ionic@…
     Type:  defect  |     Status:  assigned
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:  2.6.4
 Keywords:          |       Port:  mpv
--------------------+----------------------
 Attempting to install or upgrade `mpv
 @0.33.0_2+audiocd+bluray+bundle+dvd+libarchive+network+opengl+osd+python39+rubberband`
 fails when compiling `swift_compat.swift` with 3 instances of this compile
 error:

 {{{
 cannot convert value of type 'CALayerContentsFormat' to specified type
 'String'
 }}}

 The main.log is attached.   The interesting part appears to be:
 {{{
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work
 /mpv-player-mpv-d5ae9f7/osdep/macos/swift_compat.swift:29:38: error:
 cannot convert value of type 'CALayerContentsFormat' to specified type
 'String'
 :info:build     static let RGBA16Float: String =
 kCAContentsFormatRGBA16Float
 :info:build
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build
 .rawValue
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work
 /mpv-player-mpv-d5ae9f7/osdep/macos/swift_compat.swift:30:36: error:
 cannot convert value of type 'CALayerContentsFormat' to specified type
 'String'
 :info:build     static let RGBA8Uint: String = kCAContentsFormatRGBA8Uint
 :info:build                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build
 .rawValue
 :info:build
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work
 /mpv-player-mpv-d5ae9f7/osdep/macos/swift_compat.swift:31:36: error:
 cannot convert value of type 'CALayerContentsFormat' to specified type
 'String'
 :info:build     static let gray8Uint: String = kCAContentsFormatGray8Uint
 :info:build                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
 :info:build
 .rawValue
 …[snip]…
 :info:build Build failed
 :info:build  -> task in
 'osdep/macOS_swift.o,osdep/macOS_swift.h,osdep/macOS_swift.swiftmodule'
 failed with exit status 1:
 :info:build     {task 4549021872:
 osdep/macOS_swift.o,osdep/macOS_swift.h,osdep/macOS_swift.swiftmodule
 log_helper.swift,libmpv_helper.swift,mpv_helper.swift,swift_extensions.swift,swift_compat.swift,remote_command_center.swift,common.swift,view.swift,window.swift,title_bar.swift,cocoa_cb_common.swift,gl_layer.swift
 -> macOS_swift.o,macOS_swift.h,macOS_swift.swiftmodule}
 :info:build ''
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_mpv/mpv/work/mpv-0.33.0"
 && /opt/local/bin/python3.9 ./waf build -v --verbose
 }}}

 I am compiling with macports 2.6.4 on macOS 10.13.6 High Sierra.
 I saw the same results with both the +python38 and +python39 variants of
 mpv.

-- 
Ticket URL: <https://trac.macports.org/ticket/62177>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list