Created attachment 497790 [details] build.log ffmpeg will not build against the new openjpeg-2.3.0. It looks like the configure script uses some hardcoded checks against /usr/lib/include/openjpeg-2.{2,1,0} rather than using pkgconfig. Interestingly (in a bad way), if you also have openjpeg-1.x (slot 0) installed, configure WILL find that, and automatically use and link to that, while emerge still thinks you're using 2.x (slot 2). This could result in runtime breakage if/when slot 0 is depcleaned.
Created attachment 497792 [details] config.log
Created attachment 498078 [details, diff] ffmpeg-3.3.4-libopenjpeg-2.3.0.patch backported patch.
commit ca978a6c5eee01f7bab203df144003ec7ae8979c (HEAD -> master, origin/master, origin/HEAD) Author: Alexis Ballier <aballier@gentoo.org> Date: Sun Oct 8 12:20:38 2017 +0200 media-video/ffmpeg: backport upstream patch to build with openjpeg 2.3; by Andreas Sturmlechner. Close: https://bugs.gentoo.org/633576 Package-Manager: Portage-2.3.11, Repoman-2.3.3 thx (forgot an 's' to Close and it did not close it automatically...)
*** Bug 634380 has been marked as a duplicate of this bug. ***