Index: head/net/openmpi2/Makefile =================================================================== --- head/net/openmpi2/Makefile (revision 457469) +++ head/net/openmpi2/Makefile (revision 457470) @@ -1,99 +1,100 @@ # $FreeBSD$ PORTNAME= openmpi PORTVERSION= 2.1.2 +PORTREVISION= 1 CATEGORIES= net parallel MASTER_SITES= http://www.open-mpi.org/software/ompi/v${PORTVERSION:R}/downloads/ PKGNAMESUFFIX= 2 MAINTAINER= danilo@FreeBSD.org COMMENT= High Performance Message Passing Library LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libhwloc.so:devel/hwloc \ libltdl.so:devel/libltdl \ libevent.so:devel/libevent \ libmunge.so:security/munge BROKEN_armv6= fails to package: pkg-static: mca_patcher_overwrite.la: No such file or directory BROKEN_armv7= fails to package: pkg-static: mca_patcher_overwrite.la: No such file or directory BROKEN_sparc64= fails to compile on sparc64 HAS_CONFIGURE= yes INSTALL_TARGET= install-strip # :keepla because port uses lt_dlopen USES= fortran gmake libtool:keepla localbase perl5 \ pkgconfig tar:bzip2 USE_PERL5= build MPIBASE?= mpi MPIDIR?= ${MPIBASE}/${PKGBASE} PLIST_SUB+= MPIBASE=${MPIBASE} PLIST_SUB+= MPIDIR=${MPIDIR} CONFIGURE_ARGS+= --prefix=${PREFIX}/${MPIDIR} \ --mandir=${PREFIX}/${MPIDIR}/man \ --program-prefix= \ --with-hwloc=external \ --with-libltdl \ --enable-mpi-fortran=usempi \ --enable-mpi-cxx \ --enable-cxx-exceptions \ --enable-heterogeneous \ --enable-mpi-thread-multiple \ --with-libevent=external \ --with-wrapper-ldflags=-Wl,-rpath=-Wl,-rpath=${LOCALBASE}/lib/gcc${_GCC_VER} \ ompi_cv_fortran_ignore_tkr_data=0 USE_LDCONFIG= ${PREFIX}/${MPIDIR}/lib \ ${PREFIX}/${MPIDIR}/lib/openmpi MANPREFIX= ${PREFIX}/${MPIDIR} OPTIONS_DEFINE= DEBUG IPV6 SLURM TORQUE TORQUE_DESC= Enable Torque support SLURM_DESC= Enable SLURM support OPTIONS_DEFAULT= SLURM OPTIONS_SUB= yes DEBUG_CONFIGURE_ENABLE= debug IPV6_CONFIGURE_ENABLE= ipv6 TORQUE_CONFIGURE_WITH= tm TORQUE_LIB_DEPENDS= libtorque.so:sysutils/torque TORQUE_PLIST_FILES= ${MPIDIR}/lib/openmpi/mca_plm_tm.so \ ${MPIDIR}/lib/openmpi/mca_plm_tm.la \ ${MPIDIR}/lib/openmpi/mca_ras_tm.la \ ${MPIDIR}/lib/openmpi/mca_ras_tm.so \ ${MPIDIR}/lib/openmpi/mca_ess_tm.so \ ${MPIDIR}/lib/openmpi/mca_ess_tm.la \ ${MPIDIR}/share/openmpi/help-plm-tm.txt \ ${MPIDIR}/share/openmpi/help-ras-tm.txt SLURM_CONFIGURE_WITH= slurm SLURM_LIB_DEPENDS= libslurm.so:sysutils/slurm-wlm SLURM_PLIST_FILES= ${MPIDIR}/lib/openmpi/mca_ess_slurm.la \ ${MPIDIR}/lib/openmpi/mca_ess_slurm.so \ ${MPIDIR}/lib/openmpi/mca_plm_slurm.la \ ${MPIDIR}/lib/openmpi/mca_plm_slurm.so \ ${MPIDIR}/lib/openmpi/mca_ras_slurm.la \ ${MPIDIR}/lib/openmpi/mca_ras_slurm.so \ ${MPIDIR}/share/openmpi/help-plm-slurm.txt \ ${MPIDIR}/share/openmpi/help-ras-slurm.txt post-patch: @${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/${MPIDIR}/libdata/pkgconfig|g' \ ${WRKSRC}/ompi/tools/wrappers/Makefile.am \ ${WRKSRC}/ompi/tools/wrappers/Makefile.in \ ${WRKSRC}/opal/tools/wrappers/Makefile.am \ ${WRKSRC}/opal/tools/wrappers/Makefile.in \ ${WRKSRC}/orte/tools/wrappers/Makefile.am \ ${WRKSRC}/orte/tools/wrappers/Makefile.in @${REINPLACE_CMD} 's|define MCA_hwloc_external_.*header "|&${LOCALBASE}/include/|' \ ${WRKSRC}/configure .include Index: head/net/openmpi2/files/patch-opal_mca_pmix_pmix112_pmix_src_sm_pmix__mmap.c =================================================================== --- head/net/openmpi2/files/patch-opal_mca_pmix_pmix112_pmix_src_sm_pmix__mmap.c (nonexistent) +++ head/net/openmpi2/files/patch-opal_mca_pmix_pmix112_pmix_src_sm_pmix__mmap.c (revision 457470) @@ -0,0 +1,20 @@ +--- opal/mca/pmix/pmix112/pmix/src/sm/pmix_mmap.c.orig 2017-12-28 19:05:48 UTC ++++ opal/mca/pmix/pmix112/pmix/src/sm/pmix_mmap.c +@@ -67,6 +67,9 @@ int _mmap_segment_create(pmix_sm_seg_t *sm_seg, const + if (0 != (rc = posix_fallocate(sm_seg->seg_id, 0, size))) { + pmix_output_verbose(2, pmix_globals.debug_output, + "sys call posix_fallocate(2) fail\n"); ++ if (EINVAL == rc) { ++ goto ftruncate; ++ } + if (ENOSPC == rc) { + rc = PMIX_ERR_OUT_OF_RESOURCE; + goto out; +@@ -86,6 +89,7 @@ int _mmap_segment_create(pmix_sm_seg_t *sm_seg, const + goto map_memory; + } + #endif ++ftruncate: + if (0 != ftruncate(sm_seg->seg_id, size)) { + pmix_output_verbose(2, pmix_globals.debug_output, + "sys call ftruncate(2) fail\n"); Property changes on: head/net/openmpi2/files/patch-opal_mca_pmix_pmix112_pmix_src_sm_pmix__mmap.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property