Backport verdict: Needs clarification
Fidelity could not be established from the available evidence.
Evidence:
- Commit coverage: bitcoin/bitcoin#35765 has one commit (01491f22b2) → backported as 76b0e368ce. bitcoin/bitcoin#36709 has one commit (d7a8360f4e) → baf46aa6c1. bitcoin/bitcoin#36982 has one commit (4e1dc2e015) → 8815bc6465. No source commit is missing and none was already in the base.
- 8815bc6465 (#36982): before and after the change,
test/functional/combine_logs.pyhas the same content as upstream (blob c4e4673228 → 189869641a). At the head, line 88 setschain = debug_logs[0].parent.relative_to(pathlib.Path(tmp_dir) / 'node0').pathlibis already imported (line 17), andreis still used for TIMESTAMP_PATTERN. For a mainnet log,chainbecomes '.', so line 95 buildsnode0/./debug.log, which resolves correctly. For regtest it still givesregtest. - 76b0e368ce (#35765):
depends/Makefile(b55ac440b4 → fb20307209),depends/funcs.mk(11b6337dc1 → 238eaf5c23) anddepends/packages.md(105fd90bab → 55500a5f1a) all have the same content as upstream before and after. At the head,funcs.mkline 107 sends local packages to$(base_local_source_dir), and line 117 puts the fetched stamp under the same directory.Makefileline 69 definesbase_local_source_dir=$(WORK_PATH)/local-sources, andcheck_or_remove_sources(Makefile lines 246-251) already uses$(package)_source_dir.native_libmultiprocessis still the only package that useslocal_dir, and the headfuncs.mkmatches the upstream post-commit file. - baf46aa6c1 (#36709): this change was adapted for 32.x. There,
building-onlives inmanifest_build.scm(notoolchains.scmmodule, nominimal?gcc variant), and the base had three uses of it:mingw-w64-base-gcc,linux-base-gccandglibc-2.31. All three now call(building-on); see head lines 177, 201 and 242. A search shows no other use ofbuilding-onor%current-systemin 32.x guix files, andmanifest_gui.scmdefines no toolchains. - Guix glibc use: in the base, the preceding line
"--disable-werror",ends with a comma, which unquotesbuilding-oninside the quasiquote (base lines 241-242). The head's(building-on)keeps that unquote, so the call runs on the host side when the package arguments are evaluated. This matches upstream toolchains.scm line 280. - The 8815bc6465 and 76b0e368ce range-diffs differ from upstream only by the added Github-Pull/Rebased-From trailers. The baf46aa6c1 range-diff also changes the file path and diff context for 32.x, and its commit message now names
manifest_build.scminstead oftoolchains.scm, which is correct for this branch. - Release notes (f88da4789c): the PR titles for #36709 (Guix), #35765 (Build) and #36982 (Test) are added. The added credits (Jorge Espada, Lőrinc, Ryan Ofsky) match the authors of these backports.
- The extra note '#36927 build: remove dev errors from dev-mode' and the 'fanquake' credit belong to no declared backport. Upstream
CMakePresets.jsonstill has"errors": {"dev": true}in the dev-mode preset (line 66 at bb5296576e, line 64 at 4e1dc2e015), but the 32.x base preset (lines 62-87) does not. This suggests #36927 was a 32.x-only change already merged before this base, and these lines just catch the release notes up.
Limitations:
- No builds, Guix derivation comparisons or functional tests were run or provided. Correctness is based on reading the source only.
- I could not match #36927 to a specific commit in the base history. The only evidence that it is already on 32.x is that the base dev-mode preset lacks the
errorskey upstream still has. The same applies to fanquake's new credit line. - One cosmetic nit, not a defect: 'Lőrinc' is listed after 'marcofleon', so the credits list is not strictly alphabetical when case is ignored.
- The PR title is still marked WIP. This assessment covers the pinned head f88da4789c only.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
The upstream relocation explicitly distinguishes reusable downloaded inputs from checkout-generated snapshots: downloaded archives remain shareable through SOURCES_PATH, while local archives and their checksum stamps belong with the checkout in WORK_PATH. Existing timestamp-based invalidation is intentionally unchanged.
At the pinned base, both local archives and fetched stamps use SOURCES_PATH. The head selects WORK_PATH/local-sources for local packages and derives the fetched-stamp location from the same source directory. This implements the stated cache boundary without changing downloaded-source sharing.
Guix's normalized checkout location makes absolute source paths unsuitable as the isolation boundary: the upstream proposal states that each checkout appears at /bitcoin inside its build container, so path-distinguished archives in a shared SOURCES_PATH would still collide there.
WORK_PATH provides isolation through checkout-associated storage rather than through a globally unique pathname. The pinned Guix script downloads sources before entering its network-isolated build environment, making the distinction between shared downloaded inputs and generated local snapshots pertinent to this workflow.
The historical cache-invalidation report separates checksum correctness from source-selection correctness. A fetched stamp can correctly hash an archive, and that checksum can correctly affect the build ID, while the archive still represents another checkout. Its stated requirements include coexistence of different trees and equal checksums for identical trees regardless of worktree location.
This explains why archives and fetched stamps must be considered together: a valid stamp is evidence about the selected archive, not independent evidence that it represents the current local directory. The relocation addresses checkout separation; the upstream proposal does not claim to replace timestamp invalidation with complete content-change detection.
Ralph's inferences
The retained implementation trades repeated archive generation and hashing for timestamp-based reuse. It regenerates when the archive is absent or a local path is newer, removes the fetched stamp when regenerating, and refreshes that stamp when absent or older than the archive. It normalizes source mtimes and sorts archive entries before creating the tarball.
These mechanics explain the compatibility constraint: reuse assumes that the cached snapshot already belongs to the same source context, and timestamp ordering signals later changes. Normalized mtimes cannot establish ownership of an archive obtained from another checkout. The relocation leaves this reuse mechanism intact.
WORK_PATH preserves the documented reuse model under its default checkout-local configuration: repeated builds can reuse one checkout's archive and stamp, while separate checkouts need not share those generated files. This is a storage-isolation guarantee, not a new content-identity or timestamp-invalidation guarantee.
The pinned head defines WORK_PATH as the checkout's depends/work directory and places local archives and stamps beneath it. Thus the same /bitcoin spelling in separate Guix containers need not imply shared local-cache storage. This conclusion is conditional on retaining checkout-local work storage; it does not establish isolation for deliberately shared WORK_PATH configurations or broaden the unchanged mtime contract.