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) { ^~~~~~~~~~~~~~~~ AVFMT_NOFILE A patch is available for this from https://sourceforge.net/p/vice-emu/patches/175/
Created attachment 554438 [details] build.log
The attached patch works when applied via epatch (saved in /etc/portage/patches/app-emulation/vice-3.1/xxxx.patch)
(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
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b6961ef0347393ca69eb7e03a3cc07d316d36b2 commit 1b6961ef0347393ca69eb7e03a3cc07d316d36b2 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2018-11-29 21:46:13 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> 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 <adam@eidolon.org.uk> Closes: https://bugs.gentoo.org/670620 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../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(-)