Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670394 - dev-cpp/libjson-rpc-cpp: invalid libjson-rpc-cppTargets.cmake
Summary: dev-cpp/libjson-rpc-cpp: invalid libjson-rpc-cppTargets.cmake
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-05 20:29 UTC by Justus Ranvier
Modified: 2025-03-21 09:00 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justus Ranvier 2018-11-05 20:29:28 UTC
The libjson-rpc-cppTargets.cmake file installed by dev-cpp/libjson-rpc-cpp hard codes a dependency on the static version of jsoncpp:

INTERFACE_LINK_LIBRARIES "jsoncpp_lib_static"

This means that any cmake project that tries to use the libjson-rpc-cpp::jsonrpcclient target will fail to link because the jsoncpp ebuild disables the static libraries.

Projects that use the libjson-rpc-cpp::jsonrpcclient will build if
libjson-rpc-cppTargets.cmake is changed to specify:

INTERFACE_LINK_LIBRARIES "jsoncpp_lib"
Comment 1 Justus Ranvier 2018-11-05 20:44:58 UTC
Upstream bug: https://github.com/cinemast/libjson-rpc-cpp/issues/253
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-11-06 15:26:40 UTC
Out of curiosity, do you actually use this package?  I ended up not using it after all, and every time I bump it I'm wondering about lastriting it.
Comment 3 Justus Ranvier 2018-11-06 17:06:59 UTC
(In reply to Michał Górny from comment #2)
> Out of curiosity, do you actually use this package? 

It's a dependency for this library which I use in some applications: https://github.com/minium/bitcoin-api-cpp

I've also found other applications for it in situations where its lack of a websocket client transport isn't an impediment.
Comment 4 NHO 2025-03-21 09:00:08 UTC
Bug is obsolete, fixed in https://github.com/cinemast/libjson-rpc-cpp/commit/75455d55d241a24f8b56e133cb84d34c4ab598ca, fix is in tree