Is --no-cmake-config still needed in Gentoo ebuild? https://github.com/boostorg/python/issues/262 seems to be resolved. We hit this when find_package(Boost "${Boost_MIN_VERSION}" CONFIG REQUIRED) failed in libktorrent. In upstream repo we have now switched to find_package(Boost "${Boost_MIN_VERSION}" MODULE REQUIRED) which works on Gentoo but maybe we can enable cmake config on Gentoo too. Reproducible: Always
Actually, I came here for the very same reason. I wanted to build Solidity compiler from source that does require cmake using find_package(Boost $BoostVersion COMPONENTS ... CONFIG REQUIRED) and was wondering why it keeps not finding it until I checked the ebuild file's contents. I'd highly appreciate getting cmake module files installed. :)
I just tested with boost 1.76.0 and it doesn't seem to be needed anymore. Since several packages use find_package(Boost CONFIG ...), we should re-enable installation of native CMake configuration files.
In particular, find_package(Boost CONFIG COMPONENTS python) fails in Gentoo, because that only works with the exported CMake configuration files. With CMake's own FindBoost.cmake, you need to specify a version, like python38.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c8e363dbfd10f433f61425b325790db56ac365d commit 8c8e363dbfd10f433f61425b325790db56ac365d Author: Guilherme Amadio <amadio@gentoo.org> AuthorDate: 2021-05-18 10:57:40 +0000 Commit: Guilherme Amadio <amadio@gentoo.org> CommitDate: 2021-05-19 12:18:37 +0000 dev-libs/boost: remove workaround, bug #752120 Installation of CMake configuration files when installing for multiple Python versions has been fixed upstream, so the workaround is no longer necessary. Installation of CMake files is required to make calls like find_package(Boost CONFIG) and find_package(Boost COMPONENTS python) work. Closes: https://bugs.gentoo.org/752120 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Guilherme Amadio <amadio@gentoo.org> dev-libs/boost/{boost-1.76.0.ebuild => boost-1.76.0-r1.ebuild} | 4 ---- 1 file changed, 4 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a328594c9f92c46af48cc064943f086bc2a07ce8 commit a328594c9f92c46af48cc064943f086bc2a07ce8 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2021-05-26 22:07:17 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2021-05-26 22:08:14 +0000 dev-util/schroot: pass -DBoost_NO_BOOST_CMAKE=ON Bug: https://bugs.gentoo.org/752120 Closes: https://bugs.gentoo.org/791712 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> dev-util/schroot/schroot-1.6.10_p12.ebuild | 2 +- dev-util/schroot/schroot-1.6.10_p7.ebuild | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)