launcher does not respect CMAKE_INSTALL_LIBEXECDIR #35785

issue 1-21gigasats opened this issue on July 23, 2026
  1. 1-21gigasats commented at 2:10 PM on July 23, 2026: none

    Current behavior

    The bitcoin launcher hardcodes libexec when locating internal executables, while the CMake installation uses the configurable CMAKE_INSTALL_LIBEXECDIR.

    Arch Linux builds Bitcoin Core with:

    -DCMAKE_INSTALL_PREFIX=/usr
    -DCMAKE_INSTALL_LIBEXECDIR=lib
    

    See the Arch Linux bitcoin PKGBUILD.

    This installs the binaries as:

    /usr/lib/bitcoin-node
    /usr/lib/bitcoin-gui
    /usr/lib/bitcoin-chainstate
    

    However, the following commands fail:

    $ /usr/bin/bitcoin -m node --version
    Error: execvp failed to execute '/usr/bin/bitcoin-node': No such file or directory
    Try '/usr/bin/bitcoin --help' for more information.
    
    $ /usr/bin/bitcoin -m gui --version
    Error: execvp failed to execute '/usr/bin/bitcoin-gui': No such file or directory
    Try '/usr/bin/bitcoin --help' for more information.
    
    $ /usr/bin/bitcoin chainstate --version
    Error: execvp failed to execute '/usr/bin/bitcoin-chainstate': No such file or directory
    Try '/usr/bin/bitcoin --help' for more information.
    

    Cause

    install_binary_component(... INTERNAL) correctly installs binaries into ${CMAKE_INSTALL_LIBEXECDIR}, but ExecCommand() searches a hardcoded libexec directory:

    Expected behavior

    The launcher should locate internal executables using the configured CMAKE_INSTALL_LIBEXECDIR, so installations using a non-default value such as lib work correctly.

    CC: @kpcyrd

  2. fanquake added the label Build system on Jul 23, 2026
  3. hebasto commented at 6:17 PM on July 23, 2026: member
  4. Bortlesboat referenced this in commit 6050fd58f3 on Jul 24, 2026

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-07-27 07:51 UTC

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