Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 633576

Summary: media-video/ffmpeg-3.3.4[jpeg2k] cannot find media-libs/openjpeg-2.3.0 in configure - ERROR: libopenjpeg not found
Product: Gentoo Linux Reporter: Ben Kohler <bkohler>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED FIXED    
Severity: normal CC: asturm, bkohler, erhard_f, xxoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://ffmpeg.org/pipermail/ffmpeg-devel/2017-October/217389.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
config.log
ffmpeg-3.3.4-libopenjpeg-2.3.0.patch

Description Ben Kohler gentoo-dev 2017-10-05 19:12:50 UTC
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.
Comment 1 Ben Kohler gentoo-dev 2017-10-05 19:13:19 UTC
Created attachment 497792 [details]
config.log
Comment 2 Andreas Sturmlechner gentoo-dev 2017-10-08 09:42:33 UTC
Created attachment 498078 [details, diff]
ffmpeg-3.3.4-libopenjpeg-2.3.0.patch

backported patch.
Comment 3 Alexis Ballier gentoo-dev 2017-10-08 10:21:52 UTC
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...)
Comment 4 Alexis Ballier gentoo-dev 2017-10-23 12:07:41 UTC
*** Bug 634380 has been marked as a duplicate of this bug. ***