summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/packages/elfutils/package.py26
-rw-r--r--var/spack/packages/libelf/package.py2
-rw-r--r--var/spack/packages/mpich/package.py1
-rw-r--r--var/spack/packages/scorep/package.py15
4 files changed, 35 insertions, 9 deletions
diff --git a/var/spack/packages/elfutils/package.py b/var/spack/packages/elfutils/package.py
new file mode 100644
index 0000000000..926d234584
--- /dev/null
+++ b/var/spack/packages/elfutils/package.py
@@ -0,0 +1,26 @@
+from spack import *
+
+class Elfutils(Package):
+ """elfutils is a collection of various binary tools such as
+ eu-objdump, eu-readelf, and other utilities that allow you to
+ inspect and manipulate ELF files. Refer to Table 5.Tools Included
+ in elfutils for Red Hat Developer for a complete list of binary
+ tools that are distributed with the Red Hat Developer Toolset
+ version of elfutils."""
+
+ homepage = "https://fedorahosted.org/elfutils/"
+
+ version('0.163',
+ git='git://git.fedorahosted.org/git/elfutils.git',
+ tag='elfutils-0.163')
+
+ provides('elf')
+
+ def install(self, spec, prefix):
+ autoreconf = which('autoreconf')
+ autoreconf('-if')
+
+ configure('--prefix=%s' % prefix, '--enable-maintainer-mode')
+ make()
+ make("install")
+
diff --git a/var/spack/packages/libelf/package.py b/var/spack/packages/libelf/package.py
index bf2fefabd5..9338b8f393 100644
--- a/var/spack/packages/libelf/package.py
+++ b/var/spack/packages/libelf/package.py
@@ -36,6 +36,8 @@ class Libelf(Package):
version('0.8.13', '4136d7b4c04df68b686570afa26988ac')
version('0.8.12', 'e21f8273d9f5f6d43a59878dc274fec7')
+ provides('elf')
+
def install(self, spec, prefix):
configure("--prefix=" + prefix,
"--enable-shared",
diff --git a/var/spack/packages/mpich/package.py b/var/spack/packages/mpich/package.py
index 6aa8f2eca4..b6b2dfde21 100644
--- a/var/spack/packages/mpich/package.py
+++ b/var/spack/packages/mpich/package.py
@@ -38,7 +38,6 @@ class Mpich(Package):
provides('mpi@:3', when='@3:')
provides('mpi@:1', when='@1:')
-
def setup_dependent_environment(self, module, spec, dep_spec):
"""For dependencies, make mpicc's use spack wrapper."""
os.environ['MPICH_CC'] = 'cc'
diff --git a/var/spack/packages/scorep/package.py b/var/spack/packages/scorep/package.py
index 32a772e3db..f013bd1cbb 100644
--- a/var/spack/packages/scorep/package.py
+++ b/var/spack/packages/scorep/package.py
@@ -1,11 +1,10 @@
# FIXME: Add copyright statement
from spack import *
-from contextlib import closing
class Scorep(Package):
- """The Score-P measurement infrastructure is a highly scalable and
- easy-to-use tool suite for profiling, event tracing, and online
+ """The Score-P measurement infrastructure is a highly scalable and
+ easy-to-use tool suite for profiling, event tracing, and online
analysis of HPC applications."""
# FIXME: add a proper url for your package's homepage here.
@@ -20,7 +19,7 @@ class Scorep(Package):
depends_on("mpi")
depends_on("papi")
# depends_on("otf2@1.2:1.2.1") # only Score-P 1.2.x
- depends_on("otf2")
+ depends_on("otf2")
depends_on("opari2")
depends_on("cube@4.2:4.2.3")
@@ -53,12 +52,12 @@ MPI_CXXFLAGS=-fPIC
# Use a custom compiler configuration, otherwise the score-p
# build system messes with spack's compiler settings.
# Create these three files in the build directory
- with closing(open("platform-backend-user-provided", "w")) as backend_file:
+ with open("platform-backend-user-provided", "w") as backend_file:
backend_file.write(self.backend_user_provided)
- with closing(open("platform-frontend-user-provided", "w")) as frontend_file:
+ with open("platform-frontend-user-provided", "w") as frontend_file:
frontend_file.write(self.frontend_user_provided)
- with closing(open("platform-mpi-user-provided", "w")) as mpi_file:
- mpi_file.write(self.mpi_user_provided)
+ with open("platform-mpi-user-provided", "w") as mpi_file:
+ mpi_file.write(self.mpi_user_provided)
configure_args = ["--prefix=%s" % prefix,
"--with-custom-compilers",