Skip to content

Add libssl-dev for host platform builds - #98

Merged
Jonathan Swoboda (swoboda1337) merged 3 commits into
mainfrom
add-libssl-dev
Nov 1, 2026
Merged

Jonathan Swoboda (swoboda1337) merged 3 commits into
mainfrom
add-libssl-dev

Conversation

@swoboda1337

Copy link
Copy Markdown
Member

Anyone compiling a host: config in the Docker image or the Device Builder add-on hits this as soon as the config has ota:, http_request: or sha256::

esphome/components/md5/md5.h:9:10: fatal error: openssl/evp.h: No such file or directory

Those components use OpenSSL on the host platform and link with -lcrypto, but only the runtime library ships in the image, so the compiler can't find the headers. Having the headers in the base image lets host builds work in the add-on the same way they do on a workstation, including OTA updates to a host binary on another machine.

The runtime libssl3t64 is already pulled in by Python, so this adds the headers and static libraries only, about 16 MB installed.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

There are no active review issues with the addition of OpenSSL development files to the Debian image.

No open issues 🎉

What changed in this PR

Adds OpenSSL development files to the Debian image so host-platform configurations using ota, http_request, or sha256 can compile in Docker and the Device Builder add-on.

Changes:

  • Adds pinned dependency libssl-dev=3.5.7-1~deb13u3 to provide the required OpenSSL headers and development libraries.
File Description
debian/​Dockerfile Installs OpenSSL development files for host-platform builds.

Review effort: Balanced

@swoboda1337
Jonathan Swoboda (swoboda1337) merged commit 4fabc40 into main Nov 1, 2026
3 checks passed
@swoboda1337
Jonathan Swoboda (swoboda1337) deleted the add-libssl-dev branch November 1, 2026 14:49
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