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

Bug 539834

Summary: media-libs/openjpeg - cross-targeting non-UNIX omits pkgconfig installation
Product: Gentoo Linux Reporter: tschwinger
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: sam, tschwinger
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Comments-out if(UNIX) in CMakeLists.txt
Patch CMakeLists.txt

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 (RETIRED) 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):

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

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

    media-libs/openjpeg: Always install pkgconfig
    
    Bug: https://bugs.gentoo.org/539834
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
    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(+)