From 50f4b27b038ac3ed7da539c10f4f0d919b2e801a Mon Sep 17 00:00:00 2001 From: DenizSAHIN570 Date: Mon, 14 Sep 2026 22:39:38 +0300 Subject: [PATCH] linux: work around linuxdeploy strip failure on newer toolchains AppImage bundling fails on Fedora/Arch-family distros: linuxdeploy's bundled strip binary doesn't understand the .relr.dyn ELF section that a newer glibc/binutils emits, and errors on every system library it tries to strip. NO_STRIP=true skips that step. Applied it in the release workflow and documented it for building from source. --- .github/workflows/release.yml | 6 ++++++ README.md | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0e68b64..3643f0b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,7 +59,13 @@ jobs: - run: pnpm install --frozen-lockfile - name: Build Tauri bundles + # linuxdeploy's bundled `strip` predates glibc's .relr.dyn relocation + # section and fails on every system library once the toolchain + # emits it (Fedora/Arch already do; ubuntu-22.04 doesn't yet). No-op + # on macOS/Windows. run: pnpm --filter @jdf/reader tauri build --target ${{ matrix.target }} + env: + NO_STRIP: true - name: Upload bundles uses: actions/upload-artifact@v4 diff --git a/README.md b/README.md index c7be654..44d5be2 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,16 @@ pnpm tauri build # produces .app + .dmg in apps/reader/src-tauri/target/rel Requires Node 20+, pnpm 9+, Rust stable, Xcode CLT (macOS). +On Linux, the `.deb`/`.rpm` bundle fine as-is, but on distros with a newer +toolchain (Fedora, Arch, …) the AppImage step can fail — linuxdeploy's +bundled `strip` predates glibc's `.relr.dyn` relocation section and chokes +on every system library (`unknown type [0x13] section '.relr.dyn'`). Skip +stripping to work around it: + +```bash +NO_STRIP=true pnpm tauri build --bundles appimage +``` + ## Open & edit **Open**: drag any `.jdf`, `.jdfx`, `.pdf`, or `.md` onto the welcome screen, double-click in Finder (file associations are registered for both `.jdf` and `.jdfx`), or `Cmd+O`.