🟡 Minor
Multi-component bindirs are not recognized (src/bitcoin.cpp:244, head)
The lookup compares the wrapper directory’s filename with the entire configured BITCOIN_BINDIR. GNUInstallDirs permits absolute and multi-component destinations, and the install rules use the configured bindir directly; the configure-time guards reject only empty values. For example, with CMAKE_INSTALL_BINDIR=/opt/bitcoin/bin and CMAKE_INSTALL_LIBEXECDIR=libexec, the installed wrapper is in /opt/bitcoin/bin, but its filename component (bin) cannot equal the absolute configured bindir. Invoking it by path therefore skips the configured libexec lookup and fails to find an internal executable under /opt/bitcoin/libexec. The base code recognized this case by checking for the final component, bin. Handle these bindir forms or reject unsupported values during configuration.
Installed-layout test fails when bindir and libexecdir coincide (test/functional/tool_bitcoin.py:126, head)
If BINDIR and LIBEXECDIR are both bin, line 125 creates root/bin, and this second mkdir() raises FileExistsError. The install rules permit the wrapper and internal executables to share a destination, so the functional test fails before exercising the wrapper. Make directory creation tolerate an existing directory and cover the shared-directory case in the test.
Review coverage was incomplete. The adversarial_glm review had incomplete evidence.