fix: add Cross.toml to install libssl-dev for Linux cross-compilation#4
Closed
fix: add Cross.toml to install libssl-dev for Linux cross-compilation#4
Conversation
pforge nightly Linux build fails with: Could not find openssl via pkg-config The system library `openssl` required by crate `openssl-sys` was not found Root cause: openssl-sys is pulled transitively via reqwest (default-tls → native-tls → openssl-sys) and pmcp's websocket (tokio-tungstenite). The `cross` Docker image used for cross-compilation doesn't have libssl-dev or pkg-config preinstalled. Fix: add Cross.toml with pre-build step to install libssl-dev + pkg-config in the cross container before build. Alternative (deferred): switch reqwest to rustls-tls and patch pmcp to avoid native-tls entirely. More work, no binary-size benefit given trueno-db also pulls openssl indirectly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Thank you for your interest in this project, @noahgift. This repository only accepts pull requests from organization members and authorized contributors. Your PR has been closed automatically. If you believe you should have access, please open an issue to discuss your contribution first. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes nightly Linux build failure where
openssl-syscan't find libssl-dev in the cross Docker image.Root cause
openssl-sys is pulled transitively via:
reqwest(default-tls → native-tls → openssl-sys) used by pforge-runtimepmcpwebsocket (tokio-tungstenite → native-tls)The
crosscontainer doesn't have libssl-dev preinstalled.Fix
Add
Cross.tomlwith pre-build step to install libssl-dev + pkg-config.Alternative (deferred)
Switching reqwest to rustls-tls + patching pmcp to avoid native-tls would eliminate the native dep entirely. Larger PR, deferred.
🤖 Generated with Claude Code