Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 863098 - dev-cpp/json11: pkg-config file contains wrong directories on multilib
Summary: dev-cpp/json11: pkg-config file contains wrong directories on multilib
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Florian Schmaus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-02 15:12 UTC by Thomas Schneider
Modified: 2023-03-01 09:25 UTC (History)
0 users

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


Attachments
emerge --info (file_863098.txt,9.07 KB, text/plain)
2022-08-02 15:12 UTC, Thomas Schneider
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Schneider 2022-08-02 15:12:24 UTC
Created attachment 797035 [details]
emerge --info

The pkg-config file of dev-cpp/json11 contains the wrong paths on multi-arch (i.e., the vast majority of current (amd64) systems) installations.

Observed behaviour:
```
qsx@naboo ~ 
% pkg-config --cflags json11
-I/usr/include/ 
qsx@naboo ~ 
% pkg-config --libs json11
-L/usr/lib/ -ljson11 
```

Expected behaviour:
```
qsx@naboo ~ 
% pkg-config --cflags json11

qsx@naboo ~ 
% pkg-config --libs json11
-ljson11 
```

For --cflags, -I/usr/include/ should not be specified at all, since it is default.  For --libs, /usr/lib/ is plain wrong and can be omitted, as the correct /usr/lib64 is default as well.
Comment 1 Larry the Git Cow gentoo-dev 2023-03-01 09:25:54 UTC
The bug has been closed via the following commit(s):

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

commit bebab38678b84cc6bc2793d20be80ea74efc4863
Author:     Florian Schmaus <flow@gentoo.org>
AuthorDate: 2023-03-01 09:24:44 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2023-03-01 09:24:44 +0000

    dev-cpp/json11: fix pkg-config file
    
    Closes: https://bugs.gentoo.org/863098
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 ...1.0.0-json11.pc-do-not-state-the-defaults.patch | 22 ++++++++++++++++++++++
 dev-cpp/json11/json11-1.0.0-r1.ebuild              | 19 +++++++++++++++++++
 2 files changed, 41 insertions(+)