FS#55675 - [kodi] build with system ffmpeg
Attached to Project:
Community Packages
Opened by Isaac David (isacdaavid) - Monday, 18 September 2017, 21:20 GMT
Last edited by Ike Devolder (BlackEagle) - Wednesday, 25 October 2017, 16:54 GMT
Opened by Isaac David (isacdaavid) - Monday, 18 September 2017, 21:20 GMT
Last edited by Ike Devolder (BlackEagle) - Wednesday, 25 October 2017, 16:54 GMT
|
Details
An ffmpeg copy is downloaded during build() (see
https://github.com/xbmc/xbmc/blob/9e771c46d30efb43b9182625416e85222902b98f/tools/depends/target/ffmpeg/autobuild.sh#L114), unless one passes the -DWITH_FFMPEG="yes" option to
cmake.
I apologize in advance if there's any reason for not using the system library. Steps to reproduce: 1. cd kodi/ && makepkg 2. disable network after build() starts and watch the process fail |
This task depends upon
Closed by Ike Devolder (BlackEagle)
Wednesday, 25 October 2017, 16:54 GMT
Reason for closing: Fixed
Additional comments about closing: Was implemented in 17.4-6
Wednesday, 25 October 2017, 16:54 GMT
Reason for closing: Fixed
Additional comments about closing: Was implemented in 17.4-6
But be that as it may, all sources used in a PKGBUILD should still be added to source=() and downloaded as part of makepkg itself then symlinked into the build directory as needed, rather than allowing the build system to download completely arbitrary and unauthenticated source code archives.
The fact that this allows offline builds is simply icing on the cake.
Also if you really want it to build with an internal ffmpeg copy, you should make this explicit in the build configuration, rather than relying on the fact that the *current* recursive makedepends graph doesn't include ffmpeg. This also helps other people realize when something is explicitly bundled rather than accidentally.
I can provide debugging help if wanted
this sounds like the second best option, assuming there's a way to make kodi get along system ffmpeg (or the other way around). definitely more satisfactory than the current setup.
% grep 'download step' log
[ 2%] Performing download step (download, verify and extract) for 'crossguid'
[ 2%] Performing download step (download, verify and extract) for 'dvdcss'
[ 14%] Performing download step (download, verify and extract) for 'dvdread'
[ 15%] Performing download step (download, verify and extract) for 'dvdnav'
Is there a reason to want to use the system-provided versions of there corresponding packages as well? I will say that the change to including ffmpeg and ditching the internal version lead to breakage when ffmpeg was updated to 1:3.4-1 (
FS#56065) and also, the change pulls down all the ffmpeg deps which are sizable compared to having ffmpeg built into kodi and not pulling these down.