Page MenuHomeSolus

Fixing the broken pkgconfig file of openjp2
AbandonedPublic

Authored by xulongwu4 on Mar 26 2018, 4:39 PM.
Tags
None
Referenced Files
F11054447: D2622.id6527.diff
Fri, Aug 11, 12:49 AM
F11054445: D2622.id6523.diff
Fri, Aug 11, 12:49 AM
F11054444: D2622.id.diff
Fri, Aug 11, 12:49 AM
F11038165: D2622.diff
Wed, Aug 9, 10:09 PM
F10992605: D2622.diff
Tue, Jul 25, 12:07 PM
F10972793: D2622.id6527.diff
Fri, Jul 21, 4:09 PM
F10930072: D2622.id6523.diff
Jul 11 2023, 10:39 AM
F10767173: D2622.id.diff
May 19 2023, 10:34 PM

Details

Reviewers
None
Group Reviewers
Triage Team
Summary

The current installation of openjpeg-devel has a broken pkgconfig file.

pkg-config --libs libopenjp2 produces -L/usr//usr/lib64 -lopenjp2, which causes the link to libopenjp2 broken in building software.

The issue is that one should only specify a relative library path to the install prefix rather than an absolute path.

After the fix, the output of pkg-config --libs libopenjp2 is -lopenjp2.

Test Plan

Installed the fix and checked the pkgconfig file. It works as expected.

Diff Detail

Repository
R2244 openjpeg
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Use lib%LIBSUFFIX% for the lib directory

D1156 and D2622 need to be combined as only one can land.

D1156 and D2622 need to be combined as only one can land.

@kyrios123 Do you mind adding this fix to your patch. It is a really simple fix and if you can pull it into your patch, I am happy to close this one.

Your changes have been merged into D1156, thanks ! ?