mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Every musl AppImage of v12.51 died at once in Alpine: "Error relocating .../bundle/node: _ZTVN10__cxxabiv117__class_type_infoE: symbol not found". The musl Node.js is linked against GCC's C++ runtime, which musl.yml's own Alpine had installed for building, and a user's Alpine does not. The bundle's node-runtime now holds that Alpine's libstdc++.so.6 and libgcc_s.so.1 with a license notice, start-wekan.sh puts it on the library path as for libatomic, and the AppImage workflow requires both files of a musl bundle. Thanks to xet7 !
2.1 KiB
2.1 KiB
WeKan on Alpine and other musl systems
Alpine Linux, and every other Linux built on musl instead of glibc, cannot run the ordinary Linux bundle: its Node.js and native addons are built for glibc. Every release therefore also has, for x64 and arm64:
| Asset | What it is |
|---|---|
wekan-<version>-linux-x64-musl.zip, wekan-<version>-linux-arm64-musl.zip |
the Linux bundle rebuilt for musl, with FerretDB - start it with bundle/start-wekan.sh, like the ordinary bundle |
WeKan-<version>-x86_64-musl.AppImage, WeKan-<version>-aarch64-musl.AppImage |
the same as an AppImage |
wekan-<version>-bun-linux-x64-musl-single-file, ...-arm64-musl-... |
one executable on Bun; bring your own MongoDB-compatible database (Single file) |
wekan-<version>-bun-linux-x64-musl.zip, ...-arm64-musl.zip |
the Bun bundle (Bun) |
On Alpine, an AppImage needs FUSE (apk add fuse), or runs without it with
APPIMAGE_EXTRACT_AND_RUN=1 ./WeKan-<version>-x86_64-musl.AppImage.
How the musl bundle is made
.github/workflows/musl.yml takes the release's own Linux bundle of that CPU
and, inside Alpine on a runner of the same CPU
(releases/musl/build-bundle.sh):
- puts in the musl Node.js of exactly the bundle's version, checked against
its published SHA256, and removes the glibc libraries of
node-runtime; - puts GCC's C++ runtime (
libstdc++.so.6,libgcc_s.so.1, with its license notice) from that Alpine intonode-runtimeinstead: the musl Node.js is linked against it, and an Alpine withoutapk add libstdc++does not have it.start-wekan.shputsnode-runtimeon the library path; - reinstalls the server's npm packages, so every native addon is compiled against musl and sharp's musl package is the one installed;
- checks every native addon's architecture and that sharp loads;
- starts the bundle as a user starts it and requires HTTP 200 before it is published.
FerretDB and the MongoDB Database Tools are static Go programs and are the
same as in the ordinary bundle. tests/muslBundles.test.cjs checks the build,
the workflow and the AppImage variants.