Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708256 - dev-libs/jsoncpp: since build with meson, the file 'jsoncppConfig.cmake' is no longer generated and installed
Summary: dev-libs/jsoncpp: since build with meson, the file 'jsoncppConfig.cmake' is n...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Michał Górny
URL:
Whiteboard:
Keywords:
: 720292 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-02-04 18:51 UTC by Christian Strahl
Modified: 2020-05-01 17:52 UTC (History)
2 users (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 Christian Strahl 2020-02-04 18:51:16 UTC
since building jsoncpp with meson instead of cmake, one of the previous installed files is missing.

The file 'jsoncppConfig.cmake' was generated during build with cmake (by passing -DJSONCPP_WITH_CMAKE_PACKAGE=ON to local mycmakeargs) and installed on the system.

That file is nessesary for project that depends on jsoncpp and uses cmake to build.

Since switching the jsoncpp ebuild from cmake to meson, I can no longer build cmake project that use jsoncpp due to errors like this:

  CMake Error at /usr/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
    By not providing "Findjsoncpp.cmake" in CMAKE_MODULE_PATH this project has
    asked CMake to find a package configuration file provided by "jsoncpp", but
    CMake did not find one.
  
    Could not find a package configuration file provided by "jsoncpp" with any
    of the following names:
  
      jsoncppConfig.cmake
      jsoncpp-config.cmake
  
    Add the installation prefix of "jsoncpp" to CMAKE_PREFIX_PATH or set
    "jsoncpp_DIR" to a directory containing one of the above files.  If
    "jsoncpp" provides a separate development package or SDK, be sure it has
    been installed.

This problem was introduced in https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-libs/jsoncpp?id=789eeda52dd189206a7e15faf9e0eeb4a9897a00


Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-02-05 05:52:24 UTC
The 'project' needs to stop requiring it.  It's upstream decision to stop using cmake.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-05-01 17:52:26 UTC
*** Bug 720292 has been marked as a duplicate of this bug. ***