Skip to content

Commit 70aae9f

Browse files
Kevin Arthurclaude
andcommitted
docs(release): the Linux glibc baseline was wrong — measured and corrected
Podman made it possible to test the claim this audit had only been asserting. Installing the built .deb into a clean ubuntu:22.04 container gives: glibc available on Ubuntu 22.04 : 2.35 glibc required by the binary : GLIBC_2.39 /usr/bin/strata-desktop: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /usr/bin/strata-desktop) Two corrections fall out of that, and both matter: 1. The floor is 2.39, not 2.44. A binary inherits the highest glibc symbol version it actually references, not the build host's full version. The previous text implied the latter, which overstated the problem. 2. Moving the build to `ubuntu-latest` — which is what these documents told the reader to do — would NOT have fixed it. That runner is Ubuntu 24.04, glibc 2.39: the identical floor. Every Linux artifact release.yml produced would have excluded Ubuntu 22.04 LTS, Debian 12 and Fedora 38 while the platform matrix advertised 22.04 support. The Linux bundle job is now pinned to the `ubuntu-22.04` runner, which sets the floor at 2.35. The rest of the package is sound: the .deb installs on 22.04 with every declared dependency resolving from Ubuntu's own repositories, icons land correctly, and uninstall is clean. The `depends` list in tauri.conf.json is right — only the glibc floor was wrong. Recorded as RB-8, with the scorecard rows for RB-7 (React mount) and RB-8 updated. Note: the ubuntu-22.04 runner change, the podman/docker auto-detection, and the verify-package-install.sh bug fixes were written for this but landed inside 70e8458 (the identifier rename), which picked up uncommitted work from the shared tree. Recording that here so the history is followable. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 70e8458 commit 70aae9f

3 files changed

Lines changed: 73 additions & 10 deletions

File tree

‎docs/release/platform-support-matrix.md‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,13 @@ cannot reproduce. Revisit when there is hardware.
6363
### Compatibility risks that a CachyOS build does not prove
6464

6565
CachyOS ships glibc 2.44 and WebKitGTK 2.52.5 — both far newer than the compatibility baseline.
66-
A binary linked against glibc 2.44 **will not run** on Ubuntu 22.04 (glibc 2.35). This is why
67-
release artifacts must be built on `ubuntu-latest` in CI, never shipped from this workstation.
66+
**Measured, not assumed:** a locally-built `.deb` installed into `ubuntu:22.04` reports
67+
`version 'GLIBC_2.39' not found` and refuses to exec (`just verify-packages`).
68+
69+
The floor is whatever the linker actually referenced — 2.39 here, not the host's 2.44. That
70+
still excludes Ubuntu 22.04 (2.35), Debian 12 (2.36) and Fedora 38 (2.37), and it is why
71+
release artifacts are built on the **`ubuntu-22.04`** runner rather than `ubuntu-latest`
72+
(which is 24.04 / glibc 2.39 and would reproduce the same exclusion).
6873

6974
Untested and needing a VM pass before Tier 2 is claimed:
7075

‎docs/release/production-build.md‎

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,40 @@ usually because it needs hardware we do not have).
1010

1111
---
1212

13-
## 0. The one thing to know first
13+
## 0. The one thing to know first — MEASURED
1414

15-
**Do not ship a Linux package built on this machine.**
15+
**Do not ship a Linux package built on this machine.** This is no longer an
16+
assumption; it was tested.
1617

17-
CachyOS has glibc 2.44. A binary linked against it will not start on the Ubuntu
18-
22.04 compatibility baseline (glibc 2.35), and the AppImage bundler copies *this
19-
host's* system libraries into the bundle. Local packages are for smoke-testing
20-
only; release artifacts come from `ubuntu-latest` in `.github/workflows/release.yml`.
18+
Installing the locally-built `.deb` into a clean `ubuntu:22.04` container
19+
(`just verify-packages`) gives:
20+
21+
```
22+
glibc available on Ubuntu 22.04 : 2.35
23+
glibc required by the binary : GLIBC_2.39
24+
25+
/usr/bin/strata-desktop: /lib/x86_64-linux-gnu/libc.so.6:
26+
version `GLIBC_2.39' not found (required by /usr/bin/strata-desktop)
27+
```
28+
29+
The binary refuses to exec. Note the floor is **2.39, not 2.44** — a binary
30+
inherits the highest glibc symbol version it actually references, not the
31+
host's full version.
32+
33+
**This also changed the CI runner.** `ubuntu-latest` is Ubuntu 24.04, which is
34+
glibc 2.39 — building there produces exactly the same floor and silently
35+
excludes Ubuntu 22.04 LTS, Debian 12 and Fedora 38, while the docs claimed 22.04
36+
support. `release.yml` now builds Linux artifacts on **`ubuntu-22.04`**, which
37+
sets the floor at 2.35.
38+
39+
| Distro | glibc | Built on CachyOS / ubuntu-latest | Built on ubuntu-22.04 |
40+
|---|---|---|---|
41+
| Ubuntu 22.04 LTS | 2.35 | ✗ | ✓ |
42+
| Debian 12 | 2.36 | ✗ | ✓ |
43+
| Fedora 38 | 2.37 | ✗ | ✓ |
44+
| Ubuntu 24.04 LTS | 2.39 | ✓ | ✓ |
45+
46+
Local packages are for smoke-testing only.
2147

2248
---
2349

@@ -186,7 +212,8 @@ node scripts/release/collect-artifacts.mjs \
186212
node scripts/release/verify-artifacts.mjs --dir dist/release --expect-version 0.1.0
187213
```
188214

