Bug 239237 - devel/llvm-devel: fails to stage when python 2.7 is default
Summary: devel/llvm-devel: fails to stage when python 2.7 is default
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2019-07-16 02:51 UTC by Jan Beich
Modified: 2019-07-16 16:41 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (brooks)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2019-07-16 02:51:40 UTC
$ echo 'DEFAULT_VERSIONS+=python=2.7' >>${__MAKE_CONF:-/etc/make.conf}

$ make install
[...]
===>   Registering installation for llvm-devel-9.0.d20190712_1 as automatic
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/__init__.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/_lldb.so:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/embedded_interpreter.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/Logger.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/__init__.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/attrib_fromdict.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/cache.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/cpp/__init__.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/cpp/gnu_libstdcpp.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/cpp/libcxx.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/metrics.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/formatters/synth.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/lldb-argdumper:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/runtime/__init__.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/utils/__init__.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/lldb/utils/symbolication.py:No such file or directory
pkg-static: Unable to access file /usr/ports/devel/llvm-devel/work/stage/usr/local/llvm-devel/lib/python2.7/site-packages/six.py:No such file or directory
*** Error code 74

$ make check-plist
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/__init__.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/_lldb.so
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/embedded_interpreter.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/Logger.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/__init__.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/attrib_fromdict.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/cache.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/cpp/__init__.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/cpp/gnu_libstdcpp.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/cpp/libcxx.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/metrics.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/formatters/synth.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/lldb-argdumper
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/runtime/__init__.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/utils/__init__.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/lldb/utils/symbolication.py
Error: Orphaned: llvm-devel/lib/python3.6/site-packages/six.py
===> Checking for items in pkg-plist which are not in STAGEDIR
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/__init__.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/_lldb.so
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/embedded_interpreter.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/Logger.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/__init__.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/attrib_fromdict.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/cache.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/cpp/__init__.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/cpp/gnu_libstdcpp.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/cpp/libcxx.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/metrics.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/formatters/synth.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/lldb-argdumper
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/runtime/__init__.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/utils/__init__.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/lldb/utils/symbolication.py
Error: Missing: llvm-devel/%%PYTHON_SITELIBDIR%%/six.py
===> Error: Plist issues found.
*** Error code 1
Comment 1 commit-hook freebsd_committer 2019-07-16 16:40:33 UTC
A commit references this bug:

Author: brooks
Date: Tue Jul 16 16:40:07 UTC 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

Changes:
  head/devel/llvm-devel/Makefile
Comment 2 Brooks Davis freebsd_committer 2019-07-16 16:41:43 UTC
Hopefully fixed in r506765.  Tested with a poudriere set and <set>-make.conf.