ports/156331: [patch] math/parmetis -- support (optional) build against openmpi instead of mpich2

Klaus Aehlig aehlig at linta.de
Mon Apr 11 11:00:30 UTC 2011


>Number:         156331
>Category:       ports
>Synopsis:       [patch] math/parmetis -- support (optional) build against openmpi instead of mpich2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 11 11:00:21 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Klaus Aehlig
>Release:        FreeBSD 8.2-STABLE amd64
>Organization:
>Environment:
System: FreeBSD kta1c10.sesnet.soton.ac.uk 8.2-STABLE FreeBSD 8.2-STABLE #0: Tue Mar 8 20:30:12 GMT 2011 root at kta1c10.kk.soton.ac.uk:/usr/obj/usr/src/sys/KTA1C10 amd64

>Description:
	math/parmetis builds against mpich2 as MPI-implementation. This
	makes it unsuitable in a project where openmpi is used. The sources,
	however, are quite agnostic towards the underlying MPI implementation.

	So I suggest to make the port honor the WITH_OPENMPI environment
	variable.

>How-To-Repeat:
>Fix:

	apply the following patch

--- parmetis.diff begins here ---
diff -ruN parmetis.orig/Makefile parmetis/Makefile
--- parmetis.orig/Makefile	2011-04-11 11:52:28.000000000 +0100
+++ parmetis/Makefile	2011-04-11 11:53:28.000000000 +0100
@@ -14,8 +14,14 @@
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	A package for parallel (mpi) unstructured graph partitioning
 
+.if !defined(WITH_OPENMPI)
 RUN_DEPENDS=	${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2
 BUILD_DEPENDS=	${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
+.else
+RUN_DEPENDS=	${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
+BUILD_DEPENDS=	${LOCALBASE}/mpi/openmpi/bin/mpicc:${PORTSDIR}/net/openmpi
+MAKE_ARGS += CC=${LOCALBASE}/mpi/openmpi/bin/mpicc LD=${LOCALBASE}/mpi/openmpi/bin/mpicc 
+.endif
 
 ALL_TARGET=
 
--- parmetis.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list