This picks up #35167.
check-deps.py reads the allowed library dependencies from the mermaid graph in doc/design/libraries.md and follows them transitively, so the graph can drop its transitive edges and the script no longer keeps its own copy of the list. Compared to check-deps.sh, it also checks data symbols, and it runs on macOS, where the shell script needs bash 4.
Changes compared to #35167, most of them from ryanofsky's review and the branch he shared there.
- The edges #35167 added to the graph, from consensus to util and from qt to cli, node and wallet, are gone.
init/common.cppstays in common, andinterface_uimoves there from node. It's the same move as in #30437.- Build output is shown, and a target that fails to build or a library archive that is missing is an error instead of a warning.
- The script fails when it reads no symbols from a library or can't parse a line of the graph, instead of reporting success.
- On macOS, the script reads the symbols
nmreports as typeSand drops the extra leading underscore of Mach-O names before matching suppressions.
On whether libraries.md can be the source of truth (https://github.com/bitcoin/bitcoin/pull/35167#issuecomment-4337200918), check-deps.sh already took its list from that file. Where the build doesn't match the graph yet, check-deps.py skips the library or suppresses the symbols, and says why in a comment.