svn commit: r506765 - head/devel/llvm-devel
Kubilay Kocak
koobs at FreeBSD.org
Wed Jul 17 03:34:20 UTC 2019
On 17/07/2019 2:40 am, Brooks Davis wrote:
> Author: brooks
> Date: Tue Jul 16 16:40:06 2019
> New Revision: 506765
> URL: https://svnweb.freebsd.org/changeset/ports/506765
>
> Log:
> Pin the python version to 3.6 to fix builds with 2.7 as the default.
>
> It appears that LLVM recently become more aggressive in finding python 3
> installations and strongly prefers them.
>
> No PORTREVISON bump as I expect only previously broken systems to see any
> changes.
>
> PR: 239237
> Reported by: jbeich
>
> Modified:
> head/devel/llvm-devel/Makefile
>
> Modified: head/devel/llvm-devel/Makefile
> ==============================================================================
> --- head/devel/llvm-devel/Makefile Tue Jul 16 16:36:32 2019 (r506764)
> +++ head/devel/llvm-devel/Makefile Tue Jul 16 16:40:06 2019 (r506765)
> @@ -27,7 +27,7 @@ BUILD_DEPENDS=
> USES= cmake compiler:c++11-lib libedit perl5 \
> shebangfix
> USE_LDCONFIG= ${LLVM_PREFIX}/lib
> -_USES_PYTHON?= python:build
> +_USES_PYTHON?= python:build:3.6
> USES+= ${_USES_PYTHON}
> SHEBANG_FILES= utils/lit/lit.py utils/llvm-lit/llvm-lit.in \
> tools/clang/utils/hmaptool/hmaptool \
> @@ -124,7 +124,7 @@ LLDB_GH_SUBDIR= tools/lldb:lldb
> LLDB_GH_TAGNAME= ${LLDB_COMMIT}:lldb
> LLDB_IMPLIES= CLANG
> LLDB_PORTDOCS= lldb
> -LLDB_VARS= _USES_PYTHON=python
> +LLDB_VARS= _USES_PYTHON=python:3.6
> OPENMP_DESC= Install libomp, the LLVM OpenMP runtime library
> OPENMP_CONFLICTS_INSTALL= libiomp5-devel-*
> OPENMP_GH_PROJECT= openmp:openmp
>
The build should explicitly specify what Python version to build with,
to prevent autodetection/search ordering from ever playing a part
I believe this can be done by setting the CMake PYTHON_EXECUTABLE [1]
[1] CMakeLists.txt:Please install Python or specify the
PYTHON_EXECUTABLE CMake variable.")
More information about the svn-ports-head
mailing list