Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636780 - media-libs/gegl:0: undefined symbol: avcodec_alloc_frame
Summary: media-libs/gegl:0: undefined symbol: avcodec_alloc_frame
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Sebastian Pipping
URL: https://github.com/gentoo/gentoo/pull...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-11-07 12:48 UTC by Joakim Tjernlund
Modified: 2018-01-10 22:42 UTC (History)
1 user (show)

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


Attachments
gegl-0.2.0-ffmpeg.patch (gegl-0.2.0-bug636780.patch,1.31 KB, patch)
2017-11-08 13:14 UTC, Fabio Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2017-11-07 12:48:52 UTC
stable gimp complains:
EGL-geglmodule.c-Message: Module '/usr/lib64/gegl-0.2/ff-load.so' load error: /usr/lib64/gegl-0.2/ff-load.so: undefined symbol: avcodec_alloc_frame

This is because avcodec_alloc_frame has been rename to av_frame_alloc
in late ffmpeg, this ebuild hack fixes it for me:

sed -i 's/avcodec_alloc_frame/av_frame_alloc/' \
		${S}/operations/external/ff-load.c \
		${S}/operations/workshop/external/ff-save.c || die
Comment 1 Joakim Tjernlund 2017-11-07 12:50:13 UTC
You could add epatch_user when fixing too
Comment 2 Fabio Rossi 2017-11-08 13:13:50 UTC
the patch works for me, it has been fixed upstream with >=gegl-0.3.4
Comment 3 Fabio Rossi 2017-11-08 13:14:37 UTC
Created attachment 503100 [details, diff]
gegl-0.2.0-ffmpeg.patch

created a patch for convenience
Comment 4 Larry the Git Cow gentoo-dev 2018-01-10 22:42:35 UTC
The bug has been closed via the following commit(s):

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

commit 0217aa144b09b53ccd7da255559fe90edd91e81a
Author:     Bob Brooks <gitbugged@cool.fr.nf>
AuthorDate: 2017-12-16 18:16:49 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2018-01-10 22:35:07 +0000

    media-libs/gegl-0.2.0-r5: fix ffmpeg/libav support
    
    ffmpeg has renamed avcodec_alloc_frame to av_frame_alloc
    
    Closes: https://bugs.gentoo.org/636780
    Closes: https://github.com/gentoo/gentoo/pull/6154

 .../files/gegl-0.2.0-ffmpeg-av_frame_alloc.patch   |  38 +++++
 media-libs/gegl/gegl-0.2.0-r5.ebuild               | 164 +++++++++++++++++++++
 2 files changed, 202 insertions(+)