Backport verdict: Needs clarification
Fidelity could not be established from the available evidence.
Evidence:
- 2030dbcb6c vs b9a6b0ca51: the range-diff shows only the added
Github-Pull: #36869andRebased-Fromtrailers. At the PR head, src/memusage.h:68-76, 164-170 and 178-182 showstl_tree_node,list_nodeandunordered_nodewithoutprivate:, matching upstream. - 6c55420edb vs 460f877fac: identical hunk replacing
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})withtarget_include_directories(core_interface INTERFACE ...)(head src/CMakeLists.txt:8-11). - bf137ff02a vs 435d5b2277: the range-diff shows only a context difference. Base CMakeLists.txt has no
message(AUTHOR_WARNING "Warnings have been encountered!")line. Head CMakeLists.txt:704-710 ends cleanly. cmake/module/WarnAboutGlobalProperties.cmake is deleted, and no references toWarnAboutGlobalProperties,check_loose_linked_librariesordummy_cxx_sourceremain. - Omitted 4ef05d6f45 (#36889): upstream it adds
target_link_libraries(bitcoin_ipc PRIVATE core_interface)insideelse()/add_library(bitcoin_ipc STATIC EXCLUDE_FROM_ALL ipc/stub.cpp)(upstream parent src/CMakeLists.txt:63-68). On 30.x, base src/CMakeLists.txt:57-59 has onlyif(ENABLE_IPC) add_subdirectory(ipc) endif(), no trackedipc/stubfile exists, and src/ipc/CMakeLists.txt:19-23 already linksbitcoin_ipc PRIVATE core_interface. Leaving it out is correct. - Every first-party target on 30.x links
core_interface, so none loses the src/ include paths: bitcoin_clientversion, bitcoin_consensus, bitcoin_common, bitcoin_node, bitcoin_cli, the bitcoin/bitcoind/bitcoin-node/bitcoin-cli/bitcoin-tx/bitcoin-util/bitcoin-chainstate/bitcoin-wallet executables (src/CMakeLists.txt), bitcoin_crypto (src/crypto/CMakeLists.txt:25-28), bitcoin_util (src/util/CMakeLists.txt:40-48), bitcoin_zmq (src/zmq/CMakeLists.txt:16-21), bitcoin_wallet (src/wallet/CMakeLists.txt:37-45), bitcoinqt (src/qt/CMakeLists.txt:138-149), bitcoinkernel (src/kernel/CMakeLists.txt:87-95, PRIVATE so nothing leaks into the install interface), bitcoin_ipc_test (src/test/CMakeLists.txt:169-174), univalue and its tests, leveldb, crc32c, minisketch, multiprocess/mputil/mpgen (via$<BUILD_INTERFACE:core_interface>), and test_bitcoin, test_util, test_fuzz, fuzz, bench_bitcoin and test_bitcoin-qt. - On 30.x, CMakePresets.json:61-64 dev-mode has
"errors": {"dev": true}, the same as upstream at 435d5b22, so the commit message's reasoning ('superseded by CMake's -Wnon-target-directive warnings, enabled with the dev-mode preset') still applies. cmake_minimum_required is 3.22 on both branches. - Captured upstream discussion: the module was retired once CMake 4.5 was available (comments 623024/623068), the PR was merged because developers saw local build breakage after updating CMake (623362), and it was also backported to 32.x (#36727) and 31.x (#36901). That supports this being a reasonable change for a release branch.
- doc/release-notes.md at head: reset to the v30.x template, with
### Build - #36889 cmake: Switch include_directories -> target_include_directories,### Misc - #36869 refactor, memusage: Make fields of STL helper structs public, and the credithebasto. Both source PRs are mentioned.
Limitations:
- No build, configure or test runner records were supplied. Source inspection does not show that 30.x configures or compiles with these changes (e.g., ENABLE_IPC=ON/OFF, GUI, kernel, fuzz, or the dev-mode preset under CMake 4.5).
- The secp256k1 subtree still uses directory-level directives (
add_compile_definitionsand a Valgrindinclude_directoriesin src/secp256k1/CMakeLists.txt), so it may still trigger -Wnon-target-directive. Upstream at 435d5b22 is in the same state and the fix is tracked separately (bitcoin-core/secp256k1#1996), so this is not a backport defect. It may still affect dev-mode configures with CMake 4.5 on 30.x. - Without the module, developers on CMake older than 4.5 no longer get a configure-time warning for directory-wide properties on 30.x. Upstream accepted the same trade-off, and the captured sources do not discuss it for 30.x specifically.
- The release-note reset drops the v30.5 entries. I could not check from the tree that v30.5 has been tagged (no archived 30.x release notes exist on this branch), but this matches the usual practice.
- The #36869 PR body in the evidence packet is truncated, and the PR description lists only #36869 while the PR also backports #36889. This is a non-blocking metadata inconsistency in a WIP PR.
- 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
The upstream removal rationale was replacement by CMake 4.5's native warning, with availability in CI—not migration of every supported developer environment—used as the removal criterion.
In #36889, an exchange quotes the condition that the custom check could be removed once one CI job used CMake >=4.5.0. A participant reported Homebrew already shipping that version and asked whether removal could happen immediately; the reply was 'Sure. Dropped.' This supports intentional upstream retirement despite potentially older local CMake installations, but does not establish a 30.x-specific decision.