Add elfutils.
This commit is contained in:
26
var/spack/packages/elfutils/package.py
Normal file
26
var/spack/packages/elfutils/package.py
Normal file
@@ -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")
|
||||||
|
|
||||||
@@ -36,6 +36,8 @@ class Libelf(Package):
|
|||||||
version('0.8.13', '4136d7b4c04df68b686570afa26988ac')
|
version('0.8.13', '4136d7b4c04df68b686570afa26988ac')
|
||||||
version('0.8.12', 'e21f8273d9f5f6d43a59878dc274fec7')
|
version('0.8.12', 'e21f8273d9f5f6d43a59878dc274fec7')
|
||||||
|
|
||||||
|
provides('elf')
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
configure("--prefix=" + prefix,
|
configure("--prefix=" + prefix,
|
||||||
"--enable-shared",
|
"--enable-shared",
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ class Mpich(Package):
|
|||||||
provides('mpi@:3', when='@3:')
|
provides('mpi@:3', when='@3:')
|
||||||
provides('mpi@:1', when='@1:')
|
provides('mpi@:1', when='@1:')
|
||||||
|
|
||||||
|
|
||||||
def setup_dependent_environment(self, module, spec, dep_spec):
|
def setup_dependent_environment(self, module, spec, dep_spec):
|
||||||
"""For dependencies, make mpicc's use spack wrapper."""
|
"""For dependencies, make mpicc's use spack wrapper."""
|
||||||
os.environ['MPICH_CC'] = 'cc'
|
os.environ['MPICH_CC'] = 'cc'
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
# FIXME: Add copyright statement
|
# FIXME: Add copyright statement
|
||||||
|
|
||||||
from spack import *
|
from spack import *
|
||||||
from contextlib import closing
|
|
||||||
|
|
||||||
class Scorep(Package):
|
class Scorep(Package):
|
||||||
"""The Score-P measurement infrastructure is a highly scalable and
|
"""The Score-P measurement infrastructure is a highly scalable and
|
||||||
@@ -53,11 +52,11 @@ def install(self, spec, prefix):
|
|||||||
# Use a custom compiler configuration, otherwise the score-p
|
# Use a custom compiler configuration, otherwise the score-p
|
||||||
# build system messes with spack's compiler settings.
|
# build system messes with spack's compiler settings.
|
||||||
# Create these three files in the build directory
|
# 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)
|
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)
|
frontend_file.write(self.frontend_user_provided)
|
||||||
with closing(open("platform-mpi-user-provided", "w")) as mpi_file:
|
with open("platform-mpi-user-provided", "w") as mpi_file:
|
||||||
mpi_file.write(self.mpi_user_provided)
|
mpi_file.write(self.mpi_user_provided)
|
||||||
|
|
||||||
configure_args = ["--prefix=%s" % prefix,
|
configure_args = ["--prefix=%s" % prefix,
|
||||||
|
|||||||
Reference in New Issue
Block a user