Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 847058 - media-libs/openjpeg: bad pkgconfig include path
Summary: media-libs/openjpeg: bad pkgconfig include path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Thomas Bracht Laumann Jespersen
URL:
Whiteboard:
Keywords: PullRequest
: 847076 847079 847082 847118 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-05-23 07:19 UTC by mathway.misc
Modified: 2022-05-23 20:46 UTC (History)
4 users (show)

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


Attachments
emerge output (bug.txt,15.99 KB, text/plain)
2022-05-23 07:19 UTC, mathway.misc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mathway.misc 2022-05-23 07:19:51 UTC
Created attachment 780296 [details]
emerge output

Packages that depend on media-libs/openjpeg can't pass configure phase(cmake), even though openjpeg is installed. For example app-text/poppler and net-libs/webkit-gtk.

emerge output is in the attachment.
Comment 1 A Blamey 2022-05-23 08:15:56 UTC
I too see this problem when building ffmpeg.

It seems that the pkgconfig file installed by openjpeg-2.5.0 is faulty:

With openjpeg-2.4.0-r3 I get:

> #pkg-config --cflags libopenjp2
> -I/usr/include/openjpeg-2.4

With openjpeg-2.5.0 I get:

> #pkg-config --cflags libopenjp2
> 

i.e. it no longer prints the include path.

The openjpeg-2.5.0 pkgconfig file libopenjp2.pc contains the line:
> includedir=${prefix}/include

instead of 
> includedir=${prefix}/include/openjpeg-2.5.0
Comment 2 Niklāvs Koļesņikovs 2022-05-23 11:33:24 UTC
Yes, the pkgconfig file is broken in 2.5.0. I think bug 694776 has ended up tracking this issue.
Comment 3 Larry the Git Cow gentoo-dev 2022-05-23 17:26:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf92bccd8ffd7dc4ff4b32b465fa5e34ca04a564

commit bf92bccd8ffd7dc4ff4b32b465fa5e34ca04a564
Author:     Thomas Bracht Laumann Jespersen <t@laumann.xyz>
AuthorDate: 2022-05-23 11:33:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-23 17:26:28 +0000

    media-libs/openjpeg: add 2.5.0-r1, fix includedir
    
    Bug: https://bugs.gentoo.org/694776
    Closes: https://bugs.gentoo.org/847058
    Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz>
    Closes: https://github.com/gentoo/gentoo/pull/25607
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/openjpeg/files/openjpeg-2.5.0-gnuinstalldirs.patch         | 4 ++--
 .../openjpeg/{openjpeg-2.5.0.ebuild => openjpeg-2.5.0-r1.ebuild}      | 0
 2 files changed, 2 insertions(+), 2 deletions(-)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-23 17:48:21 UTC
*** Bug 847118 has been marked as a duplicate of this bug. ***
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-23 17:48:26 UTC
*** Bug 847082 has been marked as a duplicate of this bug. ***
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-23 17:48:31 UTC
*** Bug 847079 has been marked as a duplicate of this bug. ***
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-23 17:48:35 UTC
*** Bug 847076 has been marked as a duplicate of this bug. ***