Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jul 2022 17:24:25 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: 96e530ca99dd - 2022Q3 - science/elmerfem: Fix bug that build selected arbitrary Python versions
Message-ID:  <202207211724.26LHOPR0002055@gitrepo.freebsd.org>

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

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

commit 96e530ca99dda0a53464cdad30a57f692bfa3952
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:24:17 +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)
    
    (cherry picked from commit ab3f6b12dbf2df281f6ec5f724e1fe03c803f16f)
---
 science/elmerfem/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/science/elmerfem/Makefile b/science/elmerfem/Makefile
index d541eb069802..f2ed91a6ce57 100644
--- a/science/elmerfem/Makefile
+++ b/science/elmerfem/Makefile
@@ -65,7 +65,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?202207211724.26LHOPR0002055>