Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#56122 - [kodi] Hardware acceleration is missing

Attached to Project: Community Packages
Opened by John (graysky) - Thursday, 26 October 2017, 08:47 GMT
Last edited by Ike Devolder (BlackEagle) - Sunday, 24 December 2017, 11:24 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Ike Devolder (BlackEagle)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Kodi is missing hardware acceleration options including VAAPI and VDPAU. Also see: https://bbs.archlinux.org/viewtopic.php?pid=1745203

Additional info:
* 17.5-2
This task depends upon

Closed by  Ike Devolder (BlackEagle)
Sunday, 24 December 2017, 11:24 GMT
Reason for closing:  Implemented
Comment by John (graysky) - Thursday, 26 October 2017, 09:15 GMT
...perhaps due to the missing libva and libvdpau? I also don't see libpulse. I will try to troubleshoot and send a patch.
Comment by John (graysky) - Thursday, 26 October 2017, 09:40 GMT
OK, it seems that both libva and libvdpau are needed to get the acceleration support. The attached fix_hwaccel.patch adds libva libvdpau the makedepends/depends and removes lzo and mesa from depends since they are already satisfied (per namcap).

Please review.

I don't know but I think that libpulse is needed for the config to add in compile-time options for PA. You did have it in previous versions but if I build with it, namcap complains that it isn't needed. That said, building without it present makes the build unable to find PA:


-- #---- CONFIGURATION ----#
-- -- PATH config --
-- Prefix: /usr
-- Libdir: /usr/lib
...
-- PULSEAUDIO enabled: No

Again, I don't know if that's omitting hardcoded stuff needed for pulseaudio users. I don't use PA.

Note - The other attached file is update.patch which is the same but adds libpulse.
Comment by kwsk (kwsk) - Thursday, 26 October 2017, 10:55 GMT
same issue
Comment by Levente Polyak (anthraxx) - Thursday, 26 October 2017, 12:55 GMT
don't remove first level direct dependencies like lzo or mesa just because another first level dependency brings it in. if its a direct requirement for a feature, explicitly keep it in depends. namcap is nuts regarding this. Otherwise you will always run in such problems whenever dependencies change.
If its a direct dependency -> keep it in depends. ignore namcap in such case.
Comment by John (graysky) - Thursday, 26 October 2017, 13:05 GMT
@anthraxx - Solid advice... I will modify the patch. Is there a direct way to review a set of depends like this? Using namcap is the only tool that does it to my knowledge.
Comment by Levente Polyak (anthraxx) - Thursday, 26 October 2017, 13:09 GMT
Not that i know of, a packager should have a rough overview, or one could go through direct linked things.

Either way, exactly this namcap stupidity led us here, libvdpau was removed as direct dependency when system ffmpeg came in and was not re-added when switching back (which exactly proves my point and would have avoided this problem).
Comment by John (graysky) - Thursday, 26 October 2017, 13:34 GMT
Version 2:
*adds libva and libvdpau
*keeps direct deps mesa and lzo
*adds libpulse since without it pulseaudio support is disabled

Note that the current PKGBUILD and with the patch has several options unsupported including: ssh and sdl. Is this desired?

-- #---- CONFIGURATION ----#
-- -- PATH config --
-- Prefix: /usr
-- Libdir: /usr/lib
-- Bindir: /usr/bin
-- Includedir: /usr/include
-- Datarootdir: /usr/share
-- Datadir: /usr/share
-- Docdir: /usr/share/doc/kodi
-- LCMS2 enabled: Yes
-- MICROHTTPD enabled: Yes
-- MYSQLCLIENT enabled: Yes
-- SSH enabled: No
-- XSLT enabled: Yes
-- ALSA enabled: Yes
-- UDEV enabled: Yes
-- DBUS enabled: Yes
-- AVAHI enabled: Yes
-- SMBCLIENT enabled: Yes
-- CCACHE enabled: No
-- PULSEAUDIO enabled: Yes
-- VDPAU enabled: Yes
-- VAAPI enabled: Yes
-- BLUETOOTH enabled: Yes
-- CAP enabled: Yes
-- CEC enabled: Yes
-- BLURAY enabled: Yes
-- PLIST enabled: Yes
-- NFS enabled: Yes
-- SDL enabled: No
-- OPENGL enabled: Yes
-- X enabled: Yes
-- LIBDRM enabled: Yes
-- XRANDR enabled: Yes
-- AML enabled: No
-- IMX enabled: No

Loading...