diff options
author | Donnie Berkholz <spyderous@gentoo.org> | 2004-04-19 19:28:14 +0000 |
---|---|---|
committer | Donnie Berkholz <spyderous@gentoo.org> | 2004-04-19 19:28:14 +0000 |
commit | 960337e3428ad20bc111466d00b8d95ac91f5763 (patch) | |
tree | af000623ccea79334b19167d46e76aae6c6fd139 /sys-cluster | |
parent | add in urgent support for mailwrapper (Manifest recommit) (diff) | |
download | gentoo-2-960337e3428ad20bc111466d00b8d95ac91f5763.tar.gz gentoo-2-960337e3428ad20bc111466d00b8d95ac91f5763.tar.bz2 gentoo-2-960337e3428ad20bc111466d00b8d95ac91f5763.zip |
Move SMP check from global scope to pkg_setup() (#48352).
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/mpiexec/ChangeLog | 6 | ||||
-rw-r--r-- | sys-cluster/mpiexec/mpiexec-0.74-r1.ebuild | 19 | ||||
-rw-r--r-- | sys-cluster/mpiexec/mpiexec-0.75.ebuild | 18 |
3 files changed, 26 insertions, 17 deletions
diff --git a/sys-cluster/mpiexec/ChangeLog b/sys-cluster/mpiexec/ChangeLog index 111addecc209..e0791fee48ad 100644 --- a/sys-cluster/mpiexec/ChangeLog +++ b/sys-cluster/mpiexec/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sys-cluster/mpiexec # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpiexec/ChangeLog,v 1.3 2004/03/25 13:02:41 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpiexec/ChangeLog,v 1.4 2004/04/19 19:28:14 spyderous Exp $ + + 19 Apr 2004; Donnie Berkholz <spyderous@gentoo.org>; mpiexec-0.74-r1.ebuild, + mpiexec-0.75.ebuild: + Move SMP check from global scope to pkg_setup() (#48352). *mpiexec-0.74-r1 (25 Mar 2004) diff --git a/sys-cluster/mpiexec/mpiexec-0.74-r1.ebuild b/sys-cluster/mpiexec/mpiexec-0.74-r1.ebuild index b2cc7730a5be..844fe0fb0749 100644 --- a/sys-cluster/mpiexec/mpiexec-0.74-r1.ebuild +++ b/sys-cluster/mpiexec/mpiexec-0.74-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpiexec/mpiexec-0.74-r1.ebuild,v 1.1 2004/03/25 13:02:41 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpiexec/mpiexec-0.74-r1.ebuild,v 1.2 2004/04/19 19:28:14 spyderous Exp $ #S=${WORKDIR}/mpiexec-${PV} DESCRIPTION="replacement for mpirun, integrates MPI with PBS." @@ -10,6 +10,7 @@ IUSE="" DEPEND="virtual/glibc sys-cluster/openpbs + sys-cluster/mpich" RDEPEND="net-misc/openssh" @@ -17,13 +18,15 @@ SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" -# Do we have a SMP enabled kernel? -if [ ! -z "`uname -v | grep SMP`" ] -then - export SMP=1 -else - export SMP=0 -fi +pkg_setup() { + # Do we have a SMP enabled kernel? + if [ ! -z "`uname -v | grep SMP`" ] + then + export SMP=1 + else + export SMP=0 + fi +} src_compile() { #for SMP machines, disable the use of mpich/p4 shared memory diff --git a/sys-cluster/mpiexec/mpiexec-0.75.ebuild b/sys-cluster/mpiexec/mpiexec-0.75.ebuild index c15f73e7f145..f90370e4e7f2 100644 --- a/sys-cluster/mpiexec/mpiexec-0.75.ebuild +++ b/sys-cluster/mpiexec/mpiexec-0.75.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpiexec/mpiexec-0.75.ebuild,v 1.1 2004/03/25 13:02:41 tantive Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-cluster/mpiexec/mpiexec-0.75.ebuild,v 1.2 2004/04/19 19:28:14 spyderous Exp $ #S=${WORKDIR}/mpiexec-${PV} DESCRIPTION="replacement for mpirun, integrates MPI with PBS." @@ -17,13 +17,15 @@ SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" -# Do we have a SMP enabled kernel? -if [ ! -z "`uname -v | grep SMP`" ] -then - export SMP=1 -else - export SMP=0 -fi +pkg_setup() { + # Do we have a SMP enabled kernel? + if [ ! -z "`uname -v | grep SMP`" ] + then + export SMP=1 + else + export SMP=0 + fi +} src_compile() { #for SMP machines, disable the use of mpich/p4 shared memory |