Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641384 - media-video/mpv-0.27.0 fails to compile vs. x11-libs/libva-2.0.0
Summary: media-video/mpv-0.27.0 fails to compile vs. x11-libs/libva-2.0.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Coacher
URL:
Whiteboard:
Keywords:
: 641386 641454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-16 15:26 UTC by Attila Tóth
Modified: 2017-12-17 11:25 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
libva2-callbacks.patch (libva2.patch,3.00 KB, patch)
2017-12-16 16:51 UTC, Sergey Ilinykh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Tóth 2017-12-16 15:26:52 UTC
../video/vaapi.c: In function 'va_initialize':
 ../video/vaapi.c:191:5: error: too few arguments to function 'vaSetErrorCallback'
      vaSetErrorCallback(va_error_callback);
      ^~~~~~~~~~~~~~~~~~
 In file included from ../video/vaapi.h:24:0,
                  from ../video/vaapi.c:22:
 /usr/include/va/va.h:270:19: note: declared here
  VAMessageCallback vaSetErrorCallback(VADisplay dpy, VAMessageCallback callback, void *user_context);
                    ^~~~~~~~~~~~~~~~~~
 ../video/vaapi.c:192:5: error: too few arguments to function 'vaSetInfoCallback'
      vaSetInfoCallback(va_info_callback);
      ^~~~~~~~~~~~~~~~~
 In file included from ../video/vaapi.h:24:0,
                  from ../video/vaapi.c:22:
 /usr/include/va/va.h:276:19: note: declared here
  VAMessageCallback vaSetInfoCallback(VADisplay dpy, VAMessageCallback callback, void *user_context);
                    ^~~~~~~~~~~~~~~~~

Upstream commit solves the issue:
https://github.com/mpv-player/mpv/commit/2ecf240b1cd20875991a5b18efafbe799864ff7f

Using it as a user patch is a workaround until a new version is coming.
Comment 1 Sergey Ilinykh 2017-12-16 16:51:57 UTC
Created attachment 510346 [details, diff]
libva2-callbacks.patch

taken from git
Comment 2 Opportunist 2017-12-16 18:05:41 UTC
Confirm on amd64
Comment 3 Larry the Git Cow gentoo-dev 2017-12-17 03:30:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e0c93bdde8b684243f8abcdf69fe15f1dcaea55

commit 3e0c93bdde8b684243f8abcdf69fe15f1dcaea55
Author:     Lars Wendler <polynomial-c@gentoo.org>
AuthorDate: 2017-12-17 03:26:33 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2017-12-17 03:28:40 +0000

    media-video/mpv: Fixed compilation against libva2.
    
    Closes: https://bugs.gentoo.org/641384
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-video/mpv/files/mpv-libva2.patch | 88 ++++++++++++++++++++++++++++++++++
 media-video/mpv/mpv-0.27.0.ebuild      |  3 +-
 2 files changed, 90 insertions(+), 1 deletion(-)
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2017-12-17 11:20:08 UTC
*** Bug 641454 has been marked as a duplicate of this bug. ***
Comment 5 Coacher 2017-12-17 11:25:37 UTC
*** Bug 641386 has been marked as a duplicate of this bug. ***