Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 633576 - media-video/ffmpeg-3.3.4[jpeg2k] cannot find media-libs/openjpeg-2.3.0 in configure - ERROR: libopenjpeg not found
Summary: media-video/ffmpeg-3.3.4[jpeg2k] cannot find media-libs/openjpeg-2.3.0 in con...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL: https://ffmpeg.org/pipermail/ffmpeg-d...
Whiteboard:
Keywords:
: 634380 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-10-05 19:12 UTC by Ben Kohler
Modified: 2017-10-23 12:07 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,5.25 KB, text/plain)
2017-10-05 19:12 UTC, Ben Kohler
Details
config.log (config.log,398.19 KB, text/plain)
2017-10-05 19:13 UTC, Ben Kohler
Details
ffmpeg-3.3.4-libopenjpeg-2.3.0.patch (libopenjpeg-2.3.0.patch,4.99 KB, patch)
2017-10-08 09:42 UTC, Andreas Sturmlechner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***