Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2022 17:23:48 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: ab3f6b12dbf2 - main - science/elmerfem: Fix bug that build selected arbitrary Python versions
Message-ID:  <202207211723.26LHNmbX001881@gitrepo.freebsd.org>

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

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

commit ab3f6b12dbf2df281f6ec5f724e1fe03c803f16f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-21 17:20:30 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-21 17:20:30 +0000

    science/elmerfem: Fix bug that build selected arbitrary Python versions
    
    When built from port it selected a higher Python version when it
    was available producing broken binaries.
    
    Approved by:    portmgr (bugfix)
---
 science/elmerfem/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/science/elmerfem/Makefile b/science/elmerfem/Makefile
index 246db5a1d858..69c198240fb5 100644
--- a/science/elmerfem/Makefile
+++ b/science/elmerfem/Makefile
@@ -63,7 +63,8 @@ OCC_LIB_DEPENDS=	libexpat.so:textproc/expat2 \
 			libvtksys-9.1.so:math/vtk9
 OCC_USES=		python
 OCC_CMAKE_BOOL=		WITH_OCC
-OCC_CMAKE_ON=		-DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-9.0
+OCC_CMAKE_ON=		-DVTK_DIR=${LOCALBASE}/lib/cmake/vtk-9.0 \
+			-DPython3_EXECUTABLE=${PYTHON_CMD}
 
 _LIBSTAGEDIR=	${STAGEDIR}/${PREFIX}/lib/elmersolver
 _PYVERSION=	${PYTHON_VER}${PYTHON_ABIVER}



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