build: honor CMAKE_INSTALL_LIBEXECDIR in wrapper #36037

pull Avecci-Claussen wants to merge 1 commits into bitcoin:master from Avecci-Claussen:libexecdir-launcher changing 5 files +66 −5
  1. Avecci-Claussen commented at 2:05 PM on August 20, 2026: none

    Fixes #35785

    Internal binaries are installed to CMAKE_INSTALL_LIBEXECDIR. That defaults to libexec, but a distro can set it to something else (Arch uses lib). The bitcoin wrapper always looked in ../libexec under the install prefix, so those builds fail after cmake --install for bitcoin-node, chainstate, and the other internal binaries.

    The wrapper now uses the same CMake value.

    tool_bitcoin.py copies the wrapper into a fake prefix/bin and bitcoind only into prefix/<LIBEXECDIR>, then runs it by absolute path.

    Putting the binary in a different directory should fail. Normal functional tests miss this because every binary sits next to the wrapper in the build tree.

  2. build: honor CMAKE_INSTALL_LIBEXECDIR in wrapper
    The wrapper always looked in ../libexec for binaries, but
    install_binary_component(INTERNAL) uses CMAKE_INSTALL_LIBEXECDIR.
    Distro builds that set that to lib then fail after install.
    Fixes #35785
    1a72400cd5
  3. DrahtBot added the label Build system on Aug 20, 2026
  4. DrahtBot commented at 2:06 PM on August 20, 2026: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--006a51241073e994b41acfe9ec718e94-->

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/36037.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline and AI policy for information on the review process. A summary of reviews will appear here.

    <!--5faf32d7da4f0f540f40219e4f7537a3-->


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-08-21 04:51 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me