Backport verdict: Needs clarification
Fidelity could not be established from the available evidence.
Evidence:
- 72d6048d5f, backport of b9a6b0ca51 (#36869): src/memusage.h at the PR head (lines 68-182) is identical to the upstream file at b9a6b0ca. The
private:labels are gone from stl_tree_node, list_node and unordered_node, and stl_shared_counter is unchanged. The struct layout stays the same. - c4547c490f, backport of 460f877fac (#36889): the hunk matches upstream exactly. src/CMakeLists.txt lines 8-11 at the head have the same target_include_directories(core_interface INTERFACE ...) block as upstream at 460f877f. Only the base blob differs (ad18115bbc vs b3797b02b3), and that is surrounding context.
- Omitted 4ef05d6f45 ('cmake: Link
bitcoin_ipcagainstcore_interface'): it addstarget_link_libraries(bitcoin_ipc PRIVATE core_interface)inside anelse()branch that buildsipc/stub.cppwhen ENABLE_IPC is off. Neither exists on 31.x. At both base and head, src/CMakeLists.txt only hasif(ENABLE_IPC) add_subdirectory(ipc) endif(), no ipc/stub path is tracked, and the only bitcoin_ipc target (src/ipc/CMakeLists.txt) already links core_interface PRIVATE (line 21). Leaving it out is correct. - Include-path change on 31.x: the directory-wide include used to apply to every target created under src/. I checked each in-tree target there, and all now get the directories through core_interface: crc32c, leveldb, minisketch, univalue (and its test executables), the libmultiprocess targets (via $<BUILD_INTERFACE:core_interface>, same as upstream), bitcoin_crypto/util/common/node/consensus/clientversion/cli/zmq/wallet/ipc/ipc_test, bitcoinkernel, test_kernel, bitcoin-chainstate, and the daemon, CLI, tx, util, wallet, qt, test, bench and fuzz targets. The .rc resource files use the same target-source mechanism as upstream. secp256k1 never needed src/ includes.
- 1a385857e1, backport of 435d5b2277: identical to upstream. It removes
include(WarnAboutGlobalProperties)from the end of the root CMakeLists.txt (the head now ends at the configure_warningsendif(), line 698) and deletes cmake/module/WarnAboutGlobalProperties.cmake. Nothing in the tree still references the module or check_loose_linked_libraries. - The commit message for 1a385857 says the dev-mode preset enables the replacement warnings. On 31.x, the dev-mode preset in CMakePresets.json (lines 62-88) has
"errors": {"dev": true}, the same as upstream at 435d5b22. - The root CMakeLists.txt on 31.x has no directory-wide add_compile_options, add_definitions, add_link_options or link_libraries calls that the removed check would have caught. The ones that remain are in subtree CMakeLists files (secp256k1, minisketch, crc32c, leveldb), which upstream has too; the matching secp256k1 fix is tracked separately (bitcoin-core/secp256k1#1996).
- cc461e3eb1 (release notes; it has no upstream counterpart, which is expected for release prep): it resets doc/release-notes.md from v31.3 to v31.x and lists #36889 under Build, #36869 under Misc, and credits hebasto. The base already sets CLIENT_VERSION 31.3 with IS_RELEASE true, and the earlier commit 57f79f1b ('doc: update release notes for v31.3') rewrote the notes in the same way, so this follows the branch's established post-release reset.
- Upstream discussion on #36889 (comments 623369 and 623370) records that maintainers deliberately backported the PR to 32.x (#36727) and to 31.x (#36901).
Limitations:
- I did not run any configure, build or test. Whether 31.x builds with ENABLE_IPC on or off, on Windows/MinGW (rc includes) or with CMake 4.5 in dev-mode is inferred from reading the source, not observed.
- Removing WarnAboutGlobalProperties assumes CMake ≥4.5
-Wnon-target-directivediagnostics take over. I could not confirm that any 31.x CI job runs CMake ≥4.5. The macOS job installs Homebrew packages but not cmake explicitly, so if no job does, the branch loses its CI check for new root-directory global directives. I treat this as low risk on a release branch that maintainers backported to on purpose, not as a defect. - I did not check the exact CMake 4.5 diagnostic behavior or how the preset's dev-error setting interacts with warnings from subtrees.
- That v31.3 was actually tagged and released (which is what justifies resetting the notes to v31.x) is inferred from the version metadata and the commit history; I could not check tags directly.
- The #36869 PR body in the evidence packet was truncated; I relied on the commit message and the patch for that change.
- bitcoin/bitcoin#36869: truncated body
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
WarnAboutGlobalProperties was introduced as a sanity check supporting target-level encapsulation of common build flags, rather than as a general prohibition on every directory-scoped CMake operation.
The introducing commit explicitly couples the guard to core_interface, whose usage requirements carry common flags to project targets while allowing secp256k1 to obtain flags separately. The intended invariant behind the removed guard is controlled propagation of build settings through targets.
The upstream replacement decision relied on newer CMake diagnostics becoming available in CI, not on every supported developer environment acquiring them.
The upstream proposal identifies non-target-directive diagnostics as new in CMake 4.5. The discussion explicitly frames removal of the custom check around having at least one CI job run CMake 4.5 or newer, cites Homebrew availability, and then records the decision to drop the module. This supplies the historical enforcement assumption that matters when transplanting the removal to a release branch.