From a60337fb4eab908c299d79f93d8fdc1f249a3c55 Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 19 May 2019 16:48:08 +0000 Subject: [PATCH] science/py-phono3py: Fix build on 12/13 (broken due to missing libgomp.so); Add USES=blaslapack:openblas libgomp.so was found in gcc8, which this ports doesn't explicitly depend on, and openmp wasn't installed but the build was failing later on 12 due to the lack of libgomp.so. Solution: Move openmp dependency from LIB_DEPENDS to BUILD_DEPENDS/RUN_DEPENDS. Reported by: Gleb Popov <6yearold@gmail.com> (USES=blaslapack:openblas) --- science/py-phono3py/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/science/py-phono3py/Makefile b/science/py-phono3py/Makefile index 56208a39a660..ffa381dc5c1d 100644 --- a/science/py-phono3py/Makefile +++ b/science/py-phono3py/Makefile @@ -18,16 +18,16 @@ BUILD_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}phonopy>=1.13.2:science/py-phonopy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \ - ${LOCALBASE}/include/lapacke.h:math/lapacke -LIB_DEPENDS= libgomp.so:devel/openmp \ - libopenblas.so:math/openblas + ${LOCALBASE}/include/lapacke.h:math/lapacke \ + openmp>0:devel/openmp RUN_DEPENDS= ${PYNUMPY} \ ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}phonopy>=1.13.2:science/py-phonopy@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \ + openmp>0:devel/openmp -USES= localbase python +USES= blaslapack:openblas localbase python USE_PYTHON= distutils cython autoplist .include