Created attachment 530814 [details] makemkv-1.12.2-ffmpeg-4.patch The build currently fails with: libffabi/src/ffabi.c: In function ‘ffm_audio_encode_init’: libffabi/src/ffabi.c:520:30: error: ‘CODEC_FLAG_GLOBAL_HEADER’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_GLOBAL_HEADER’? ctx->avctx->flags |= CODEC_FLAG_GLOBAL_HEADER; ^~~~~~~~~~~~~~~~~~~~~~~~ AV_CODEC_FLAG_GLOBAL_HEADER libffabi/src/ffabi.c:520:30: note: each undeclared identifier is reported only once for each function it appears in libffabi/src/ffabi.c: In function ‘ffm_audio_encode_get_info’: libffabi/src/ffabi.c:721:28: error: ‘CODEC_FLAG_GLOBAL_HEADER’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_GLOBAL_HEADER’? if ((ctx->avctx->flags&CODEC_FLAG_GLOBAL_HEADER)!=0) ^~~~~~~~~~~~~~~~~~~~~~~~ AV_CODEC_FLAG_GLOBAL_HEADER It looks like this flag has been prefixed since 2.8: https://github.com/FFmpeg/FFmpeg/commit/7c6eb0a1b7bf1aac7f033a7ec6d8cacc3b5c2615 However the old name was still supported until 4.0: https://github.com/FFmpeg/FFmpeg/commit/b79a7da36faa6bb5914b04800b548e99eb3b81ca The attached patch taken from negativo17's RPM repository fixes the build.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b2c32569270c1fb2062436efae206e4be737349 commit 3b2c32569270c1fb2062436efae206e4be737349 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2018-05-14 21:48:25 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2018-05-14 21:48:25 +0000 media-video/makemkv: Patch for compatibility with ffmpeg 4 Closes: https://bugs.gentoo.org/655488 Package-Manager: Portage-2.3.36, Repoman-2.3.9 media-video/makemkv/files/makemkv-ffmpeg.patch | 25 +++++++++++++++++++++++++ media-video/makemkv/makemkv-1.12.2.ebuild | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-)