cmake-3.16.5 looks for libjsoncpp.so.22, so fails with dev-libs/jsoncpp-1.9.3_pre20200412. Reproducible: Always
Same problem with cmake-3.17.2. The bootstrap is to blame. The only solution is to unmerge cmake and reemerge, so that it has to use its bundled libraries for bootstrapping.
(In reply to Ingo Brunberg from comment #1) > Same problem with cmake-3.17.2. The bootstrap is to blame. The only solution > is to unmerge cmake and reemerge, so that it has to use its bundled > libraries for bootstrapping. thanks for the tip, it works.
+1 for the tip
Same here. But work around does fine.
*** Bug 726302 has been marked as a duplicate of this bug. ***
Same problem with cmake-3.18.1 after updating jsoncpp to 1.9.3. This is the only package not working correctly with FEATURES="-preserve-libs". It cannot be so hard to test if the installed cmake is still working. Maintainers, please fix.
Sure, tell me how to reproduce this. I haven't seen this a single time, and I take care of multiple systems. As for preserve-libs, cmake has a slot operator on dev-libs/jsoncpp, so nothing to fix there either.
It happens on every @world update, when jsoncpp is updated to a new subslot, for example from 1.9.1 to 1.9.3, and cmake is rebuild directly afterwards. Then the presently installed cmake is broken because of the missing libjsoncpp.so.XX. Trying to use that broken cmake binary in cmake_src_configure then fails, of course.
caveat emptor: you can symlink the new libjsoncpp.so.XX to the old one you need to quickly get cmake building again. then just re-emerge cmake again after removing the symlink just created, since it'll be now compiled against the latest libjsoncpp. obviously, this can bork things... but, worked for me just now.
And yet somehow no one bothered to attach build.log so far.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deb9c16acf7d2e1d5eeb838bde8c2073f9cb6e7f commit deb9c16acf7d2e1d5eeb838bde8c2073f9cb6e7f Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-09-05 17:52:52 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-09-06 16:45:36 +0000 dev-util/cmake: Detect if system cmake binary is broken cmake binary can be broken if FEATURES="-preserve-libs" is set. Bug: https://bugs.gentoo.org/720230 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-util/cmake/cmake-3.18.2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)