Currently when “make install” or “cmake –install” are run, various internal binaries that are confusing and not typically useful are installed to ${CMAKE_INSTALL_PREFIX}/bin
and can wind up on the system PATH. This PR moves internal binaries out of bin/
into libexec/
where they will still be accessible but will not be automatically placed on the PATH or be confused with more useful binaries. The PR also adds an install rule for the bitcoin-chainstate
binary. After this PR binaries installed to bin/
are:
- bitcoin-cli
- bitcoind
- bitcoin-qt
- bitcoin-tx
- bitcoin-util
- bitcoin-wallet
And binaries installed to libexec/
are:
- bench_bitcoin
- bitcoin-chainstate
- bitcoin-gui
- bitcoin-node
- test_bitcoin
- test_bitcoin-qt
In the future if #31375 gets merged, there will be a new bitcoin
wrapper executable in bin/ that can be used to call other binaries, and with that present, we could consider moving other binaries from bin/ to libexec/ and recommending that most users should use the wrapper instead of calling the different utilities directly. But this PR should make still make sense without #31375 to organize the binaries better.