[Bug 225144] devel/llvm*: fix python dependency

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Jan 13 17:56:48 UTC 2018


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

            Bug ID: 225144
           Summary: devel/llvm*: fix python dependency
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: sunpoet at FreeBSD.org
                CC: brooks at FreeBSD.org, python at FreeBSD.org
                CC: brooks at FreeBSD.org, python at FreeBSD.org

Fix python dependency: restrict to python 2.7

from CMakeLists.txt:
# Verify that we can find a Python 2 interpreter.  Python 3 is unsupported.
# FIXME: We should support systems with only Python 3, but that requires work
# on LLDB.
set(Python_ADDITIONAL_VERSIONS 2.7)
include(FindPythonInterp)
if( NOT PYTHONINTERP_FOUND )
  message(FATAL_ERROR
"Unable to find Python interpreter, required for builds and testing.

Please install Python or specify the PYTHON_EXECUTABLE CMake variable.")
endif()

if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
  message(FATAL_ERROR "Python 2.7 or newer is required")
endif()


The stage-qa and packaging error of devel/llvm50 on a box with python 3.6 as
default are as follows:

====> Running Q/A tests (stage-qa)
Error: /usr/local/llvm50/bin/lldb-server is linked to
/usr/local/lib/libpython2.7.so.1 from lang/python27 but it is not declared as a
dependency
Warning: you need LIB_DEPENDS+=libpython2.7.so:lang/python27

===>  Building package for llvm50-5.0.1
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/_lldb.so:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/embedded_interpreter.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/Logger.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/attrib_fromdict.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/cache.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/cpp/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/cpp/gnu_libstdcpp.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/cpp/libcxx.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/metrics.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/formatters/synth.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/lldb-argdumper:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/runtime/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/utils/__init__.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/lldb/utils/symbolication.py:No
such file or directory
pkg-static: Unable to access file
/usr/ports/works/usr/ports/devel/llvm50/work/stage/usr/local/llvm50/lib/python3.6/site-packages/six.py:No
such file or directory
*** Error code 1

Stop.

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


More information about the freebsd-python mailing list