Skip to content

fix(ci): repair nightly Linux and macOS builds - #2397

Merged
theangelperalta merged 3 commits into
lem-project:mainfrom
theangelperalta:fix/nightly-builds
Nov 17, 2026
Merged

theangelperalta merged 3 commits into
lem-project:mainfrom
theangelperalta:fix/nightly-builds

Conversation

@theangelperalta

Copy link
Copy Markdown
Collaborator

Nightly builds have failed every night since at least 2026-10-23. There were four separate breakages; each commit fixes one area.

Linux (AppImage)

  • libvterm too old. Ubuntu 22.04 ships libvterm 0.1.x, whose VTermScreenCellAttrs has no conceal/small/baseline, so make terminal-lib fails. The Dockerfile now builds libvterm 0.3.3 from source (with -fPIC, since it is linked statically into terminal.so) and keeps the 22.04 glibc baseline.
  • ncurses has no deploy path. cl-charms now tries the unversioned libncursesw.so first. On Debian/Ubuntu that is an INPUT(libncursesw.so.6 -ltinfo) ld script, which deploy doesn't follow (it only handles GROUP (), so asdf:make aborts with "LIBCURSES does not have a known shared library file path". The new src/linux.lisp points deploy at the real shared object CFFI opened. (A fix in deploy's follow-ld-script would be the more general solution.)
  • tree-sitter soname mismatch. The Dockerfile built tree-sitter from main, which is now 0.28, but tree-sitter-cl's prebuilt libts-wrapper.so links against libtree-sitter.so.0.27, so linuxdeploy fails. 0.27 is now released, so the build is pinned to v0.27.2.

macOS

  • OpenSSL 4. Homebrew's unversioned openssl now points at OpenSSL 4, which removed ASN1_STRING_data. cl+ssl loads opt/openssl/lib/libssl.dylib, so qlot install dies with "The alien function ASN1_STRING_data is undefined". The workflow installs openssl@3 and points the alias back at it. (The packaging step already bundles openssl@3, so the shipped app is unchanged.) This also affects local qlot install on machines where openssl@4 is installed.
  • System libraries copied into the bundle. lem-darwin's CoreFoundation framework, cl-objc's libobjc and cffi's libffi live only in the dyld shared cache, so deploy can't copy them. They are now marked dont-deploy in src/macosx.lisp, the same way tree-sitter already is.

Testing

Ran the nightly workflow (workflow_dispatch, force: true) on my fork:

Locally (macOS arm64), loading lem confirms the three libraries are marked dont-deploy. The built apps were not launched.

Nightly builds have failed every night since at least 2026-10-23.

Linux (AppImage): Ubuntu 22.04 ships libvterm 0.1.x, whose
VTermScreenCellAttrs has no conceal/small/baseline fields, so
`make terminal-lib` fails to compile terminal.c. Build libvterm 0.3.3
from source (with -fPIC, since it is linked statically into
terminal.so) while keeping the 22.04 glibc baseline.

macOS: Homebrew's unversioned `openssl` alias now resolves to
OpenSSL 4, which removed ASN1_STRING_data. cl+ssl loads
opt/openssl/lib/libssl.dylib and aborts `qlot install` with
"The alien function ASN1_STRING_data is undefined". Install
openssl@3 and point the alias back at it.
macOS: lem-darwin's CoreFoundation framework, cl-objc's libobjc and
cffi's libffi are OS-provided and live only in the dyld shared cache,
so deploy cannot copy them. Mark them dont-deploy so the app loads
them from the system at boot.

Linux: cl-charms now lists the unversioned libncursesw.so first. On
Debian/Ubuntu that is an "INPUT(...)" ld script, which deploy does not
follow, so it has no path for libcurses and aborts. Point deploy at the
real shared object CFFI opened.
tree-sitter main is now 0.28, but tree-sitter-cl's prebuilt
libts-wrapper.so links against libtree-sitter.so.0.27, so linuxdeploy
fails with "Could not find dependency: libtree-sitter.so.0.27".
0.27 is now released; build that tag instead of main.
@theangelperalta
theangelperalta merged commit da31ecd into lem-project:main Nov 17, 2026
9 of 10 checks passed
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