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

Set up new FFI bindings for libcurl #596

Merged
merged 8 commits into from
Jan 15, 2025
Merged

Conversation

rdw-software
Copy link
Member

@rdw-software rdw-software commented Nov 5, 2024

Only includes the boilerplate and version info API. Will add some core functionality soon, but separately.

@rdw-software rdw-software marked this pull request as draft November 5, 2024 17:00
@rdw-software rdw-software force-pushed the 369-libcurl-ffi-integration branch from 219a96b to 1540096 Compare December 12, 2024 22:17
@rdw-software rdw-software force-pushed the 369-libcurl-ffi-integration branch from 1540096 to 4b981c0 Compare January 10, 2025 16:55
@rdw-software rdw-software marked this pull request as ready for review January 10, 2025 19:37
@rdw-software rdw-software force-pushed the 369-libcurl-ffi-integration branch 3 times, most recently from 3fd1c42 to 6ffccc8 Compare January 15, 2025 07:59
The headers are required when building lua-openssl (and libcurl) against the cached OpenSSL libraries. Right now they're not included, which leads CMake to silently fall back to the system-installed version.

While that might be convenient, it's really not desirable here. In fact, it's exactly what I'm trying to avoid. The system version could be much older than the embedded one. Although that's of course unlikely, since distro maintainers will want to keep OpenSSL as updated as possible. In that scenario, building libcurl (and lua-openssl) against different versions could cause all sorts of issues.
Due to this minor oversight, the build script moved the generated artifacts and CMake subsequently failed to find them, silently falling back to the incorrect system-provided version. This then lead to libcurl using the wrong headers because CMake "found" them elsewhere, without realizing the versions didn't match or generating any warnings.
@rdw-software rdw-software force-pushed the 369-libcurl-ffi-integration branch from 6ffccc8 to 3a8e8e7 Compare January 15, 2025 13:43
@rdw-software rdw-software changed the title Integrate FFI bindings for libcurl Set up new FFI bindings for libcurl Jan 15, 2025
@rdw-software rdw-software merged commit e2199c4 into main Jan 15, 2025
11 checks passed
@rdw-software rdw-software deleted the 369-libcurl-ffi-integration branch January 15, 2025 14:10
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.

1 participant