NetBSD Problem Report #54426
From www@netbsd.org Thu Aug 1 14:46:00 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 9A42C7A18B
for <gnats-bugs@gnats.NetBSD.org>; Thu, 1 Aug 2019 14:46:00 +0000 (UTC)
Message-Id: <20190801144558.A473E7A1B2@mollari.NetBSD.org>
Date: Thu, 1 Aug 2019 14:45:58 +0000 (UTC)
From: js-pkgsrc@heap.zone
Reply-To: js-pkgsrc@heap.zone
To: gnats-bugs@NetBSD.org
Subject: multimedia/mpv does not build on Darwin
X-Send-Pr-Version: www-1.0
>Number: 54426
>Category: pkg
>Synopsis: multimedia/mpv does not build on Darwin
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: leot
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 01 14:50:01 +0000 2019
>Closed-Date: Fri Aug 02 09:49:11 +0000 2019
>Last-Modified: Fri Aug 02 09:50:00 +0000 2019
>Originator: Jonathan Schleifer
>Release: HEAD
>Organization:
>Environment:
>Description:
multimedia/mpv fails to build, apparently because it is requiring Swift 3:
<unknown>:0: error: invalid value '3' in '-swift-version 3'
<unknown>:0: note: valid arguments to '-swift-version' are '4', '4.2', '5'
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/osdep/macOS_mpv_helper.swift:148:17: warning: 'withUnsafeMutableBytes' is deprecated: use `withUnsafeMutableBytes<R>(_: (UnsafeMutableRawBufferPointer) throws -> R) rethrows -> R` instead
iccData.withUnsafeMutableBytes { (u8Ptr: UnsafeMutablePointer<UInt8>) in
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:37:30: error: 'viewWidthSizable' has been renamed to 'width'
autoresizingMask = [.viewWidthSizable, .viewHeightSizable]
^~~~~~~~~~~~~~~~
width
AppKit.NSView:21:27: note: 'viewWidthSizable' was obsoleted in Swift 4
public static var viewWidthSizable: NSView.AutoresizingMask { get }
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:37:49: error: 'viewHeightSizable' has been renamed to 'height'
autoresizingMask = [.viewWidthSizable, .viewHeightSizable]
^~~~~~~~~~~~~~~~~
height
AppKit.NSView:36:27: note: 'viewHeightSizable' was obsoleted in Swift 4
public static var viewHeightSizable: NSView.AutoresizingMask { get }
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:39:9: error: 'register(forDraggedTypes:)' has been renamed to 'registerForDraggedTypes(_:)'
register(forDraggedTypes: [NSFilenamesPboardType, NSURLPboardType])
^~~~~~~~ ~~~~~~~~~~~~~~~~~
registerForDraggedTypes
AppKit.NSView:10:15: note: 'register(forDraggedTypes:)' was obsoleted in Swift 4
open func register(forDraggedTypes newTypes: [NSPasteboard.PasteboardType])
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:39:36: error: 'NSFilenamesPboardType' is unavailable in Swift: use 'PasteboardType.fileURL'
register(forDraggedTypes: [NSFilenamesPboardType, NSURLPboardType])
^~~~~~~~~~~~~~~~~~~~~
AppKit.NSFilenamesPboardType:4:12: note: 'NSFilenamesPboardType' has been explicitly marked unavailable here
public let NSFilenamesPboardType: NSPasteboard.PasteboardType
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:39:59: error: 'NSURLPboardType' is unavailable in Swift: use 'PasteboardType.url'
register(forDraggedTypes: [NSFilenamesPboardType, NSURLPboardType])
^~~~~~~~~~~~~~~
AppKit.NSURLPboardType:4:12: note: 'NSURLPboardType' has been explicitly marked unavailable here
public let NSURLPboardType: NSPasteboard.PasteboardType
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:62:52: error: cannot call value of non-function type 'NSPasteboard'
guard let types = sender.draggingPasteboard().types else { return [] }
~~~~~~~~~~~~~~~~~~~~~~~~~^~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:70:43: error: cannot call value of non-function type 'NSPasteboard'
let pb = sender.draggingPasteboard()
~~~~~~~~~~~~~~~~~~~~~~~~~^~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:71:52: error: cannot call value of non-function type 'NSPasteboard'
guard let types = sender.draggingPasteboard().types else { return false }
~~~~~~~~~~~~~~~~~~~~~~~~~^~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:193:12: warning: 'fabs' is deprecated: renamed to 'abs'
if fabs(event.deltaY) >= fabs(event.deltaX) {
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:193:12: note: use 'abs' instead
if fabs(event.deltaY) >= fabs(event.deltaX) {
^~~~
abs
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:193:34: warning: 'fabs' is deprecated: renamed to 'abs'
if fabs(event.deltaY) >= fabs(event.deltaX) {
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:193:34: note: use 'abs' instead
if fabs(event.deltaY) >= fabs(event.deltaX) {
^~~~
abs
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:217:16: warning: 'fabs' is deprecated: renamed to 'abs'
if fabs(deltaY) >= fabs(deltaX) {
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:217:16: note: use 'abs' instead
if fabs(deltaY) >= fabs(deltaX) {
^~~~
abs
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:217:32: warning: 'fabs' is deprecated: renamed to 'abs'
if fabs(deltaY) >= fabs(deltaX) {
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/events_view.swift:217:32: note: use 'abs' instead
if fabs(deltaY) >= fabs(deltaX) {
^~~~
abs
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:70:29: error: 'NSWindowStyleMask' has been renamed to 'NSWindow.StyleMask'
override var styleMask: NSWindowStyleMask {
^~~~~~~~~~~~~~~~~
NSWindow.StyleMask
AppKit.NSWindowStyleMask:2:18: note: 'NSWindowStyleMask' was obsoleted in Swift 4
public typealias NSWindowStyleMask = NSWindow.StyleMask
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:70:18: error: property does not override any property from its superclass
override var styleMask: NSWindowStyleMask {
~~~~~~~~ ^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:575:10: warning: instance method 'windowShouldClose' nearly matches optional requirement 'windowShouldClose' of protocol 'NSWindowDelegate'
func windowShouldClose(_ sender: Any) -> Bool {
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:575:10: note: candidate has non-matching type '(Any) -> Bool'
func windowShouldClose(_ sender: Any) -> Bool {
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:575:10: note: move 'windowShouldClose' to an extension to silence this warning
func windowShouldClose(_ sender: Any) -> Bool {
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:575:10: note: make 'windowShouldClose' private to silence this warning
func windowShouldClose(_ sender: Any) -> Bool {
^
private
AppKit.NSWindowDelegate:2:19: note: requirement 'windowShouldClose' declared here
optional func windowShouldClose(_ sender: NSWindow) -> Bool
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:64:75: error: 'NSWindowButton' has been renamed to 'NSWindow.ButtonType'
get { return ([.closeButton, .miniaturizeButton, .zoomButton] as [NSWindowButton]).flatMap { standardWindowButton($0) } }
^~~~~~~~~~~~~~
NSWindow.ButtonType
AppKit.NSWindowButton:2:18: note: 'NSWindowButton' was obsoleted in Swift 4
public typealias NSWindowButton = NSWindow.ButtonType
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:64:75: error: 'NSWindowButton' has been renamed to 'NSWindow.ButtonType'
get { return ([.closeButton, .miniaturizeButton, .zoomButton] as [NSWindowButton]).flatMap { standardWindowButton($0) } }
^~~~~~~~~~~~~~
NSWindow.ButtonType
AppKit.NSWindowButton:2:18: note: 'NSWindowButton' was obsoleted in Swift 4
public typealias NSWindowButton = NSWindow.ButtonType
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:100:34: error: argument of '#selector' refers to instance method 'setHalfWindowSize()' that is not exposed to Objective-C
app.menuBar.register(#selector(setHalfWindowSize), for: MPM_H_SIZE)
^ ~~~~~~~~~~~~~~~~~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:539:10: note: add '@objc' to expose this instance method to Objective-C
func setHalfWindowSize() { setWindowScale(0.5) }
^
@objc
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:101:34: error: argument of '#selector' refers to instance method 'setNormalWindowSize()' that is not exposed to Objective-C
app.menuBar.register(#selector(setNormalWindowSize), for: MPM_N_SIZE)
^ ~~~~~~~~~~~~~~~~~~~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:538:10: note: add '@objc' to expose this instance method to Objective-C
func setNormalWindowSize() { setWindowScale(1.0) }
^
@objc
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:102:34: error: argument of '#selector' refers to instance method 'setDoubleWindowSize()' that is not exposed to Objective-C
app.menuBar.register(#selector(setDoubleWindowSize), for: MPM_D_SIZE)
^ ~~~~~~~~~~~~~~~~~~~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:540:10: note: add '@objc' to expose this instance method to Objective-C
func setDoubleWindowSize() { setWindowScale(2.0) }
^
@objc
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:119:46: error: 'viewWidthSizable' has been renamed to 'width'
titleBarEffect!.autoresizingMask = [.viewWidthSizable, .viewMinYMargin]
^~~~~~~~~~~~~~~~
width
AppKit.NSView:21:27: note: 'viewWidthSizable' was obsoleted in Swift 4
public static var viewWidthSizable: NSView.AutoresizingMask { get }
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:119:65: error: 'viewMinYMargin' has been renamed to 'minYMargin'
titleBarEffect!.autoresizingMask = [.viewWidthSizable, .viewMinYMargin]
^~~~~~~~~~~~~~
minYMargin
AppKit.NSView:31:27: note: 'viewMinYMargin' was obsoleted in Swift 4
public static var viewMinYMargin: NSView.AutoresizingMask { get }
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:153:46: error: 'NSAppearanceNameVibrantLight' has been renamed to 'NSAppearance.Name.vibrantLight'
appearance = NSAppearance(named: NSAppearanceNameVibrantLight)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSAppearance.Name.vibrantLight
AppKit.NSAppearanceNameVibrantLight:3:12: note: 'NSAppearanceNameVibrantLight' was obsoleted in Swift 3
public let NSAppearanceNameVibrantLight: NSAppearance.Name
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:157:46: error: 'NSAppearanceNameVibrantLight' has been renamed to 'NSAppearance.Name.vibrantLight'
appearance = NSAppearance(named: NSAppearanceNameVibrantLight)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSAppearance.Name.vibrantLight
AppKit.NSAppearanceNameVibrantLight:3:12: note: 'NSAppearanceNameVibrantLight' was obsoleted in Swift 3
public let NSAppearanceNameVibrantLight: NSAppearance.Name
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:161:46: error: 'NSAppearanceNameVibrantDark' has been renamed to 'NSAppearance.Name.vibrantDark'
appearance = NSAppearance(named: NSAppearanceNameVibrantDark)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
NSAppearance.Name.vibrantDark
AppKit.NSAppearanceNameVibrantDark:3:12: note: 'NSAppearanceNameVibrantDark' was obsoleted in Swift 3
public let NSAppearanceNameVibrantDark: NSAppearance.Name
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:166:46: error: 'NSAppearanceNameVibrantDark' has been renamed to 'NSAppearance.Name.vibrantDark'
appearance = NSAppearance(named: NSAppearanceNameVibrantDark)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
NSAppearance.Name.vibrantDark
AppKit.NSAppearanceNameVibrantDark:3:12: note: 'NSAppearanceNameVibrantDark' was obsoleted in Swift 3
public let NSAppearanceNameVibrantDark: NSAppearance.Name
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:188:80: error: argument of '#selector' refers to instance method 'hideTitleBar()' that is not exposed to Objective-C
NSObject.cancelPreviousPerformRequests(withTarget: self, selector: #selector(hideTitleBar), object: nil)
^ ~~~~~~~~~~~~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:192:10: note: add '@objc' to expose this instance method to Objective-C
func hideTitleBar() {
^
@objc
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:209:60: error: argument of '#selector' refers to instance method 'hideTitleBar()' that is not exposed to Objective-C
selector: #selector(hideTitleBar),
^ ~~~~~~~~~~~~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:192:10: note: add '@objc' to expose this instance method to Objective-C
func hideTitleBar() {
^
@objc
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:211:17: error: argument of '#selector' refers to instance method 'hideTitleBar()' that is not exposed to Objective-C
perform(#selector(hideTitleBar), with: nil, afterDelay: 0.5)
^ ~~~~~~~~~~~~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:192:10: note: add '@objc' to expose this instance method to Objective-C
func hideTitleBar() {
^
@objc
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:359:29: error: cannot assign value of type 'Int' to type 'NSWindow.Level'
level = Int(CGWindowLevelForKey(.floatingWindow))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSWindow.Level(rawValue: )
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:361:68: error: cannot assign value of type 'Int' to type 'NSWindow.Level'
level = Int(CGWindowLevelForKey(.statusWindow))+1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
NSWindow.Level(rawValue: )
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:363:40: error: cannot assign value of type 'Int' to type 'NSWindow.Level'
level = ontopLevel as! Int
~~~~~~~~~~~^~~~~~~
NSWindow.Level(rawValue: )
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:368:29: error: cannot assign value of type 'Int' to type 'NSWindow.Level'
level = Int(CGWindowLevelForKey(.floatingWindow))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSWindow.Level(rawValue: )
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:370:68: error: cannot assign value of type 'Int' to type 'NSWindow.Level'
level = Int(CGWindowLevelForKey(.statusWindow))+1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
NSWindow.Level(rawValue: )
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:372:55: error: cannot assign value of type 'Int' to type 'NSWindow.Level'
level = Int(ontopLevel as! String)!
~~~~~~~~~~~~~~~~~~~~~~~~~~^
NSWindow.Level(rawValue: )
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:378:21: error: cannot assign value of type 'Int' to type 'NSWindow.Level'
level = Int(CGWindowLevelForKey(.normalWindow))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NSWindow.Level(rawValue: )
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa-cb/window.swift:508:62: error: cannot call value of non-function type 'NSScreen?'
let ts: NSScreen = tScreen ?? screen ?? NSScreen.main()!
~~~~~~~~~~~~~^~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa_cb_common.swift:308:41: error: expression type 'NSScreen?' is ambiguous without more context
let displayID = (ccb.window.screen!.deviceDescription["NSScreenNumber"] as! NSNumber).intValue
~~~~~~~~~~~^~~~~~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa_cb_common.swift:96:81: error: cannot call value of non-function type 'NSScreen?'
let targetScreen = getScreenBy(id: Int(opts.screen_id)) ?? NSScreen.main()
~~~~~~~~~~~~~^~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa_cb_common.swift:124:81: error: cannot call value of non-function type 'NSScreen?'
let targetScreen = getScreenBy(id: Int(opts.screen_id)) ?? NSScreen.main()
~~~~~~~~~~~~~^~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa_cb_common.swift:153:75: error: cannot call value of non-function type 'NSScreen?'
let screen = getScreenBy(id: Int(opts.screen_id)) ?? NSScreen.main()
~~~~~~~~~~~~~^~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa_cb_common.swift:176:39: error: expression type 'NSScreen?' is ambiguous without more context
let displayId = UInt32(window.screen!.deviceDescription["NSScreenNumber"] as! Int)
~~~~~~~^~~~~~
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa_cb_common.swift:257:29: warning: 'init(_:)' is deprecated: replaced by 'init(truncating:)'
let lux = Int(ceil( Double((term4 + term3 + term2 + term1 - 0.19) as NSNumber)))
^
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa_cb_common.swift:257:29: note: use 'init(truncating:)' instead
let lux = Int(ceil( Double((term4 + term3 + term2 + term1 - 0.19) as NSNumber)))
^
truncating:
/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/video/out/cocoa_cb_common.swift:337:39: error: cannot call value of non-function type '[NSScreen]'
let screens = NSScreen.screens()
~~~~~~~~~~~~~~~~^~
Waf: Leaving directory `/Users/js/Devel/pkgsrc/multimedia/mpv/work/mpv-0.29.1/build'
Build failed
-> task in 'osdep/macOS_swift.o osdep/macOS_swift.h osdep/macOS_swift.swiftmodule' failed with exit status 1 (run with -v to display more information)
*** Error code 1
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->leot
Responsible-Changed-By: leot@NetBSD.org
Responsible-Changed-When: Thu, 01 Aug 2019 19:09:55 +0000
Responsible-Changed-Why:
Take
State-Changed-From-To: open->feedback
State-Changed-By: leot@NetBSD.org
State-Changed-When: Thu, 01 Aug 2019 19:13:13 +0000
State-Changed-Why:
Can you please share:
${WRKSRC}/build/config.log
after running `bmake configure'?
After that, can you please try to add:
WAF_CONFIGURE_ARGS+= --disable-swift
in pkgsrc/multimedia/mpv/Makefile and rebuild it?
Thank you!
From: Jonathan Schleifer <js@heap.zone>
To: gnats-bugs@netbsd.org
Cc: leot@netbsd.org,
pkgsrc-bugs@netbsd.org,
gnats-admin@netbsd.org,
js-pkgsrc@heap.zone
Subject: Re: pkg/54426 (multimedia/mpv does not build on Darwin)
Date: Thu, 1 Aug 2019 21:49:08 +0200
--disable-swift works, but will give you the older UI.
The problem is known upstream and there is a patch to port it to Swift =
5. We can either apply that, or use --disable-swift.
> Am 01.08.2019 um 21:13 schrieb leot@netbsd.org <leot@NetBSD.org>:
>=20
> Synopsis: multimedia/mpv does not build on Darwin
>=20
> State-Changed-From-To: open->feedback
> State-Changed-By: leot@NetBSD.org
> State-Changed-When: Thu, 01 Aug 2019 19:13:13 +0000
> State-Changed-Why:
> Can you please share:
>=20
> ${WRKSRC}/build/config.log
>=20
> after running `bmake configure'?
>=20
> After that, can you please try to add:
>=20
> WAF_CONFIGURE_ARGS+=3D --disable-swift
>=20
> in pkgsrc/multimedia/mpv/Makefile and rebuild it?
>=20
>=20
> Thank you!
>=20
>=20
>=20
From: Leonardo Taccari <leot@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/54426 (multimedia/mpv does not build on Darwin)
Date: Thu, 01 Aug 2019 23:43:53 +0200
Hello Jonathan,
Jonathan Schleifer writes:
> --disable-swift works, but will give you the older UI.
>
> The problem is known upstream and there is a patch to port it to Swift 5. We can either apply that, or use --disable-swift.
>
Thanks for checking and for the quick feedback!
Can you please share the link to the upstream patch/discussion?
From: Jonathan Schleifer <js@heap.zone>
To: gnats-bugs@netbsd.org
Cc: leot@netbsd.org,
gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org
Subject: Re: pkg/54426 (multimedia/mpv does not build on Darwin)
Date: Thu, 1 Aug 2019 23:48:57 +0200
https://github.com/mpv-player/mpv/pull/6612/commits
State-Changed-From-To: feedback->closed
State-Changed-By: leot@NetBSD.org
State-Changed-When: Fri, 02 Aug 2019 09:49:11 +0000
State-Changed-Why:
I have added --disable-swift that ATM seems safer
(the pull request shared seems still discussed upstream)
Thank you for the PR!
From: "Leonardo Taccari" <leot@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/54426 CVS commit: pkgsrc/multimedia/mpv
Date: Fri, 2 Aug 2019 09:47:04 +0000
Module Name: pkgsrc
Committed By: leot
Date: Fri Aug 2 09:47:04 UTC 2019
Modified Files:
pkgsrc/multimedia/mpv: Makefile
Log Message:
mpv: Disable Swift as a workaround for PR pkg/54426
According upstream pull request 6612
(<https://github.com/mpv-player/mpv/pull/6612/>) and as noticed
via PR pkg/54426 newer Xcode (10.2) dropped support for Swift 3
that is used in mpv-0.29.1.
Workaround that by disabling swift support.
This will probably not needed and should be removed in next stable
mpv version.
To generate a diff of this commit:
cvs rdiff -u -r1.83 -r1.84 pkgsrc/multimedia/mpv/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.