Bug 237980

Summary: multimedia/mpv: fails to build at lib-depends stage
Product: Ports & Packages Reporter: tech-lists
Component: Individual Port(s)Assignee: Carlos J. Puga Medina <cpm>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: tech-lists
Priority: --- Flags: cpm: maintainer-feedback+
Version: Latest   
Hardware: amd64   
OS: Any   

Description tech-lists 2019-05-19 11:36:09 UTC
Hello,

context: poudriere-devel / 12-stable

multimedia/mpv fails to build at the lib-depends stage with the following error:

[00:00:49] ===>   mpv-0.29.1_6,1 depends on shared library: libxkbcommon.so - found (/usr/local/lib/libxkbcommon.so)
[00:00:49] ===>   Returning to build of mpv-0.29.1_6,1
[00:00:49] ===>   mpv-0.29.1_6,1 depends on shared library: libva-wayland.so - not found
[00:00:49] ===>   Installing existing package /packages/All/libva-2.4.1_1.txz
[00:00:49] [desktop.local] Installing libva-2.4.1_1...
[00:00:49] the most recent version of libva-2.4.1_1 is already installed
[00:00:49] ===>   mpv-0.29.1_6,1 depends on shared library: libva-wayland.so - not found
[00:00:49] *** Error code 1
[00:00:49] 
[00:00:49] Stop.
[00:00:49] make: stopped in /usr/ports/multimedia/mpv
[00:00:57] =>> Cleaning up wrkdir
[00:00:57] ===>  Cleaning for mpv-0.29.1_6,1
[00:00:58] build of multimedia/mpv | mpv-0.29.1_6,1 ended at Sun May 19 11:14:33 BST 2019
[00:00:58] build time: 00:00:57
[00:00:58] !!! build failure encountered !!!

full log: https://cloud.zyxst.net/~john/FreeBSD/ports/buildfailures/mpv-0.29.1_6,1.log
Comment 1 tech-lists 2019-05-20 10:13:28 UTC
It will fail with the default options enabled. it builds with the following options set/unset :

OPTIONS_FILE_UNSET+=ARCHIVE
OPTIONS_FILE_UNSET+=ASS
OPTIONS_FILE_SET+=DOCS
OPTIONS_FILE_SET+=EXAMPLES
OPTIONS_FILE_UNSET+=LCMS2
OPTIONS_FILE_UNSET+=LUAJIT
OPTIONS_FILE_SET+=MANPAGES
OPTIONS_FILE_UNSET+=TEST
OPTIONS_FILE_UNSET+=UCHARDET
OPTIONS_FILE_UNSET+=ZSH
OPTIONS_FILE_UNSET+=CDIO
OPTIONS_FILE_UNSET+=DVDREAD
OPTIONS_FILE_UNSET+=DVDNAV
OPTIONS_FILE_UNSET+=LIBBLURAY
OPTIONS_FILE_UNSET+=V4L
OPTIONS_FILE_UNSET+=YTDL
OPTIONS_FILE_UNSET+=SMB
OPTIONS_FILE_UNSET+=CACA
OPTIONS_FILE_SET+=OPENGL
OPTIONS_FILE_SET+=VAAPI
OPTIONS_FILE_SET+=VDPAU
OPTIONS_FILE_UNSET+=VULKAN
OPTIONS_FILE_UNSET+=WAYLAND
OPTIONS_FILE_SET+=X11
OPTIONS_FILE_SET+=ALSA
OPTIONS_FILE_UNSET+=JACK
OPTIONS_FILE_UNSET+=OPENAL
OPTIONS_FILE_UNSET+=PULSEAUDIO
OPTIONS_FILE_UNSET+=SDL
OPTIONS_FILE_UNSET+=SNDIO
Comment 2 Carlos J. Puga Medina freebsd_committer freebsd_triage 2019-05-22 09:51:14 UTC
libva-wayland.so is provided by multimedia/libva

% cd /usr/ports/multimedia/libva && make showconfig
===> The following configuration options are available for libva-2.4.1_1:
     WAYLAND=off: Wayland (graphics) support
     X11=on: X11 (graphics) support
===> Use 'make config' to modify these settings

You need to enable WAYLAND option to install the missing shared library.