Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 539834 - media-libs/openjpeg - cross-targeting non-UNIX omits pkgconfig installation
Summary: media-libs/openjpeg - cross-targeting non-UNIX omits pkgconfig installation
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Graphics Project
Depends on:
Reported: 2015-02-12 00:24 UTC by tschwinger
Modified: 2018-11-04 11:21 UTC (History)
1 user (show)

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

Comments-out if(UNIX) in CMakeLists.txt (openjpeg-1.5.2-always-pkgconfig.patch,836 bytes, patch)
2015-02-12 00:26 UTC, tschwinger
Details | Diff
Patch CMakeLists.txt (openjpeg-1.5.2-r666.ebuild.diff,571 bytes, patch)
2015-02-12 00:27 UTC, tschwinger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tschwinger 2015-02-12 00:24:32 UTC
If your host platform (the one you're compiling on) can use ebuild it can also use pkgconfig, regardless of which platform is being targeted. Makes sense?

Reproducible: Always

Steps to Reproduce:
1, Emerge openjpeg-1.5.2 targeting x86_64-w64-mingw32 
Actual Results:  
pc file is missing and the library will not get found by dependent builds

Expected Results:  
A pc file is generated in lib/pkgconfig of the crossdev environment.
Comment 1 tschwinger 2015-02-12 00:26:19 UTC
Created attachment 396218 [details, diff]
Comments-out if(UNIX) in CMakeLists.txt

This patch is applied by the modified ebuild.
Comment 2 tschwinger 2015-02-12 00:27:42 UTC
Created attachment 396220 [details, diff]
Patch CMakeLists.txt

Changes done to the ebuild itself
Comment 3 tschwinger 2015-02-12 00:29:08 UTC
CC to apparent ebuild maintainer
Comment 4 tschwinger 2015-02-12 01:46:51 UTC
- The generated pc file for 1.5.2 still lacks information for static linking 
- Currently both versions do not generate the pc file for non-UNIX and both should

So my patch is incomplete - it's straight out of my local overlay and the version 1 DLL worked for me.
Comment 5 Jeroen Roovers gentoo-dev 2015-02-13 07:58:53 UTC
Could you stop CC'ing random people, please?
Comment 6 tschwinger 2015-02-13 22:21:38 UTC

Are they sooo random?

I added people whose names can be found frequently in <dir-of-ebuild>/Changelog in conjunction with major changes. Is it a crime?

You added the same person back to the CC list after removing on another case. Yet another issue was just fixed by the very person I CC'ed...

While we're at it: Could you please CC this case to the appropriate maintainer, please?
Comment 7 Larry the Git Cow gentoo-dev 2018-11-03 21:46:25 UTC
The bug has been referenced in the following commit(s):

commit 8e2af69c3abc94578627dc3867546a18c76f9f36
Author:     Andreas Sturmlechner <>
AuthorDate: 2018-11-03 21:07:11 +0000
Commit:     Andreas Sturmlechner <>
CommitDate: 2018-11-03 21:30:52 +0000

    media-libs/openjpeg: Always install pkgconfig
    Signed-off-by: Andreas Sturmlechner <>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 media-libs/openjpeg/openjpeg-2.3.0-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)