Created attachment 546290 [details] Build log kde-frameworks/kfilemetadata introduced a patch to remove use of the deprecated AVCodecContext structure on the following commit: https://phabricator.kde.org/R286:037208a787e0c2412ab616ff1573c323a2346d2d The problem is that our current stable version of libav doesn't support the new AVCodecParameters and as a result emerging the package results in the following error: /var/tmp/portage/kde-frameworks/kfilemetadata-5.46.0/work/kfilemetadata-5.46.0/src/extractors/ffmpegextractor.cpp: In member function ‘virtual void KFileMetaData::FFmpegExtractor::extract(KFileMetaData::ExtractionResult*)’: /var/tmp/portage/kde-frameworks/kfilemetadata-5.46.0/work/kfilemetadata-5.46.0/src/extractors/ffmpegextractor.cpp:97:15: error: ‘AVCodecParameters’ does not name a type; did you mean ‘AVCodecParser’? const AVCodecParameters* codec = stream->codecpar; ^~~~~~~~~~~~~~~~~ AVCodecParser /var/tmp/portage/kde-frameworks/kfilemetadata-5.46.0/work/kfilemetadata-5.46.0/src/extractors/ffmpegextractor.cpp:99:13: error: ‘codec’ was not declared in this scope if (codec->codec_type == AVMEDIA_TYPE_AUDIO || codec->codec_type == AVMEDIA_TYPE_VIDEO) { ^~~~~ /var/tmp/portage/kde-frameworks/kfilemetadata-5.46.0/work/kfilemetadata-5.46.0/src/extractors/ffmpegextractor.cpp:99:13: note: suggested alternative: ‘dec’ if (codec->codec_type == AVMEDIA_TYPE_AUDIO || codec->codec_type == AVMEDIA_TYPE_VIDEO) { ^~~~~ dec
Created attachment 546292 [details, diff] Reverse the commit breaking libav builds The attached patch reverses the commit and allows kfilemetadata to compile correctly on my system. I suspect it should only be applied when USE="libav" is used.
Would that be fixed by libav-12?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e23bcd25cf6cff793271837a5e88665d3e0ce91d commit e23bcd25cf6cff793271837a5e88665d3e0ce91d Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-09-21 15:43:44 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-09-21 15:53:33 +0000 kde-frameworks/kfilemetadata: Raise min media-video/libav to 12.2 Closes: https://bugs.gentoo.org/665518 Package-Manager: Portage-2.3.49, Repoman-2.3.10 kde-frameworks/kfilemetadata/kfilemetadata-5.46.0.ebuild | 2 +- kde-frameworks/kfilemetadata/kfilemetadata-5.50.0.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=db1193bfb8a7c12afb4d1b0c8d24dcc2ed8d0921 commit db1193bfb8a7c12afb4d1b0c8d24dcc2ed8d0921 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-09-21 15:43:44 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2018-09-30 08:42:26 +0000 kde-frameworks/kfilemetadata: Raise min media-video/libav to 12.2 Closes: https://bugs.gentoo.org/665518 Package-Manager: Portage-2.3.49, Repoman-2.3.10 kde-frameworks/kfilemetadata/kfilemetadata-9999.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)