Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 04 Aug 2026 20:10:40 +0000
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: 6eb9e0466668 - main - science/precice: update 3=?utf-8?Q?=2E1.2 =E2=86=92?= 3.4.1
Message-ID:  <6a724740.3d5d5.208297df@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by yuri:

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

commit 6eb9e0466668e973b1d0e7491b01d6e20af45094
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-08-04 07:21:18 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-08-04 20:10:24 +0000

    science/precice: update 3.1.2 → 3.4.1
---
 science/precice/Makefile                             | 19 ++++---------------
 science/precice/distinfo                             |  6 +++---
 science/precice/files/patch-CMakeLists.txt           |  4 ++--
 science/precice/files/patch-src_utils_networking.cpp | 15 +++++++++++++++
 science/precice/pkg-plist                            |  9 ++++++++-
 5 files changed, 32 insertions(+), 21 deletions(-)

diff --git a/science/precice/Makefile b/science/precice/Makefile
index 2ed9f2b113aa..c87a4bef5666 100644
--- a/science/precice/Makefile
+++ b/science/precice/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	precice
 DISTVERSIONPREFIX=	v
-DISTVERSION=	3.1.2
-PORTREVISION=	5
+DISTVERSION=	3.4.1
 CATEGORIES=	science # physics
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -11,14 +10,12 @@ WWW=		https://precice.org/
 LICENSE=	LGPL3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BROKEN=		fails to build with Boost>=1.87
-
 BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
 LIB_DEPENDS=	libboost_thread.so:devel/boost-libs \
-		libmpicxx.so:net/mpich
+		libgcc_s.so:lang/gcc${GCC_DEFAULT}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR}
 
-USES=		cmake:noninja,testing compiler:c++14-lang eigen:3 gnome pkgconfig python shebangfix # fails with ninja: phony target 'binprecice' names itself as an input; ignoring
+USES=		cmake:noninja,testing compiler:c++14-lang eigen:3 gnome mpi:openmpi pkgconfig python shebangfix # fails with ninja: phony target 'binprecice' names itself as an input; ignoring
 USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
 
@@ -28,22 +25,14 @@ SHEBANG_FILES=	tools/profiling/precice-profiling
 
 CMAKE_OFF=	BUILD_TESTING PRECICE_ENABLE_FORTRAN PRECICE_PythonActions
 
-OPTIONS_DEFINE=	MPI PETSC EXAMPLES
-
-MPI_CMAKE_BOOL=		PRECICE_MPICommunication
-MPI_BUILD_DEPENDS=	openmpi>0:net/openmpi
-MPI_RUN_DEPENDS=	openmpi>0:net/openmpi
-MPI_BROKEN=		all tests crash with MPI, see https://github.com/precice/precice/issues/1331
+OPTIONS_DEFINE=	PETSC EXAMPLES
 
 PETSC_DESC=		Use PETSc linear algebra library
 PETSC_CMAKE_BOOL=	PRECICE_FEATURE_PETSC_MAPPING
 PETSC_LIB_DEPENDS=	libpetsc.so:science/PETSc
-PETSC_IMPLIES=		MPI
 
 PORTEXAMPLES=		*
 
-# 3 tests time out, see https://github.com/precice/precice/issues/1331
-
 post-install: # remove files which aren't docs
 	@${RM} -r ${STAGEDIR}${PREFIX}/share/doc
 
diff --git a/science/precice/distinfo b/science/precice/distinfo
index 88a17e938841..e94edb89dced 100644
--- a/science/precice/distinfo
+++ b/science/precice/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1731126071
-SHA256 (precice-precice-v3.1.2_GH0.tar.gz) = e06d5e183f584c51812dcddf958210d1195bea38fa2df13be72303dcb06c869b
-SIZE (precice-precice-v3.1.2_GH0.tar.gz) = 1666984
+TIMESTAMP = 1785804051
+SHA256 (precice-precice-v3.4.1_GH0.tar.gz) = ef4713c938a1b2000d0b071175e1b45f9ec55c7aec4bbe7b65c3992edcc74ac7
+SIZE (precice-precice-v3.4.1_GH0.tar.gz) = 1797379
diff --git a/science/precice/files/patch-CMakeLists.txt b/science/precice/files/patch-CMakeLists.txt
index 77b6ab92d538..ab27d3fda835 100644
--- a/science/precice/files/patch-CMakeLists.txt
+++ b/science/precice/files/patch-CMakeLists.txt
@@ -1,6 +1,6 @@
---- CMakeLists.txt.orig	2022-06-20 10:08:50 UTC
+--- CMakeLists.txt.orig	2026-04-21 07:09:32 UTC
 +++ CMakeLists.txt
-@@ -461,7 +461,7 @@ endif()
+@@ -789,7 +789,7 @@ install(DIRECTORY examples
  
  # Install examples
  install(DIRECTORY examples
diff --git a/science/precice/files/patch-src_utils_networking.cpp b/science/precice/files/patch-src_utils_networking.cpp
new file mode 100644
index 000000000000..2331ec15b9ff
--- /dev/null
+++ b/science/precice/files/patch-src_utils_networking.cpp
@@ -0,0 +1,15 @@
+-- Fix loopback interface detection on FreeBSD and other BSDs.
+-- The upstream code only checks for __APPLE__ or the BSD macro, which is not
+-- defined by default on FreeBSD. preCICE uses "lo0" on BSD systems.
+-- Upstream issue: https://github.com/precice/precice/issues/2278
+--- src/utils/networking.cpp.orig	2026-08-04 00:41:46 UTC
++++ src/utils/networking.cpp
+@@ -6,7 +6,7 @@ std::string loopbackInterfaceName()
+ {
+ #if defined(__linux__)
+   return "lo";
+-#elif defined(__APPLE__) || defined(BSD)
++#elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+   return "lo0";
+ #elif defined(_WIN32)
+   // Not required as we directly use the 127.0.0.1 under Windows
diff --git a/science/precice/pkg-plist b/science/precice/pkg-plist
index 3f329ce21251..57540ccf9c06 100644
--- a/science/precice/pkg-plist
+++ b/science/precice/pkg-plist
@@ -1,5 +1,9 @@
+bin/precice-config-doc
+bin/precice-config-validate
 bin/precice-profiling
 bin/precice-tools
+bin/precice-version
+include/precice/Exceptions.hpp
 include/precice/Participant.hpp
 include/precice/Tooling.hpp
 include/precice/Types.hpp
@@ -15,7 +19,10 @@ lib/cmake/precice/preciceTargets-%%CMAKE_BUILD_TYPE%%.cmake
 lib/cmake/precice/preciceTargets.cmake
 lib/libprecice.so
 lib/libprecice.so.3
-lib/libprecice.so.3.1.2
+lib/libprecice.so.3.4.1
 libdata/pkgconfig/libprecice.pc
 share/lintian/overrides/libprecice3
+share/man/man1/precice-config-doc.1.gz
+share/man/man1/precice-config-validate.1.gz
 share/man/man1/precice-tools.1.gz
+share/man/man1/precice-version.1.gz


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a724740.3d5d5.208297df>