Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670620 - app-emulation/vice-3.1 fails to build against media-video/ffmpeg-4.1
Summary: app-emulation/vice-3.1 fails to build against media-video/ffmpeg-4.1
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Games
Depends on:
Blocks: ffmpeg-4
  Show dependency tree
Reported: 2018-11-07 16:56 UTC by Adam Jones
Modified: 2018-11-29 22:04 UTC (History)
1 user (show)

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

Patch to build against ffmpeg 4 (ffmeg-4.patch,1.67 KB, patch)
2018-11-07 16:56 UTC, Adam Jones
Details | Diff
build.log (build.log,47.87 KB, text/x-log)
2018-11-07 16:57 UTC, Adam Jones

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Jones 2018-11-07 16:56:42 UTC
Created attachment 554436 [details, diff]
Patch to build against ffmpeg 4

With ffmpeg 4 installed, vice fails to build with:

ffmpegdrv.c:970:40: error: ‘AVFMT_RAWPICTURE’ undeclared (first use in this function); did you mean ‘AVFMT_NOFILE’?
     if (ffmpegdrv_oc->oformat->flags & AVFMT_RAWPICTURE) {

A patch is available for this from
Comment 1 Adam Jones 2018-11-07 16:57:39 UTC
Created attachment 554438 [details]
Comment 2 Adam Jones 2018-11-07 16:59:31 UTC
The attached patch works when applied via epatch (saved in /etc/portage/patches/app-emulation/vice-3.1/xxxx.patch)
Comment 3 Chris Faulkner 2018-11-12 00:59:06 UTC
(In reply to Adam Jones from comment #2)
> The attached patch works when applied via epatch (saved in
> /etc/portage/patches/app-emulation/vice-3.1/xxxx.patch)

Patch didn't work for me

 * Applying patch-src_gfxoutputdrv_ffmpegdrv.c.diff ...
The text leading up to this was:
|--- src/gfxoutputdrv/ffmpegdrv.c.orig  2017-03-30 20:32:40 UTC
|+++ src/gfxoutputdrv/ffmpegdrv.c
No file to patch.  Skipping patch.
5 out of 5 hunks ignored                                                                                                                                         [ !! ]
 * ERROR: app-emulation/vice-3.1::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/app-emulation/vice-3.1/patch-src_gfxoutputdrv_ffmpegdrv.c.diff
Comment 4 Larry the Git Cow gentoo-dev 2018-11-29 22:04:34 UTC
The bug has been closed via the following commit(s):

commit 1b6961ef0347393ca69eb7e03a3cc07d316d36b2
Author:     Andreas Sturmlechner <>
AuthorDate: 2018-11-29 21:46:13 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2018-11-29 22:04:19 +0000

    app-emulation/vice: Fix build with ffmpeg-4
    Rename PATCH to PATCHES (again!) and restore missing patch.
    Thanks-to: Adam Jones <>
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Andreas Sturmlechner <>

 .../vice/files/vice-2.4.27-autotools.patch         | 11 ++++
 app-emulation/vice/files/vice-3.1-ffmpeg4.patch    | 74 ++++++++++++++++++++++
 app-emulation/vice/vice-3.1.ebuild                 |  7 +-
 3 files changed, 89 insertions(+), 3 deletions(-)