On 23/03/2023 11.33, Andreas Sturmlechner wrote:
> This is already committed in kde overlay for testing (e.g. via eclass-
> overrides).
> 
> See also:
> https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8287
> 
> Bug: https://bugs.gentoo.org/835799
> Signed-off-by: Andreas Sturmlechner <[email protected]>
> ---
>  eclass/cmake.eclass | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/eclass/cmake.eclass b/eclass/cmake.eclass
> index 9195f3b2d1..3c432ceca8 100644
> --- a/eclass/cmake.eclass
> +++ b/eclass/cmake.eclass
> @@ -537,6 +537,7 @@ cmake_src_configure() {
>               set(CMAKE_USER_MAKE_RULES_OVERRIDE "${build_rules}" CACHE 
> FILEPATH "Gentoo override rules")
>               set(CMAKE_INSTALL_DOCDIR "${EPREFIX}/usr/share/doc/${PF}" 
> CACHE PATH "")
>               set(BUILD_SHARED_LIBS ON CACHE BOOL "")
> +             set(Python3_FIND_UNVERSIONED_NAMES FIRST CACHE STRING "")
>       _EOF_
>  
>       if [[ -n ${_ECM_ECLASS} ]]; then

Thank you for adding it. While ideally ebuilds should pass correctly the
python binary, libs and such in the ebuild, this change makes it better
behave when not passed and for overlays, making the global situation better.

Big +1 from me

-- 
Arthur Zamarin
[email protected]
Gentoo Linux developer (Python, pkgcore stack, Arch Teams, GURU)

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to