Created attachment 238076 [details] make showconfig & configure log
Error: meson.build:979:0: ERROR: C header 'linux/input-event-codes.h' not usable ``` A full log can be found at /usr/work/usr/ports/multimedia/mpv/work/mpv-0.35.0/_build/meson-logs/meson-log.txt WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated. ``` meson-log.txt excerpt: ``` Running compile: Working directory: /usr/work/usr/ports/multimedia/mpv/work/mpv-0.35.0/_build/meson-private/tmpp0ixyf3v Command line: cc /usr/work/usr/ports/multimedia/mpv/work/mpv-0.35.0/_build/meson-private/tmpp0ixyf3v/testfile.c -o /usr/work/usr/ports/multimedia/mpv/work/mpv-0.35.0/_build/meson-private/tmpp0ixyf3v/output.obj -c -O2 -pipe -march=skylake -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=c11 Code: #include <linux/input-event-codes.h> Compiler stdout: Compiler stderr: /usr/work/usr/ports/multimedia/mpv/work/mpv-0.35.0/_build/meson-private/tmpp0ixyf3v/testfile.c:2:18: fatal error: 'linux/input-event-codes.h' file not found #include <linux/input-event-codes.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. meson.build:979:0: ERROR: C header 'linux/input-event-codes.h' not usable ```
Workaround: enable ARCHIVE option or disable WAYLAND option. I did test ARCHIVE=off after USES=meson but only as part of options inversion (too many combinations otherwise).
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=5432cffb7154e414c0593ab696550ff856856142 commit 5432cffb7154e414c0593ab696550ff856856142 Author: Jan Beich <jbeich@FreeBSD.org> AuthorDate: 2022-11-15 12:49:08 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2022-11-15 12:51:14 +0000 multimedia/mpv: unbreak ARCHIVE=off WAYLAND=on after 1d89ec25be62 meson.build:979:0: ERROR: C header 'linux/input-event-codes.h' not usable PR: 267765 Reported by: amdmi3 multimedia/mpv/Makefile | 3 +++ multimedia/mpv/distinfo | 2 ++ 2 files changed, 5 insertions(+)