Integrate & clean up packages from LLNL hackathon.

This commit is contained in:
Todd Gamblin 2014-03-15 19:46:41 -07:00
parent 61fc2317d8
commit 74ec74d73c
5 changed files with 23 additions and 15 deletions

View File

@ -84,6 +84,9 @@ def mirror(parser, args):
shutil.move(stage.archive_file, final_dst)
tty.msg("Added %s to mirror" % final_dst)
except Exception, e:
tty.warn("Error while fetching %s. Skipping." % url, e.message)
finally:
stage.destroy()

View File

@ -117,7 +117,7 @@
# For no mirrors:
# mirrors = []
#
mirrors = ['file:///Users/gamblin2/mirror']
mirrors = []
# Important environment variables
SPACK_NO_PARALLEL_MAKE = 'SPACK_NO_PARALLEL_MAKE'

View File

@ -6,9 +6,10 @@ class Mrnet(Package):
url = "ftp://ftp.cs.wisc.edu/paradyn/mrnet/mrnet_4.0.0.tar.gz"
versions = { '4.0.0' : 'd00301c078cba57ef68613be32ceea2f', }
parallel = False
def install(self, spec, prefix):
configure("--prefix=%s" %prefix, "--enable-shared")
make(parallel=False)
make("install", parallel=False)
make()
make("install")

View File

@ -29,7 +29,6 @@ class PmgrCollective(Package):
MPI jobs."""
homepage = "http://www.sourceforge.net/projects/pmgrcollective"
url = "http://downloads.sourceforge.net/project/pmgrcollective/pmgrcollective/PMGR_COLLECTIVE-1.0/pmgr_collective-1.0.tgz"
# url = "http://downloads.sourceforge.net/project/pmgrcollective/pmgrcollective/PMGR_COLLECTIVE-1.0/pmgr_collective-1.0.tgz?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fpmgrcollective%2F%3Fsource%3Ddlp&ts=1394747864&use_mirror=iweb
versions = { '1.0' : '0384d008774274cc3fc7b4d810dfd07e' }

View File

@ -14,21 +14,26 @@ class Stat(Package):
depends_on('mrnet')
def install(self, spec, prefix):
my_mrnet = spec['mrnet']
my_graphlib = spec['graphlib']
#my_launchmon = spec['launchmon']
my_dyninst = spec['dyninst']
my_libdwarf = spec['libdwarf']
configure(
"--enable-gui",
"--prefix=%s" % prefix,
# TODO: this uses the launchmon package, but path is too long (see depends_on above) (Jira SPACK-21)
#configure("--enable-gui", "--prefix=%s" %prefix, "--with-launchmon=%s" %my_launchmon.prefix, "--with-mrnet=%s" %my_mrnet.prefix, "--with-graphlib=%s" %my_graphlib.prefix, "--with-stackwalker=%s" %my_dyninst.prefix, "--with-libdwarf=%s" %my_libdwarf.prefix)
# TODO: this uses the launchmon package, but path is
# too long (see depends_on above) (Jira SPACK-21)
# "--with-launchmon=%s" % spec['launchmon'].prefix,
# TODO: the configure line above is the proper one once Jira SPACK-21 is fixed
configure("--enable-gui", "--prefix=%s" %prefix, "--with-launchmon=/collab/usr/global/tools/launchmon/chaos_5_x86_64_ib/launchmon-1.0.0-20140312", "--with-mrnet=%s" %my_mrnet.prefix, "--with-graphlib=%s" %my_graphlib.prefix, "--with-stackwalker=%s" %my_dyninst.prefix, "--with-libdwarf=%s" %my_libdwarf.prefix)
# TODO: launchmon line above is the proper one once
# SPACK-21 is fixed
"--with-launchmon=/collab/usr/global/tools/launchmon/chaos_5_x86_64_ib/launchmon-1.0.0-20140312",
# TODO: remove once Jira SPACK-19 is fixed
"--with-mrnet=%s" % spec['mrnet'].prefix,
"--with-graphlib=%s" % spec['graphlib'].prefix,
"--with-stackwalker=%s" % spec['dyninst'].prefix,
"--with-libdwarf=%s" % spec['libdwarf'].prefix)
# TODO: remove once SPACK-19 is fixed
import shutil
shutil.copy2('/usr/bin/libtool', 'libtool')
make(parallel=False)
make("install")