On Thu, Apr 12, 2018 at 09:33:59AM +0200, Sebastien Marie wrote: > Hi, > > From time to time, when trying to build devel/llvm from ports while > another version is already installed, I am facing dependency problem on > python flavor when packaging it. > > $ cd /usr/ports/lang/rust && make > ===> rust-1.25.0p0 depends on: llvm->=6.0,<6.1 - not found > ===> Verifying install for llvm->=6.0,<6.1 in devel/llvm > `/home/openbsd/pobj/llvm-6.0.0/fake-i386/.fake_done' is up to date. > ===> Building package for py-llvm-6.0.0 > Create /usr/ports/packages/i386/all/py-llvm-6.0.0.tgz > Creating package py-llvm-6.0.0 > |library clang.7.0 not found > | /usr/local/lib/libclang.so.6.0 (llvm-5.0.1p2): bad major > Direct dependencies for py-llvm-6.0.0 resolve to llvm-5.0.1p2 python-2.7.14p1 > Full dependency tree is gtest-1.8.0p2 gettext-0.19.8.1p1 libffi-3.2.1p4 > sqlite3-3.22.0p0 python-2.7.14p1 llvm-5.0.1p2 libiconv-1.14p3 bzip2-1.0.6p8 > Fatal error: can't continue > ... > > > I think the reason is LIB_DEPENDS-python depends on any llvm version, > and as I already one installed (here llvm-5.0.1p2), it choose with the > wrong one.
I've recently experienced the same issue, so i'd welcome this fix.