Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733044 - dev-libs/rapidjson-1.1.0-r1 RapidJSON not listed in pkg-config
Summary: dev-libs/rapidjson-1.1.0-r1 RapidJSON not listed in pkg-config
Status: RESOLVED DUPLICATE of bug 696978
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Craig Andrews
Depends on:
Reported: 2020-07-17 09:43 UTC by Michele Santullo
Modified: 2020-07-27 14:32 UTC (History)
2 users (show)

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

output of emerge --info (,7.62 KB, application/x-info)
2020-07-17 09:43 UTC, Michele Santullo

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Santullo 2020-07-17 09:43:23 UTC
Created attachment 649682 [details]
output of emerge --info

I installed dev-libs/rapidjson-1.1.0-r1 and file /usr/lib/pkgconfig/RapidJSON.pc got installed as part of the package. However the build system for my own project is still unable to detect RapidJSON on my system. The reason is that pkg-config --list-all doesn't find it either. As they suggested on IRC, I created a symlink to that file in my /usr/lib64/pkgconfig directory and that fixes the problem.

Is this something that should be addressed in the ebuild or upstream? If it's the ebuild I can have a look and see if I can come up with a patch, or I can report this upstream if needed.
Comment 1 Jonas Stein gentoo-dev 2020-07-19 18:34:08 UTC
How do you want to use the library in your project? Do you have an MWE?
Comment 2 Michele Santullo 2020-07-21 08:19:58 UTC
I don't have anything pushed right now since my project is still work in progress. I'm using Meson as the build system, and the command that fails is:

rapidjson_dep = dependency('RapidJSON')

which, as I understand, relies on pkg-config and cmake, if the first fails. I can write a short Meson script that reproduces the issue, but I think in general this command should work:

pkg-config --list-all | ag RapidJSON

I hope this answers your question.
Comment 3 Craig Andrews gentoo-dev 2020-07-27 14:32:45 UTC
This issue was fixed in bug 696978

Please use dev-libs/rapidjson-1.1.0-r2. I've requested stabilization of that version in bug 734100

*** This bug has been marked as a duplicate of bug 696978 ***