ipc: remove pre-v14 libmultiprocess compat definitions

bitcoin/bitcoin: PR #36817

1 suggestion

Optional improvements

Link

[suggestion] · External builds lack a diagnostic for the new libmultiprocess minimum

Source inspection shows that opt-in external builds can reach missing-type errors with pre-v14 libmultiprocess instead of a version diagnostic, extending a pre-existing diagnostic gap; no build failure was reproduced.

Location: src/ipc/process.h:8 (head).

Details and suggested fix

With IPC enabled and -DWITH_EXTERNAL_LIBMULTIPROCESS=ON, CMake discovers the external package without checking its version and skips the bundled subtree. An otherwise usable older installation lacking mp::ProcessId and mp::SocketId therefore fails when compiling these declarations, now that ipc/util.h no longer supplies the aliases. Include <mp/version.h> here and add static_assert(MP_MAJOR_VERSION >= 14, "libmultiprocess v14 or later is required"); to identify the required upgrade directly. A versioned find_package alone is insufficient because the inspected libmultiprocess installation rules provide no ConfigVersion file. The external option is explicitly not normally recommended, and default builds already use the bundled v14 library.


Coverage details