Bug 267765 - multimedia/mpv: fails to build with ARCHIVE=OFF WAYLAND=ON
Summary: multimedia/mpv: fails to build with ARCHIVE=OFF WAYLAND=ON
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-14 18:18 UTC by Dmitry Marakasov
Modified: 2022-11-15 13:30 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (multimedia)


Attachments
make showconfig & configure log (11.10 KB, text/plain)
2022-11-14 18:18 UTC, Dmitry Marakasov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Marakasov freebsd_committer freebsd_triage 2022-11-14 18:18:48 UTC
Created attachment 238076 [details]
make showconfig & configure log
Comment 1 Dmitry Marakasov freebsd_committer freebsd_triage 2022-11-14 18:19:53 UTC
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
```
Comment 2 Jan Beich freebsd_committer freebsd_triage 2022-11-15 11:47:04 UTC
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).
Comment 3 commit-hook freebsd_committer freebsd_triage 2022-11-15 12:52:57 UTC
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(+)