@devries-cameron20 / t3code Mirror · read-only / commits / 786cf6a736
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 08:30 UTC

fix(release): weak glibc version needs no longer raise the .deb libc6 floor (#38061)

Julius Marminge committed Nov 17, 2026 at 02:38 UTC 786cf6a7368f7d3ab577b5a8253604b7d74b83ef
2 files changed +13 -1
scripts/linux-glibc.test.ts
+11
@@ -40,6 +40,17 @@ Version definition section '.gnu.version_d' contains 1 entry:
40 ).toBeUndefined();
41 });
42
43 +// Rust std links pidfd_spawnp@GLIBC_2.39 weakly; the loader only warns when a weak version is missing.
44 +it("does not count weak requirements", () => {
45 + expect(
46 + parseGlibcNeeds(`Version needs section '.gnu.version_r' contains 1 entry:
47 + 0x0010: Version: 1 File: libc.so.6 Cnt: 2
48 + 0x0150: Name: GLIBC_2.34 Flags: none Version: 2
49 + 0x0160: Name: GLIBC_2.39 Flags: WEAK Version: 10
50 +`),
51 + ).toBe("2.34");
52 +});
53 +
54 it.each(["GLIBC_PRIVATE", "GLIBC_ABI_UNKNOWN"])("rejects unhandled requirement %s", (name) => {
55 expect(() =>
56 parseGlibcNeeds(`Version needs section '.gnu.version_r' contains 1 entry:
scripts/linux-glibc.ts
+2 -1
@@ -25,7 +25,8 @@ export function parseGlibcNeeds(output: string): string | undefined {
25 if (line.startsWith("Version ")) inNeeds = line.startsWith("Version needs section ");
26 if (!inNeeds) continue;
27 const name = /\bName:\s+(GLIBC_\S+)/.exec(line)?.[1];
28 - if (!name) continue;
28 + // The loader only warns when a WEAK version is missing, so it does not raise the floor.
29 + if (!name || /\bFlags:[^:]*\bWEAK\b/.test(line)) continue;
30 // DT_RELR's named ABI requirement was introduced in glibc 2.36.
31 const version =
32 name === "GLIBC_ABI_DT_RELR" ? "2.36" : /^GLIBC_(\d+(?:\.\d+)+)$/.exec(name)?.[1];