Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libssh: add recipe #23230

Merged
merged 5 commits into from
Apr 4, 2024
Merged

libssh: add recipe #23230

merged 5 commits into from
Apr 4, 2024

Conversation

obnyis
Copy link
Contributor

@obnyis obnyis commented Mar 24, 2024

Related: #13449

Related: #16899

Fixes: #16747

Specify library name and version: libssh/0.10.6

Changed replace_in_file from previous PR with apply_conandata_patches

Added tc.cache_variables["CMAKE_TRY_COMPILE_CONFIGURATION"] to support Visual Studio / Ninja Multi-Config generators


@CLAassistant
Copy link

CLAassistant commented Mar 24, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@valgur valgur left a comment

Choose a reason for hiding this comment

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

LGTM, should only add a missing exported target alias. Thanks!

recipes/libssh/all/conanfile.py Show resolved Hide resolved
recipes/libssh/all/test_v1_package/CMakeLists.txt Outdated Show resolved Hide resolved
recipes/libssh/all/conanfile.py Outdated Show resolved Hide resolved
@conan-center-bot

This comment has been minimized.

Copy link
Contributor

@valgur valgur left a comment

Choose a reason for hiding this comment

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

Thanks!

@conan-center-bot

This comment has been minimized.

@RubenRBS RubenRBS self-assigned this Mar 30, 2024
@obnyis
Copy link
Contributor Author

obnyis commented Apr 2, 2024

Added a new option for "with_symbol_versioning" and matched it to the default behaviour for libssh.

Defaults to being enabled as per:
https://git.libssh.org/projects/libssh.git/tree/DefineOptions.cmake?h=libssh-0.10.6#n22

Disabled if not Unix. I've implemented this as the option is deleted on Windows builds, is this the correct thing to do?
https://git.libssh.org/projects/libssh.git/tree/CMakeLists.txt?h=libssh-0.10.6#n108

@conan-center-bot

This comment has been minimized.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

Looking good, only few details

recipes/libssh/all/conanfile.py Outdated Show resolved Hide resolved
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 9 (03c6888c69ec56bc890b5d4243a8f1de3d3eb77f):

  • libssh/0.10.6:
    All packages built successfully! (All logs)

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

Choose a reason for hiding this comment

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

I just checked the upstream and they are actually using CMake targets in the master branch. So it should not be needed in the future.

@conan-center-bot conan-center-bot merged commit 1729171 into conan-io:master Apr 4, 2024
13 checks passed
@obnyis obnyis deleted the libssh-0.10.6 branch April 4, 2024 10:46
yhsng pushed a commit to yhsng/conan-center-index that referenced this pull request Apr 12, 2024
* libssh: add recipe

Related: conan-io#13449

Related: conan-io#16899

Fixes: conan-io#16747

* libssh: add option for with_symbol_versioning instead of forcing it off

* libssh: add reference links for target alias definitions

* libssh: remove cmake_find_package generators

* Add TODO info

---------

Co-authored-by: Uilian Ries <uilianries@gmail.com>
ericLemanissier pushed a commit to ericLemanissier/conan-center-index that referenced this pull request Apr 16, 2024
* libssh: add recipe

Related: conan-io#13449

Related: conan-io#16899

Fixes: conan-io#16747

* libssh: add option for with_symbol_versioning instead of forcing it off

* libssh: add reference links for target alias definitions

* libssh: remove cmake_find_package generators

* Add TODO info

---------

Co-authored-by: Uilian Ries <uilianries@gmail.com>
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.

[request] libssh/0.10.3
7 participants