Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 655030 - media-gfx/blender-2.79-r1 API incompatible with >= media-video/ffmpeg-4.0
Summary: media-gfx/blender-2.79-r1 API incompatible with >= media-video/ffmpeg-4.0
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jonathan Scruggs (RETIRED)
Depends on:
Blocks: ffmpeg-4
  Show dependency tree
Reported: 2018-05-06 00:23 UTC by Reuben Martin
Modified: 2018-08-16 19:22 UTC (History)
7 users (show)

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

build log (blender-ffmpeg.log,1.87 KB, text/plain)
2018-05-06 00:25 UTC, Reuben Martin

Note You need to log in before you can comment on or make changes to this bug.
Description Reuben Martin 2018-05-06 00:23:12 UTC
See summary.

Reproducible: Always
Comment 1 Reuben Martin 2018-05-06 00:25:13 UTC
Created attachment 530064 [details]
build log

Relevant part of compiler output
Comment 2 Erol Mutlu 2018-08-04 20:43:46 UTC
Hi everybody,

its fixed allready at own site; patch below link.
Comment 3 Jonathan Scruggs (RETIRED) gentoo-dev 2018-08-07 17:11:20 UTC
This version has been marked stable, so I can't add the patch, but I can change the depend for ffmpeg. I'm adding in 2.79b, which fixes this, so hopefully we can get that version marked stable and this one removed then.
Comment 4 Larry the Git Cow gentoo-dev 2018-08-15 17:21:10 UTC
The bug has been closed via the following commit(s):

commit f76dac14be61f812f1b2eb759f40c3dad9211ad2
Author:     Jonathan Scruggs <>
AuthorDate: 2018-08-15 16:43:27 +0000
Commit:     Jonathan Scruggs <>
CommitDate: 2018-08-15 17:20:47 +0000

    media-libs/blender: change depends for OpenVDB 5.x compat
    Only v2.79b and above will be compatible with OpenVDB 5.x, so
    make sure previous versions depend on OpenVDB 4.x.
    Change depend on ffmpeg because v4.x is not supported.

 media-gfx/blender/blender-2.79-r1.ebuild | 4 ++--
 media-gfx/blender/blender-2.79.ebuild    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Comment 5 Hector Martin 2018-08-16 06:57:20 UTC
2.79b is still broken with ffmpeg-4:

/var/tmp/portage/media-gfx/blender-2.79b/work/blender-2.79b/source/blender/imbuf/intern/indexer.c: In function ‘alloc_proxy_output_ffmpeg’:
/var/tmp/portage/media-gfx/blender-2.79b/work/blender-2.79b/source/blender/imbuf/intern/indexer.c:540:19: error: ‘CODEC_FLAG_GLOBAL_HEADER’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_GLOBAL_HEADER’?
   rv->c->flags |= CODEC_FLAG_GLOBAL_HEADER;

Looks like some defines got renamed.
Comment 6 Jonathan Scruggs (RETIRED) gentoo-dev 2018-08-16 14:17:38 UTC
Hi Hector,

Can you resync and try v2.79b again? I added in a patch for ffmpeg 4 compatibility. I used the one from master, not a user submitted patch. :) I miss read the patch originally, I thought they said they fixed it in the 2.79 repo, but I guess they haven't.

Comment 7 Hector Martin 2018-08-16 19:22:13 UTC
Yup, build succeeded now. Thanks!