Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609716 - =media-gfx/blender-2.72b-r4 fails to build with media-video/ffmpeg-3 - error: ‘avcodec_alloc_frame’ was not declared in this scope
Summary: =media-gfx/blender-2.72b-r4 fails to build with media-video/ffmpeg-3 - error:...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 4 votes (vote)
Assignee: Jonathan Scruggs (RETIRED)
URL:
Whiteboard:
Keywords:
: 611540 (view as bug list)
Depends on:
Blocks: ffmpeg-3
  Show dependency tree
 
Reported: 2017-02-18 12:44 UTC by Frank Steinmetzger
Modified: 2017-12-24 18:21 UTC (History)
15 users (show)

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


Attachments
Output of emerge --info (emerge.info,6.44 KB, application/x-info)
2017-02-18 12:44 UTC, Frank Steinmetzger
Details
blender-2.72b-ffmpeg3.patch (blender-2.72b-ffmpeg3.patch,17.71 KB, patch)
2017-06-25 16:11 UTC, Marco Genasci
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Steinmetzger 2017-02-18 12:44:41 UTC
Created attachment 464218 [details]
Output of emerge --info

As part of a world update, ffmpeg was upgraded from version 2 to 3. Blender failed to build afterwards. To confirm, I reverted back to ffmpeg 2.8 and blender built past the point where the error occured.

→ make blender 2.72b-r4 depend on <ffmpeg-3

I didn't test libav. As a workaround for me, disabling ffmpeg for this version of blender also worked.
Comment 1 Michael Palimaka (kensington) gentoo-dev 2017-02-19 09:57:57 UTC
If I recall correctly, this is fixed in a later version - time to stabilise?
Comment 2 Oleh 2017-02-28 13:00:37 UTC
later version depends on python-3.5 which is not stabilized. So this is like a corner case, which can be fixed in various ways:
pin 2.72 blender to ffmpeg-2
stabilize 2.78 and python-3.5
disable ffmpeg USE for 2.72
Comment 3 Jonathan Scruggs (RETIRED) gentoo-dev 2017-02-28 13:14:30 UTC
I have a PR going with various fixes for Blender. I could make changes now before it's committed. I could just remove ffmpeg from it; not ideal. I need to check if ffmpeg is a bundled package, if so I could enable that; not ideal.

Blender 2.78 depends on OpenEXR, IlmBase, CUDA, Python 3.5, and several other non stable packages. Some of which may not be stable for a long while. Version 2.78a depends on CUDA 8 which definitely won't be stable for a while. The 2.78b will have even more unstable depends as we are finally able to put OSL in the tree. Which is why I haven't removed 2.78 when 2.78a went into portage and won't remove either of them when 2.78b goes in.

Let me know what should be done so I can update the PR.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2017-03-03 23:21:58 UTC
*** Bug 611540 has been marked as a duplicate of this bug. ***
Comment 5 Oleh 2017-03-06 08:06:34 UTC
that's good but this particular report is about ffmpeg-3 compatibility of older (and stable by meaning of gentoo's keywords) version.
Comment 6 Jonathan Scruggs (RETIRED) gentoo-dev 2017-03-06 11:43:32 UTC
(In reply to Oleg from comment #5)
> that's good but this particular report is about ffmpeg-3 compatibility of
> older (and stable by meaning of gentoo's keywords) version.

I know. I was kinda replying to two different comments. The first paragraph is on topic with this report about what I should do to the 2.72b ebuild: just put <media-video/ffmpeg-3.0.0 in the depends or completely remove ffmpeg.

The second paragraph was to Michael about why 2.78 can't be stabilizes yet.

Hope this clears it up.
Comment 7 Ivan 2017-03-06 11:52:52 UTC
What about patching blender to work with ffmpeg3? Here's the upstream change https://developer.blender.org/rB0b03785eb5d46dfc053d7f8ef4924219fe7759c5
Comment 8 Marco Genasci 2017-06-25 16:11:01 UTC
Created attachment 477990 [details, diff]
blender-2.72b-ffmpeg3.patch

I backported the patch for blender 2.72b
Comment 9 Thomas De Schampheleire 2017-09-15 18:41:49 UTC
I confirm that applying the patch from comment #8 solves this problem and blender builds and runs successfully.

Could this be officialized please?
Comment 10 Jonathan Scruggs (RETIRED) gentoo-dev 2017-09-16 10:33:27 UTC
I'll add this patch to the PR I have. I'm hoping to have newer versions of Blender stabilized soon.
Comment 11 Jonathan Scruggs (RETIRED) gentoo-dev 2017-12-24 18:21:17 UTC
This version is old and will be removed as 2.79 is stabilized in 30 days.