Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jan 2022 07:38:29 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: cac668881bf1 - 2022Q1 - science/py-gpaw: Fix missing MPI symbol; Add missing gpaw-setups dependency
Message-ID:  <202201040738.2047cTpM082703@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q1 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cac668881bf11023cbff1bb3ad0a5c7b9092273e

commit cac668881bf11023cbff1bb3ad0a5c7b9092273e
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-04 07:36:53 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-04 07:38:27 +0000

    science/py-gpaw: Fix missing MPI symbol; Add missing gpaw-setups dependency
    
    (cherry picked from commit 87381e8dc3a88f05f15277e154f1c80f7d9a2f3b)
---
 science/py-gpaw/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/science/py-gpaw/Makefile b/science/py-gpaw/Makefile
index 434704bef9aa..e09977d865b7 100644
--- a/science/py-gpaw/Makefile
+++ b/science/py-gpaw/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gpaw
 DISTVERSION=	21.6.0
+PORTREVISION=	1
 CATEGORIES=	science python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -18,12 +19,15 @@ LIB_DEPENDS=	libblas.so:math/blas \
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ase>0:science/py-ase@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
 		${PYNUMPY} \
-		${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}scipy>=0:science/py-scipy@${PY_FLAVOR} \
+		gpaw-setups>0:science/gpaw-setups
 
 USES=		gettext-runtime localbase python:3.7+ shebangfix
 USE_PYTHON=	distutils concurrent autoplist
 SHEBANG_FILES=	tools/*
 
+LDFLAGS=	-lmpi # otherwise: ImportError: /usr/local/lib/python3.8/site-packages/_gpaw.cpython-38.so: Undefined symbol "MPI_Comm_rank"
+
 post-patch:
 	@${REINPLACE_CMD} "s|'/usr/local/|'${LOCALBASE}/|" ${WRKSRC}/gpaw/__init__.py
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201040738.2047cTpM082703>