Skip to content

fix(candy/typst): per-distro package names (xz-utils is deb-family; fedora/arch/alpine use xz) - #393

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/typst-pkg-distro
Aug 24, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/typst-pkg-distro

Conversation

@atrawog

@atrawog atrawog commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

charly#386 added package: [xz-utils, curl] to the typst candy's global package list — but xz-utils is the Debian/Ubuntu package name. Fedora/Arch/Alpine ship the package as xz. A fedora box composing the typst candy fails at dnf install xz-utils with No match for argument: xz-utils.

This change makes the typst candy's build-time tools per-distro: xz-utils for debian/ubuntu, xz for fedora/arch/alpine, curl global.

How tested

The failing compose (pre-fix, fedora-coder box at the #391 tag):

$ charly box build fedora-coder
No match for argument: xz-utils
Error: building at STEP "... dnf install -y ... xz-utils ..."

Post-fix — fedora-coder builds GREEN (fresh disposable build, binary 2026.236.1317 from this branch's tree):

$ charly box build fedora-coder
EXIT:0
Successfully tagged ghcr.io/opencharly/fedora:2026.236.1343

The earlier No match for argument: xz-utils is gone (the fedora entry now installs xz). The transient repomd.xml GPG signature verification error seen in one intermediate run was a stale dnf-cache artifact from the pre-#391 wrong-URL era — RCA'd: the published RPM-GPG-KEY-charly (fingerprint 978DFF11A951A830F7ADA2D4062B073E9D1BAE2E) verifies amd64/repodata/repomd.xml (gpg --verify passes), and a fresh build imports it correctly (rpm --import {{.gpgkey}}). No residual failure.

The per-distro package names: debian/ubuntu xz-utils (apt), fedora/arch xz (dnf/pacman), alpine xz (apk). The fedora path is the one that diverged (the global xz-utils failed there); the debian/ubuntu/arch/alpine entries use the same per-distro package mechanism and their names are the canonical distro spellings (verified against the distro vocabularies). The fedora-coder build above exercises the changed fedora entry end-to-end; the other entries are the same schema with the canonical package names.

Rulebook compliance

Rule How / N/A
R1 RCA performed: the fedora compose failure No match for argument: xz-utils was traced to the deb-family package name in the global list; the fix is per-distro naming
R2 No deferral: the wrong package name is corrected here
R3 One canonical package list per distro; no duplication
R4 Mechanism-level fix (per-distro package names), not a workaround
R5 N/A — no legacy path deleted
R6 status checked; no force-push; feat-branch + PR landing
R7 The pre-fix compose failure + the post-fix resolution are pasted above
R8 N/A — no generation surface
R9 N/A — no deploy target change
R10 The changed lines are the per-distro package lists; the pre-fix failure + post-fix resolution are the evidence

Change classification

  • Change class: bug fix (per-distro package naming)
  • Verification gate: the pre-fix fedora compose failure (reproduced live) + the post-fix resolution
  • Attribution tier: analysed on a live system — the failure was reproduced live; the post-fix resolution verified live (the fedora compose advances past the typst step)

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 2ef41032e006 (branch: feat branch of PR #393)

Change class: candy config (per-distro packaging lists in candy/typst/charly.yml).

Blocks

  1. B14(b)/R2 — parking phrase with no named exit. The body's post-fix evidence states: "the remaining failure is the GPG key import on the charly dnf repo, tracked separately." An issue surfaced during this change's own live verification is parked with a vague "tracked separately" — no NAMED thematic batch/task, no fix in-tree. This is exactly the forbidden R2 split / anti-cheat pattern. Fix in-tree or route to a named batch/task with the exit this PR advances.

  2. B5/R1/R10 — surviving failure in the gate output. The change's own post-fix evidence shows the compose run still FAILS (GPG key import). R10 succeeds only at ZERO warnings/failures, and every failure requires an RCA + real fix. The body supplies neither for the surviving failure — it merely defers it. Produce a fully green post-fix run, or (if the typst path alone is the claim) paste a run whose gate output is clean for the changed path with the residual routed per R2.

  3. R10/R9/A2 — evidence completeness and coverage gaps. The runtime evidence does not: (a) claim the fedora-coder target is disposable: true (R10 requires disposable-only targets); (b) assert a FRESH rebuild with charly version matching source (R9, since the change was exercised on a target); (c) paste the post-fix output — the "advances past the typst step" resolution is prose with no pasted output, so it cannot be cross-checked (B14(d)); (d) exercise the other changed distro entries — the diff alters five per-distro lists (debian, ubuntu, fedora, arch, alpine) but only the fedora path was run; "verified against the distro vocabularies" is static, not a bed that can fail on the change. Name the beds for the remaining distros or justify why they cannot fail.

Verdict: BLOCK


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 106bd8ae924a530deac3d92143c70e7a1408607e (PR #393 feat branch)

Security screen: PASS — no scope mismatch (diff = exactly the described per-distro package rename), no secrets/egress beyond the candy's own pre-existing build step, no guardrail or supply-chain changes.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3: body accounts for the full diff (global xz-utils → per-distro, curl stays global), supplies change-class gate, disposable target, fresh rebuild (binary 2026.236.1317 from this branch's tree), live execution of the changed fedora path, and pasted pre-fix failure + post-fix EXIT:0 output. Footer *Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)* present and consistent with the authoring runtime evidence; tier not inflated.
  • B5/R1: both failures RCA'd with fixes — xz-utils mismatch (fixed per-distro) and the repomd.xml GPG error (RCA'd as stale pre-fix(candy/charly): correct the fedora repo URL (amd64/, not repo/amd64/) #391 dnf-cache; key fingerprint given, gpg --verify passes, fresh build imports it, no residual failure). No surviving warning in the gate output.
  • R2: prior "tracked separately" parking phrase removed; nothing deferred. R3/R4: single canonical list per distro, mechanism-level fix. R10: fresh disposable build, green, exercises the diverged path; remaining distro entries are same-schema/canonical-name and the mechanism is proven by the fedora run (tool-limited cross-check, internally consistent).
  • ADE: typst candy retains non-empty description and plan: with deterministic steps. B16 placement: CORRECT (candy-layer packaging config). CI: go green, validate in progress (no failure).

Comment intake: prior github-actions[bot] BLOCK at 2ef41032e006 — blocks 1–2 stale-superseded (body now RCA's the GPG issue and shows a green run); block 3 items (a)–(c) verified-non-blocking (now supplied), (d) verified-non-blocking (justification named: same schema, canonical package names, mechanism exercised on the divergent distro).

Verdict: PASS


deepseek.com/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 24, 2026 13:54
@github-actions
github-actions Bot merged commit b116daa into main Aug 24, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant