During installation the static library gets removed. CMake then cannot use the Libssh2Config.cmake file b/c libssh2.a is still referenced. Might be a typo b/c in 1.10.0 all ".la" instead of ".a" were deleted during installation. Reproducible: Always
The situation seems clear, but please add the logs in any case. Sometimes there are strange things we can only see in the logs. This includes * the complete build.log as attachment and * a paste of the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2576cc8201b327f5af1a65735036955902ea59cd commit 2576cc8201b327f5af1a65735036955902ea59cd Author: Sam James <sam@gentoo.org> AuthorDate: 2023-08-01 07:16:37 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-08-01 07:16:58 +0000 net-libs/libssh2: don't drop .a It breaks the installed CMake config file. Closes: https://bugs.gentoo.org/911386 Signed-off-by: Sam James <sam@gentoo.org> net-libs/libssh2/{libssh2-1.11.0.ebuild => libssh2-1.11.0-r1.ebuild} | 1 - net-libs/libssh2/libssh2-9999.ebuild | 1 - 2 files changed, 2 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a9e46534418e86907fc9db4c80a32c54593b15 commit c7a9e46534418e86907fc9db4c80a32c54593b15 Author: Eli Schwartz <eschwartz@gentoo.org> AuthorDate: 2024-09-06 14:26:20 +0000 Commit: Eli Schwartz <eschwartz@gentoo.org> CommitDate: 2024-09-06 14:35:49 +0000 net-libs/libssh2: pass build option to disable static-libs And apply patch to make the (anemic) testsuite run under this scenario. Previously, we dropped USE=static-libs when switching to build with cmake, then upstream brought support for that back and defaulted it to on -- but we built it and deleted the raw file instead, which broke cmake-config since that does runtime file checks to verify whether all originally installed files that you aren't using, exist. Since we tell the build system not to build+install static libraries at all, the resulting cmake configs won't check for them! Bug: https://bugs.gentoo.org/911386 Closes: https://bugs.gentoo.org/911548 Signed-off-by: Eli Schwartz <eschwartz@gentoo.org> ...s-run-the-tests-even-when-static-libs-are.patch | 66 +++++++++++++++++++++ net-libs/libssh2/libssh2-1.11.0-r3.ebuild | 69 ++++++++++++++++++++++ net-libs/libssh2/libssh2-9999.ebuild | 9 +-- 3 files changed, 140 insertions(+), 4 deletions(-)