Skip to content

Conversation

Keno
Copy link
Member

@Keno Keno commented Jul 31, 2025

Addresses the same CI failure that #59141 was intended to address. The issue here is twofold. First, in a source build, we failed to install openssl header files. Second, even if we had done this, libssh needs to be explicitly told where to find openssl, otherwise it might prefer systme files.

Addresses the same CI failure that #59141
was intended to address. The issue here is twofold. First, in a source
build, we failed to install openssl header files. Second, even if we
had done this, libssh needs to be explicitly told where to find openssl,
otherwise it might prefer systme files.
Copy link
Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems somewhat confusingly documented, I think you have to edit the cmake file itself to enable the policy that allows it to pick up this flag, otherwise you should have gotten it already from CMAKE_PREFIX_PATH ahead of the system path https://cmake.org/cmake/help/latest/command/find_package.html#search-procedure

@Keno
Copy link
Member Author

Keno commented Jul 31, 2025

OPENSSL_ROOT_DIR prevents it from picking up the system path. I don't know if it would have picked up the local openssl first with the build system fix automatically, but with OPENSSL_ROOT_DIR, it gives an appropriate error if it doesn't detect it where we expect.

@Keno
Copy link
Member Author

Keno commented Jul 31, 2025

(Note that OpenSSL has a custom CMake dependency provider, so the linked documentation doesn't apply except in spirit)

@Keno Keno added the backport 1.12 Change should be backported to release-1.12 label Jul 31, 2025
@Keno Keno merged commit 5ddd721 into master Jul 31, 2025
9 checks passed
@Keno Keno deleted the kf/libssh2fix branch July 31, 2025 06:11
@KristofferC KristofferC mentioned this pull request Aug 6, 2025
38 tasks
@KristofferC KristofferC mentioned this pull request Aug 19, 2025
27 tasks
KristofferC pushed a commit that referenced this pull request Sep 17, 2025
Addresses the same CI failure that
#59141 was intended to address.
The issue here is twofold. First, in a source build, we failed to
install openssl header files. Second, even if we had done this, libssh
needs to be explicitly told where to find openssl, otherwise it might
prefer systme files.

(cherry picked from commit 5ddd721)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants