Elpis is my open-source coding-agent app for Linux. This post shows how its v0.5.3 release survives Arch's move to OpenSSL 4, and how the release check proves the fix instead of trusting the package.
The bug
Elpis 0.5.1 and 0.5.2 asked the operating system for libssl.so.3. Arch moved to OpenSSL 4 and dropped that file. The dynamic loader stopped the program before it could start, with the Linux form of a familiar error: a shared library was missing.
This kind of bug is easy to miss when the build machine still has the library. The binary links, the tests pass, and the package looks healthy. A user on another distribution gets the failure first.
The fix
Elpis now builds OpenSSL from source for Linux builds. The change in codex-rs/core/Cargo.toml is small:
[target.'cfg(target_os = "linux")'.dependencies]
openssl-sys = { workspace = true, features = ["vendored"] }
The important part is not the line itself. The important part is the proof around it.
The proof
The release build runs scripts/check-engine-openssl.sh. Its first check reads the linked-library table of three runtime files with objdump: the engine, the Code Mode host, and the sandbox helper. If libssl or libcrypto appears as a needed system library, the build fails.
In the v0.5.3 run, the engine needed only these system libraries:
elpis needs: libgcc_s.so.1 libm.so.6 libc.so.6 ld-linux-x86-64.so.2
The second check makes a real network request. It gives the engine a false API key and asks it to reach api.openai.com. A 401 Unauthorized answer is the desired result: the false key was rejected, which means the encrypted connection, certificate handling and HTTP path reached the service.
The check runs on the Ubuntu builder and inside an archlinux:latest container. In the passing run, the Arch container reported OpenSSL 4.1.0, started elpis 0.5.3, and reached the same answer over HTTPS:
Arch (HTTPS only, built-in OpenSSL): 401 Unauthorized
OK: no shipped binary needs a system OpenSSL, and TLS answers
The script also runs a control with empty certificate locations. That control must not produce the same answer. Without it, the test could pass while certificate checking was broken or absent.
The tradeoff
A vendored OpenSSL moves responsibility to the project. Arch no longer has to provide the library Elpis expects, but a distribution security update also does not replace the copy inside Elpis. The copy changes when Elpis is built again.
The lockfile records openssl-src version 300.6.1+3.6.3 and openssl-sys version 0.9.118. That makes the packaged dependency visible, but it does not remove the need to ship a new release when OpenSSL needs a fix.
I accept that tradeoff here because the alternative was worse: one Linux distribution could update a system library and leave the installed app unable to start.
Try the terminal app
Elpis v0.5.3 publishes Linux x86_64 binaries. This line installs the terminal app:
curl -fsSL https://raw.githubusercontent.com/MasihMoafi/Elpis/v0.5.3/scripts/install-elpis.sh | bash
The script downloads the release files, checks their SHA-256 sums, and installs them under ~/.local/bin. The desktop packages and AppImage are on the release page.
Release: https://github.com/MasihMoafi/Elpis/releases/tag/v0.5.3
Code: https://github.com/MasihMoafi/Elpis
Top comments (0)