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

[vcpkg-ci-curl,curl,c-ares,libssh2,librtmp] Elaborate test, fix ports #43463

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

dg0yt
Copy link
Contributor

@dg0yt dg0yt commented Jan 25, 2025

For #43403 (comment).
Fixes insufficient use and export of link libraries.
Fixes broken pkgconfig files.
Fixes broken curl-config.
Fixes invalid mixup of release/debug library paths.
Adds the missing vcpkg-ci-curl:*-uwp=pass.

Upstream curl did a lot of work on dependency import/export with regard to pkg-config.
Leveraging this work can reduce the amount of patching needed (at the price of using less CMake config).
Unfortunately, patching is still needed to use full link libraries from the pc files, and to generate reasonable libcurl.pc and curl-config with no duplications and no build-type mixup.

Upstream libssh2 uses almost literally the same CMake code for pkgconfig export as in curl. However, it didn't use ZLIB::ZLIB and stumbled over multi-config ZLIB_LIBRARIES instead. This PR simply applies the curl pattern to libssh2, which also benefits the combined use. (But there is no libssh2-config script.)

Extending the test port to actually build, with all three configuration exports, helps to fix old quirks and to safeguard against new regressions.

@FrankXie05 FrankXie05 added the category:code-cleanup This PR cleans up code, without fixing any existing bugs nor adding any features. label Jan 26, 2025
@dg0yt dg0yt changed the title [vcpkg-ci-curl] WIP [vcpkg-ci-curl,curl,c-ares,libssh2,librtmp] Elaborate test, fix ports Jan 26, 2025
dg0yt added 2 commits January 26, 2025 18:16
No duplication, no wrong build type from imported targets
@dg0yt dg0yt marked this pull request as ready for review January 27, 2025 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:code-cleanup This PR cleans up code, without fixing any existing bugs nor adding any features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants