Repository navigation
cycle breakers: declare the runtime deps their prebuilt binaries need - #1693
Draft
bryan-minimal wants to merge 1 commit into
Draft
bryan-minimal wants to merge 1 commit into
bryan-minimal wants to merge 1 commit into
Conversation
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>
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Eight
replace_on_cyclespecs 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.runtime_depssed (prebuilt)acl,attr(were commented out)sedcoreutils (prebuilt)attrcp,install,mvfile (prebuilt)bzip2,xz,zlib,zstdfile,libmagiczstd (prebuilt)lz4,xz,zlibzstdpcre2 (prebuilt)bzip2,zlibpcre2grepgawk-bootstrap (prebuilt)gmp,mpfrgawk, two extensionsmpc (prebuilt)gmp,mpfrlibmpcmpfr (prebuilt)gmplibmpfrWhy
The lists come from the
DT_NEEDEDentries 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,attrand the rest, so a spec's ownruntime_depsare not what supplies these libraries. The registry proposal (gominimal/arch#183, D-29) takes a package of the cycle as itsreplace_on_cyclespec 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 nolibattr.so.1forsed,cp,installandmv.What was checked, and what was not
gcc-16); the only new edges are 17 insidereplace_on_cyclespecs.gcc_runtime_guard.pypasses on the tree.sedspec carried the note "runtime_deps in a cycle breaker are borked?" since the first commit.coreutils (prebuilt)andgcc (prebuilt)already listruntime_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): itslibgmpxxneedslibstdc++. Ongcc-16that is thegmpxxpackage's, and gmp must stay out of gcc-runtime's reach (gcc_runtime_guard.py, rule 4).🤖 Generated with Claude Code