justinbarclay / parinfer-rust-emacs

An emacs centric fork of parinfer-rust
ISC License
9 stars 3 forks source link

Glibc is too new for Emacs snap #14

Open msberk opened 5 months ago

msberk commented 5 months ago

The release artifacts generated using the latest Ubuntu image directly require glibc 2.33 which is newer than the glibc in the Emacs 29.3 snap that is based on core2020 which has glibc_2.32.

See snippet of error below when parinfer-mode is turned on: 'GLIBC_2.33' not found (required by /home/redacted/.config/emacs/.local/etc/parinfer-rust/parinfer-rust-linux.so))

I tried a quick fix (replace ubuntu-latest in your Github Actions with ubuntu-20.04 and rebuilt locally with act) and replaced the library on my machine and it worked in the snap. The "better" fix is probably to set up Github Actions to build in manylinux2014 or similar so that the glibc linkages are as old as possible for Rust (2.17). Unfortunately I'm pretty uneducated in Github Actions so don't know the best way to accomplish that, and switching to 20.04 solved my immediate issue.

Thanks for your work on this extension! I'm a huge fan of parinfer

fapdash commented 2 months ago

I took a stab at this in https://github.com/fapdash/parinfer-rust-emacs/tree/manylinux2014 / https://github.com/fapdash/parinfer-rust-emacs/commit/42e12cad97e0b8971d4ef84335c79afe2893e947.

Currently it fails because of https://github.com/dtolnay/rust-toolchain/issues/122. We could install the rust-toolchain ourselves but I hope we don't have to.

I've built parinfer-rust-emacs inside of the manylinux2014 container on my local machine and it works with the Emacs snap version.