Static build can't find LIBSSH2 starting at v31.6.0 #871

Open
opened 2021-12-08 13:43:00 -06:00 by tylerphelan · 3 comments
tylerphelan commented 2021-12-08 13:43:00 -06:00 (Migrated from github.com)

Running on ubuntu 18.04

Steps:

$ apt list --installed | grep libssh
libssh2-1/now 1.8.0-1 amd64 [installed,local]
libssh2-1-dev/now 1.8.0-1 amd64 [installed,local]
$ git clone https://github.com/libgit2/git2go && cd git2go
$ git checkout v31.5.3 && git submodule update --init
$ make install-static # this works
$ rm -rf static-build
$ git checkout v31.6.0 && git submodule update --init # it's the same libgit2 anyways
$ make install-static
...
LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path.
...

All versions above 31.6.0 have shown the same behavior for me so far. What accounts for this?

Running on ubuntu 18.04 Steps: ``` $ apt list --installed | grep libssh libssh2-1/now 1.8.0-1 amd64 [installed,local] libssh2-1-dev/now 1.8.0-1 amd64 [installed,local] $ git clone https://github.com/libgit2/git2go && cd git2go $ git checkout v31.5.3 && git submodule update --init $ make install-static # this works $ rm -rf static-build $ git checkout v31.6.0 && git submodule update --init # it's the same libgit2 anyways $ make install-static ... LIBSSH2 not found. Set CMAKE_PREFIX_PATH if it is installed outside of the default search path. ... ``` All versions above 31.6.0 have shown the same behavior for me so far. What accounts for this?
clns commented 2022-04-14 17:43:16 -05:00 (Migrated from github.com)

I'm having the same issue. Have you found any solution?

I'm having the same issue. Have you found any solution?
tylerphelan commented 2022-04-15 08:56:49 -05:00 (Migrated from github.com)

@clns this seemed to work:

sed -i '/^.*DUSE_HTTPS=OFF.*$/d' script/build-libgit2.sh
sed -i '/^.*DUSE_SSH=OFF.*$/d' script/build-libgit2.sh
make install-static
@clns this seemed to work: ``` sed -i '/^.*DUSE_HTTPS=OFF.*$/d' script/build-libgit2.sh sed -i '/^.*DUSE_SSH=OFF.*$/d' script/build-libgit2.sh make install-static ```
clns commented 2022-04-15 23:34:48 -05:00 (Migrated from github.com)

It is supposed to be like this, because it is now using the Go transport. See b983e1daeb and 70e5e419cf.

It is supposed to be like this, because it is now using the Go transport. See https://github.com/libgit2/git2go/commit/b983e1daebf528443e2a3954cd595fa3664ec93f and https://github.com/libgit2/git2go/commit/70e5e419cf0cab31553b106267a0296f3cd672d9.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#871
No description provided.