[Bug 240343] x11-themes/plasma5-breeze-gtk: does not build if lang/python37 is installed

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 6 05:36:44 BST 2019


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

--- Comment #7 from Ting-Wei Lan <lantw44 at gmail.com> ---
(In reply to Kubilay Kocak from comment #6)
plasma5-breeze-gtk does nothing special here. It just uses
find_package(Python3) provided by CMake upstream with two lines of code.

  find_package(Python3 COMPONENTS Interpreter REQUIRED)
  set(PYTHON_EXECUTABLE "${Python3_EXECUTABLE}")

The find stratagy is provided by CMake upstream. It can be found in
/usr/local/share/cmake/Modules/FindPython/Support.cmake, and it is documented
at https://cmake.org/cmake/help/v3.15/module/FindPython3.html. After adding 
message() calls to debug the module, I think the reason that setting
Python3_EXECUTABLE doesn't work for Python3_FIND_STRATEGY=VERSION is that it
always iterates through the list of known python versions, which starts at 3.8.
Since ${PYTHON_CMD} (3.6) specified with Python3_EXECUTABLE doesn't match the
requirement (3.8) exactly, _python_validate_interpreter resets
Python3_EXECUTABLE to Python3_EXECUTABLE-NOTFOUND. Therefore, all find_program
calls after the first _python_validate_interpreter don't see Python3_EXECUTABLE
set on the command line, and they just use its own way to find python.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kde-freebsd mailing list