189-
Artifacts are renamed to `Strata-<version>-<os>-<arch>.<ext>`, hashed, and
215+
Artifacts are renamed to `<Product>-<version>-<os>-<arch>.<ext>` (the product name
216+
is read from `tauri.conf.json`, so it follows a rename), hashed, and
190217
described in `dist/release/release-manifest.json` + `SHA256SUMS.txt`.
191218

192219
Independent check (this is what a user runs):

‎docs/release/release-readiness-audit.md‎

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,36 @@ renders. `StartupLoader` takes over once React mounts.
206206
The mount failure itself is tracked separately — the splash was hiding it, not
207207
causing it.
208208

209+
### RB-8 — The documented Linux baseline was unachievable `HIGH` — FIXED
210+
211+
Measured with `just verify-packages`, which installs the built `.deb` into a
212+
clean `ubuntu:22.04` container:
213+
214+
```
215+
glibc available on Ubuntu 22.04 : 2.35
216+
glibc required by the binary : GLIBC_2.39
217+
/usr/bin/strata-desktop: /lib/x86_64-linux-gnu/libc.so.6:
218+
version `GLIBC_2.39' not found (required by /usr/bin/strata-desktop)
219+
```
220+
221+
Two things came out of this that the earlier, assumption-based version of this
222+
audit got wrong:
223+
224+
1. **The floor is 2.39, not 2.44.** A binary inherits the highest glibc symbol
225+
version it actually references, not the build host's full version. The
226+
original text implied the latter.
227+
2. **`ubuntu-latest` would not have fixed it.** That runner is Ubuntu 24.04,
228+
which is glibc 2.39 — the identical floor. Every Linux artifact `release.yml`
229+
produced would have excluded Ubuntu 22.04 LTS, Debian 12 and Fedora 38 while
230+
the platform matrix advertised 22.04 support.
231+
232+
**Fixed** by pinning the Linux bundle job to the `ubuntu-22.04` runner, which
233+
sets the floor at glibc 2.35.
234+
235+
The `.deb` itself installs cleanly on 22.04 with every declared dependency
236+
resolving from Ubuntu's own repositories, and uninstalls cleanly — so the
237+
`depends` list in `tauri.conf.json` is correct. Only the glibc floor was wrong.
238+
209239
### RB-4 — No checksums, no release manifest, no SBOM `HIGH`
210240

211241
`publish.yml` uploads bundles straight to a draft release. There is no SHA-256 generation, no
@@ -479,7 +509,8 @@ Blocks: earliest release tier the item prevents.
479509
| RB-4 | Integrity | **Fixed** | No checksum/SBOM/manifest step in `publish.yml` | H | Users cannot verify an unsigned download — the one mitigation that costs nothing | Generate + verify SHA-256, manifest, SBOM | Alpha |
480510
| RB-5 | Model downloads | **Fixed** | CSP vs CDN redirect targets | C | 14 of 18 optional models undownloadable; 8+ AI features dead | Allow redirect hosts in CSP | Alpha |
481511
| RB-6 | Startup | **Fixed** | `main` hidden until frontend signalled | C | App unusable — stuck on splash forever with no error | Splash removed; boot errors rendered on screen | Alpha |
482-
| RB-7 | React mount | **OPEN** | Watchdog proves no JS mount in packaged WebView | C | App never reaches its UI when packaged | Under diagnosis with a devtools build | Alpha |
512+
| RB-7 | React mount | **Fixed** | Static import of eval-using wawoff2 in the entry chunk | C | App never reached its UI when packaged | Dynamic import; entry chunk now eval-free | Alpha |
513+
| RB-8 | Linux glibc baseline | **Fixed** | Measured: binary needs GLIBC_2.39, Ubuntu 22.04 has 2.35 | H | Advertised 22.04 support no artifact could deliver | Build Linux artifacts on the `ubuntu-22.04` runner | Alpha |
483514
| H-1 | Website config | **Broken** | `astro.config.mjs:7`; `Layout.astro:40` | H | Site 404s its own assets on Pages; pays for analytics pre-launch | Env-driven `site`/`base`; opt-in analytics | Beta |
484515
| H-2 | Download page | **Stale** | `download.astro` never reads `releases.json` | H | Advertises unbuilt platforms and a non-existent AUR package | Consume generated manifest | Beta |
485516
| H-3 | macOS universal | **Partial** | `fetch-onnxruntime.mjs` `PLATFORMS`; `publish.yml:104` | H | Intel Macs lose native AI silently | Document; or ship per-arch DMGs | Beta |

0 commit comments

Comments
 (0)