hebasto
commented at 7:20 PM on July 10, 2025:
member
When using CMake policies 3.14 and below, the export(PACKAGE) command by default populates the user package registry, which is stored outside the build tree. Setting the CMAKE_EXPORT_NO_PACKAGE_REGISTRY variable disables this side effect.
In CMake 3.15 and later, this behavior is disabled by default, and the variable has no effect.
This PR forces CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE globally, rather than managing it for each dependency package individually rather. It may be reverted once all CMake-based packages have updated to policies 3.15 or newer.
depends: Force `CMAKE_EXPORT_NO_PACKAGE_REGISTRY=TRUE`
When using CMake policies 3.14 and below, the `export(PACKAGE)` command
by default populates the user package registry, which is stored outside
the build tree. Setting the `CMAKE_EXPORT_NO_PACKAGE_REGISTRY` variable
disables this side effect.
In CMake 3.15 and later, this behavior is disabled by default, and the
variable has no effect.
44f3bae300
hebasto added the label Build system on Jul 10, 2025
DrahtBot
commented at 7:20 PM on July 10, 2025:
contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
Could we also set CMAKE_FIND_USE_PACKAGE_REGISTRY to false in the toolchain file as a belt-and-suspenders in case some future package manually opts-in using CMAKE_EXPORT_PACKAGE_REGISTRY ?
fanquake
commented at 9:32 AM on July 11, 2025:
member
This is going to need backporting, to fix the 29.x branch.
fanquake added the label Needs backport (29.x) on Jul 11, 2025
maflcko added the label DrahtBot Guix build requested on Jul 11, 2025
hebasto
commented at 10:34 AM on July 11, 2025:
member
Could we also set CMAKE_FIND_USE_PACKAGE_REGISTRY to false in the toolchain file as a belt-and-suspenders in case some future package manually opts-in using CMAKE_EXPORT_PACKAGE_REGISTRY ?
I don't think it prevents issues like #32938, which occur when the toolchain file is not used.
hebasto
commented at 10:43 AM on July 11, 2025:
member
This is going to need backporting, to fix the 29.x branch.
DrahtBot removed the label DrahtBot Guix build requested on Jul 11, 2025
fanquake
commented at 12:31 PM on July 14, 2025:
member
ACK44f3bae300dcafbe53f9b07e6cc22a112833e579
Yikes. Concept ACK.
Yea. It's an interesting example of how bumping/changing a CMake minimum version, can opt you into, or out of, unexpected behaviour (I imagine this is why this stopped being the default).
DrahtBot requested review from theuni on Jul 14, 2025
fanquake merged this on Jul 14, 2025
fanquake closed this on Jul 14, 2025
fanquake referenced this in commit bc2147c884 on Jul 14, 2025
fanquake
commented at 12:35 PM on July 14, 2025:
member
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-10 21:51 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me