Date: Mon, 11 Apr 2011 11:59:47 +0100 (BST) From: Klaus Aehlig <aehlig@linta.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/156331: [patch] math/parmetis -- support (optional) build against openmpi instead of mpich2 Message-ID: <20110411105947.4BAF739835@kta1c10.sesnet.soton.ac.uk> Resent-Message-ID: <201104111100.p3BB0MgZ016469@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110411105947.4BAF739835>