Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 655030

Summary: media-gfx/blender-2.79-r1 API incompatible with >= media-video/ffmpeg-4.0
Product: Gentoo Linux Reporter: Reuben Martin <reuben.m>
Component: Current packagesAssignee: Jonathan Scruggs (RETIRED) <dracwyrm>
Status: RESOLVED FIXED    
Severity: normal CC: agrigo2001, dschridde+gentoobugs, eugene.shalygin, graphics+disabled, jstein, marcan, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/9580
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 653678    
Attachments: build log

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.

https://developer.blender.org/D3181
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f76dac14be61f812f1b2eb759f40c3dad9211ad2

commit f76dac14be61f812f1b2eb759f40c3dad9211ad2
Author:     Jonathan Scruggs <j.scruggs@gmail.com>
AuthorDate: 2018-08-15 16:43:27 +0000
Commit:     Jonathan Scruggs <dracwyrm@gentoo.org>
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.
    Closes: https://bugs.gentoo.org/655030
    Closes: https://github.com/gentoo/gentoo/pull/9580

 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;
                   ^~~~~~~~~~~~~~~~~~~~~~~~
                   AV_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.

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