From e1b7871a097a4127de931e0e243eaea61e8f1f5d Mon Sep 17 00:00:00 2001 From: Morgan Prior <36314+morganp@users.noreply.github.com> Date: Thu, 29 Oct 2026 19:58:29 +0000 Subject: [PATCH] build(mpv): turn off sixel, dvdnav and x11 so the build machine cannot leak them in mpv auto-detects these through pkg-config. With Homebrew's libsixel, libdvdnav, libdvdread and libx11 installed, a local iOS build compiled vo_sixel, stream_dvdnav and the X11 clipboard backend, and the app then failed to link against the missing symbols. None of them exist on iOS or tvOS, so name them as disabled. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01BsaHcCXUsC4JTpKgBe2AgJ --- Sources/BuildScripts/XCFrameworkBuild/main.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Sources/BuildScripts/XCFrameworkBuild/main.swift b/Sources/BuildScripts/XCFrameworkBuild/main.swift index 1888591b..cb51f2d9 100644 --- a/Sources/BuildScripts/XCFrameworkBuild/main.swift +++ b/Sources/BuildScripts/XCFrameworkBuild/main.swift @@ -422,6 +422,13 @@ private class BuildMPV: BaseBuild { "-Djpeg=disabled", "-Dvapoursynth=disabled", "-Drubberband=disabled", + + // Never let mpv pick these up from the build machine (Homebrew ships them): + // none exist on iOS or tvOS and the app fails to link when they leak in. + "-Dsixel=disabled", + "-Ddvdnav=disabled", + "-Dx11=disabled", + "-Dx11-clipboard=disabled", ] if BaseBuild.options.enableGPL { array.append("-Dgpl=true")