Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911386 - net-libs/libssh2-1.11.0: static library is removed, cmake not usable anymore
Summary: net-libs/libssh2-1.11.0: static library is removed, cmake not usable anymore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 909341
  Show dependency tree
 
Reported: 2023-07-28 09:29 UTC by steffen_brauer
Modified: 2024-09-06 14:39 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 steffen_brauer 2023-07-28 09:29:09 UTC
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
Comment 1 Jonas Stein gentoo-dev 2023-07-28 19:33:34 UTC
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
Comment 2 Larry the Git Cow gentoo-dev 2023-08-01 07:17:07 UTC
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(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-09-06 14:39:39 UTC
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(-)