Skip to content

Commit

Permalink
net/openmpi4: upgrade to 4.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
thierry-FreeBSD committed Feb 18, 2024
1 parent 8d52a73 commit 3e61f8f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 16 deletions.
1 change: 1 addition & 0 deletions net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@
SUBDIR += openldap26-server
SUBDIR += openmdns
SUBDIR += openmpi
SUBDIR += openmpi4
SUBDIR += openntpd
SUBDIR += openpgm
SUBDIR += openradius
Expand Down
26 changes: 14 additions & 12 deletions net/openmpi4/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
PORTNAME= openmpi
PORTVERSION= 4.1.5
PORTREVISION= 4
PORTVERSION= 4.1.6
CATEGORIES= net parallel
MASTER_SITES= http://www.open-mpi.org/software/ompi/v${PORTVERSION:R}/downloads/
MASTER_SITES= https://download.open-mpi.org/release/open-mpi/v${PORTVERSION:R}/
PKGNAMESUFFIX= 4

MAINTAINER= ports@FreeBSD.org
Expand All @@ -21,21 +20,22 @@ LIB_DEPENDS= libhwloc.so.15:devel/hwloc2 \
USES= fortran gmake libtool:keepla localbase perl5 \
pkgconfig shebangfix tar:bzip2

HAS_CONFIGURE= yes
CONFLICTS_INSTALL= openmpi-5*

USE_PERL5= build

MPIBASE?= mpi
MPIDIR?= ${MPIBASE}/${PKGBASE}
MPIDIR?= ${MPIBASE}/${PORTNAME}

PLIST_SUB+= MPIBASE=${MPIBASE}
PLIST_SUB+= MPIDIR=${MPIDIR}

# Workaround for https://github.com/open-mpi/ompi/issues/7516
CONFIGURE_ENV+= DISABLE_gds_ds12=1 DISABLE_gds_ds21=1

CONFIGURE_ARGS+= --prefix=${PREFIX}/${MPIDIR} \
--mandir=${PREFIX}/${MPIDIR}/share/man \
--program-prefix= \
GNU_CONFIGURE= yes
GNU_CONFIGURE_PREFIX= ${PREFIX}/${MPIDIR}
GNU_CONFIGURE_MANPREFIX=${PREFIX}/${MPIDIR}/share
CONFIGURE_ARGS+= --program-prefix= \
--with-hwloc=external \
--with-libltdl \
--without-ofi \
Expand All @@ -52,6 +52,8 @@ USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib

MANDIRS= ${PREFIX}/${MPIDIR}/share/man

TEST_TARGET= check

SHEBANG_FILES= ompi/mca/common/monitoring/profile2mat.pl \
ompi/mca/common/monitoring/aggregate_profile.pl

Expand Down Expand Up @@ -116,8 +118,8 @@ PLIST_SUB+= NO_MCA_PATCHER_OVERWRITE="@comment "
PLIST_SUB+= NO_MCA_PATCHER_OVERWRITE=""
.endif

post-patch:
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${LOCALBASE}/libdata/pkgconfig|g' \
pre-configure:
${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${LOCALBASE}/libdata/pkgconfig|g' \
${WRKSRC}/ompi/tools/wrappers/Makefile.am \
${WRKSRC}/ompi/tools/wrappers/Makefile.in \
${WRKSRC}/opal/tools/wrappers/Makefile.am \
Expand All @@ -126,7 +128,7 @@ post-patch:
${WRKSRC}/orte/tools/wrappers/Makefile.in \
${WRKSRC}/opal/mca/pmix/pmix3x/pmix/Makefile.am \
${WRKSRC}/opal/mca/pmix/pmix3x/pmix/Makefile.in
@${REINPLACE_CMD} 's|define MCA_hwloc_external_.*header "|&${LOCALBASE}/include/|' \
${REINPLACE_CMD} 's|define MCA_hwloc_external_.*header "|&${LOCALBASE}/include/|' \
${WRKSRC}/configure

.include <bsd.port.mk>
6 changes: 3 additions & 3 deletions net/openmpi4/distinfo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
TIMESTAMP = 1677228694
SHA256 (openmpi-4.1.5.tar.bz2) = a640986bc257389dd379886fdae6264c8cfa56bc98b71ce3ae3dfbd8ce61dbe3
SIZE (openmpi-4.1.5.tar.bz2) = 10045426
TIMESTAMP = 1706177680
SHA256 (openmpi-4.1.6.tar.bz2) = f740994485516deb63b5311af122c265179f5328a0d857a567b85db00b11e415
SIZE (openmpi-4.1.6.tar.bz2) = 10017002
3 changes: 3 additions & 0 deletions net/openmpi4/pkg-descr
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ vendors, application developers and computer science researchers.

Open MPI is based on an open component architecture allowing modular
replacement of many system components without recompilation.

This is the legacy version, but the latest one with support of 32 bits
platforms.
2 changes: 1 addition & 1 deletion net/openmpi4/pkg-plist
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ libdata/pkgconfig/pmix.pc
%%MPIDIR%%/lib/libmpi.la
%%MPIDIR%%/lib/libmpi.so
%%MPIDIR%%/lib/libmpi.so.40
%%MPIDIR%%/lib/libmpi.so.40.30.5
%%MPIDIR%%/lib/libmpi.so.40.30.6
%%MPIDIR%%/lib/libmpi_cxx.la
%%MPIDIR%%/lib/libmpi_cxx.so
%%MPIDIR%%/lib/libmpi_cxx.so.40
Expand Down

0 comments on commit 3e61f8f

Please sign in to comment.