[Bug 252277] cmake find_package(python3...) fails to get default python version

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Apr 10 16:43:13 BST 2022


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252277

--- Comment #12 from commit-hook at FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=731a0cba8469ce33d4406f735afac00f6914e158

commit 731a0cba8469ce33d4406f735afac00f6914e158
Author:     Adriaan de Groot <adridg at FreeBSD.org>
AuthorDate: 2022-04-10 15:34:55 +0000
Commit:     Adriaan de Groot <adridg at FreeBSD.org>
CommitDate: 2022-04-10 15:34:55 +0000

    devel/cmake: prefer python3 over versioned python3.x

    Depending on which mechanism is used to find Python (Python3
    in particular, since there's only one Python2 version left),
    either python3 is found -- installed by the python3 metaport,
    and presumed to be the "preferred / default Python3 version" --
    of a versioned python3. Asking for, say, Python 3.6 will get
    you whatever python3 points at -- assuming it is newer than 3.6 --
    or, with the other mechanism, the newest python (e.g. highest
    installed version). Those are not necessarily the same.

    Switch the new mechanism to preferring python3; there's a
    knob in CMake itself for that, we just need to set it in
    the FreeBSD config-file.

    PR:             252277

 devel/cmake/Makefile                                         |  1 +
 devel/cmake/files/patch-Modules_Platform_FreeBSD.cmake (new) | 12 ++++++++++++
 2 files changed, 13 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the kde-freebsd mailing list