Files
mpv-natives/.github/workflows
david 0275986720 fix: make linux libmpv.so portable (ALSA config dir, fonts, strip)
Two runtime bugs in the shipped artifact:

1. ALSA: the static libasound carried ALSA_CONFIG_DIR pointing at the
   build prefix (linux_prefix/share/alsa), so snd_pcm_open("default")
   failed on any machine without that path ("Unknown PCM default",
   video worked, audio did not). Build alsa-lib with
   --with-configdir=/usr/share/alsa so the compile-time default is the
   canonical system location.

2. Size: the release .so still contained ~110 MB of DWARF debug sections
   (whole ffmpeg tree); strip --strip-all the artifact in the collect
   step, matching the windows build.

Also pin fontconfig's sysconfdir/localstatedir to /etc and /var so the
CONFIGDIR/FONTCONFIG_PATH/FC_CACHEDIR constants compiled into libass's
font stack resolve on any standard install (the runtime config search
falls back to the compiled-in CONFIGDIR and a built-in default config
when no FONTCONFIG_FILE/FONTCONFIG_PATH is set).

The workflow now verifies the artifact: ldd shows only system libs, no
debug sections remain, and no build-machine paths leaked into the
binary.
2026-10-02 03:24:18 +02:00
..