Skip to content

fix: Enable vendored OpenSSL for cross-compilation#3

Merged
jdx merged 1 commit intomainfrom
fix-openssl-cross-compilation
Oct 20, 2025
Merged

fix: Enable vendored OpenSSL for cross-compilation#3
jdx merged 1 commit intomainfrom
fix-openssl-cross-compilation

Conversation

@jdx
Copy link
Copy Markdown
Owner

@jdx jdx commented Oct 20, 2025

Summary

  • Adds openssl-sys with vendored feature to fix cross-compilation failures
  • Resolves missing OpenSSL development libraries error during ARM64 Linux builds

Problem

The release workflow was failing when cross-compiling for aarch64-unknown-linux-gnu and x86_64-unknown-linux-gnu targets because OpenSSL development libraries weren't available for the target platforms.

The dependency chain is:

  • fnox → Azure/Google Cloud SDKs → reqwest → native-tls → openssl-sys

Solution

Enable the vendored feature for openssl-sys, which compiles OpenSSL from source instead of linking to system libraries. This makes cross-compilation self-contained and independent of system library availability.

Test plan

  • Local build succeeds
  • CI build succeeds for all targets

Fixes https://github.com/jdx/fnox/actions/runs/18640611588

🤖 Generated with Claude Code


Note

Enable vendored OpenSSL by adding openssl-sys with vendored feature; update lockfile to include openssl-src.

  • Dependencies:
    • Add openssl-sys with vendored feature in Cargo.toml to compile OpenSSL from source.
    • Update Cargo.lock to include openssl-src and wire it into openssl-sys.

Written by Cursor Bugbot for commit c830f1a. This will update automatically on new commits. Configure here.

Add openssl-sys with vendored feature to fix cross-compilation failures
on ARM64 Linux. The vendored feature compiles OpenSSL from source instead
of linking to system libraries, which resolves the missing OpenSSL
development libraries error during cross-compilation.

Fixes the release workflow failure for aarch64-unknown-linux-gnu and
x86_64-unknown-linux-gnu targets.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings October 20, 2025 03:00
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes cross-compilation failures by enabling vendored OpenSSL builds from source, addressing missing OpenSSL development libraries during ARM64 and x86_64 Linux target builds.

Key Changes

  • Adds openssl-sys dependency with vendored feature to compile OpenSSL from source
  • Makes cross-compilation self-contained and independent of system OpenSSL libraries
  • Resolves dependency chain issues from fnox → Azure/Google Cloud SDKs → reqwest → native-tls → openssl-sys

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jdx jdx merged commit 99f3da2 into main Oct 20, 2025
3 of 4 checks passed
@jdx jdx deleted the fix-openssl-cross-compilation branch October 20, 2025 03:02
@mise-en-dev mise-en-dev mentioned this pull request Oct 20, 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.

2 participants