summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMark W. Krentel <krentel@rice.edu>2019-01-09 14:40:15 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2019-01-09 14:40:15 -0600
commit1b991f9385e01b9530a35eaab92fe02a880ab543 (patch)
tree709121f27b937b3f388a6a3d3c6f3b49f6f11063 /var
parentb4dc73bed48f47310a35aa67ff4cb0355eeac827 (diff)
downloadspack-1b991f9385e01b9530a35eaab92fe02a880ab543.tar.gz
spack-1b991f9385e01b9530a35eaab92fe02a880ab543.tar.bz2
spack-1b991f9385e01b9530a35eaab92fe02a880ab543.tar.xz
spack-1b991f9385e01b9530a35eaab92fe02a880ab543.zip
elfutils: option to install elf.h header file (#10185)
* elfutils: option to install elf.h header file Add variant 'elfh' (default False) to install the elf.h header file to the include directory. This provides access to a newer version of elf.h and allows an elf application to build with the same elf.h that libelf.so was built with. Add version 0.175. * Drop the variant 'elfh' and always install elf.h instead.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/elfutils/package.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/elfutils/package.py b/var/spack/repos/builtin/packages/elfutils/package.py
index e7d2ef0134..daebffadc9 100644
--- a/var/spack/repos/builtin/packages/elfutils/package.py
+++ b/var/spack/repos/builtin/packages/elfutils/package.py
@@ -17,11 +17,11 @@ class Elfutils(AutotoolsPackage):
version of elfutils."""
homepage = "https://fedorahosted.org/elfutils/"
-
- url = "https://sourceware.org/elfutils/ftp/0.168/elfutils-0.168.tar.bz2"
+ url = "https://sourceware.org/elfutils/ftp/0.168/elfutils-0.168.tar.bz2"
list_url = "https://sourceware.org/elfutils/ftp"
list_depth = 1
+ version('0.175', '9a02b0382b78cc2d515fb950275d4c02')
version('0.174', '48bec24c0c8b2c16820326956dff9378')
version('0.173', '35decb1ebfb90d565e4c411bee4185cc')
version('0.170', '03599aee98c9b726c7a732a2dd0245d5')
@@ -32,7 +32,7 @@ class Elfutils(AutotoolsPackage):
variant('bzip2', default=False,
description='Support bzip2 compressed sections.')
variant('xz', default=False,
- description='Support xz compressed sections.')
+ description='Support xz (lzma) compressed sections.')
# Native language support from libintl.
variant('nls', default=True,
@@ -87,6 +87,11 @@ class Elfutils(AutotoolsPackage):
return args
+ # Install elf.h to include directory.
+ @run_after('install')
+ def install_elfh(self):
+ install(join_path('libelf', 'elf.h'), self.prefix.include)
+
# Provide location of libelf.so to match libelf.
@property
def libs(self):