8000 cycle breakers: declare the runtime deps their prebuilt binaries need by bryan-minimal · Pull Request #1693 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content

cycle breakers: declare the runtime deps their prebuilt binaries need - #1693

Draft
bryan-minimal wants to merge 1 commit into
gcc-16from
prebuilt-runtime-deps
Draft

bryan-minimal wants to merge 1 commit into
gcc-16from
prebuilt-runtime-deps

Conversation

@bryan-minimal
Copy link
Copy Markdown
Member

What

Eight replace_on_cycle specs now list the runtime dependencies their prebuilt binaries need. Stacked on #1545 (gcc-16), because it gives almost every package a new hash and #1545 already does.

spec adds to runtime_deps which binaries need it
sed (prebuilt) acl, attr (were commented out) sed
coreutils (prebuilt) attr cp, install, mv
file (prebuilt) bzip2, xz, zlib, zstd file, libmagic
zstd (prebuilt) lz4, xz, zlib zstd
pcre2 (prebuilt) bzip2, zlib pcre2grep
gawk-bootstrap (prebuilt) gmp, mpfr gawk, two extensions
mpc (prebuilt) gmp, mpfr libmpc
mpfr (prebuilt) gmp libmpfr

Why

The lists come from the DT_NEEDED entries of the gen-13 objects, read on both targets; they are the same on amd64 and arm64.

Nothing depends on this today. The planner gives a first build the just-built acl, attr and the rest, so a spec's own runtime_deps are not what supplies these libraries. The registry proposal (gominimal/arch#183, D-29) takes a package of the cycle as its replace_on_cycle spec in a first build. Then a spec that does not list what its binaries need leaves the box without it: in a model of that rule, 25 of the 36 first builds that change would have no libattr.so.1 for sed, cp, install and mv.

What was checked, and what was not

  • The cycle is unchanged by this commit (41 members, 29 with a spec on gcc-16); the only new edges are 17 inside replace_on_cycle specs.
  • In our model of today's planner, the plan completes from every member of the cycle as root, as before. The proposal's rule keeps its 9 rounds.
  • gcc_runtime_guard.py passes on the tree.
  • Not built. The sed spec carried the note "runtime_deps in a cycle breaker are borked?" since the first commit. coreutils (prebuilt) and gcc (prebuilt) already list runtime_deps, so the form works; whether these particular edges build is what CI on this pull request shows.

Not changed

  • glibc: 25 of the 29 specs need it and none of the 16 that need only it lists it. Every box holds it. It can follow if we want the lists complete.
  • gmp (prebuilt): its libgmpxx needs libstdc++. On gcc-16 that is the gmpxx package's, and gmp must stay out of gcc-runtime's reach (gcc_runtime_guard.py, rule 4).

🤖 Generated with Claude Code

Eight replace_on_cycle specs ship binaries that need a library from another
package of the cycle and did not list it. Read from the DT_NEEDED entries of
the gen-13 objects, the same on amd64 and arm64:

  sed             acl, attr (were commented out)
  coreutils       attr (cp, install, mv)
  file            bzip2, xz, zlib, zstd
  zstd            lz4, xz, zlib
  pcre2           bzip2, zlib (pcre2grep)
  gawk-bootstrap  gmp, mpfr
  mpc             gmp, mpfr
  mpfr            gmp

Nothing depends on this today: the planner gives a first build the just-built
acl, attr and the rest. The registry proposal (gominimal/arch#183, D-29) takes
a package of the cycle as its replace_on_cycle spec in a first build, and then
a spec that does not list what its binaries need leaves the box without it.

Not changed: glibc, which 25 of the 29 specs need and every box holds; and
gmp, whose libgmpxx needs libstdc++, which is the gmpxx package's business.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai
coderabbitai Bot commented Nov 25, 2026
Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

0