Update ecp st tau pdt (#8192)
* Updated MPI and TAU versions in the TAU package * Updated PDT versions * Added support for Python (+python), default to `False` * Cleaned up binutils, python, mpi usage. * Updated binutils install to add additional header files to the include/extra directory. * Resolving review problems with TAU and binutils packages. The binutils package was updated to include support for installing the ELF headers as a +headers variant. The TAU package was updated to use all known Spack dependencies.
This commit is contained in:
committed by
Todd Gamblin
parent
9252f7f957
commit
7d12ff6e16
@@ -4,6 +4,7 @@
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack import *
|
||||
import glob
|
||||
|
||||
|
||||
class Binutils(AutotoolsPackage):
|
||||
@@ -28,6 +29,7 @@ class Binutils(AutotoolsPackage):
|
||||
variant('gold', default=True, description="build the gold linker")
|
||||
variant('libiberty', default=False, description='Also install libiberty.')
|
||||
variant('nls', default=True, description='Enable Native Language Support')
|
||||
variant('headers', default=False, description='Install extra headers (e.g. ELF)')
|
||||
|
||||
patch('cr16.patch', when='@:2.29.1')
|
||||
patch('update_symbol-2.26.patch', when='@2.26')
|
||||
@@ -75,3 +77,17 @@ def configure_args(self):
|
||||
configure_args.append('--program-prefix=g')
|
||||
|
||||
return configure_args
|
||||
|
||||
@run_after('install')
|
||||
def install_headers(self):
|
||||
# some packages (like TAU) need the ELF headers, so install them
|
||||
# as a subdirectory in include/extras
|
||||
if '+headers' in self.spec:
|
||||
extradir = join_path(self.prefix.include, 'extra')
|
||||
mkdirp(extradir)
|
||||
# grab the full binutils set of headers
|
||||
install_tree('include', extradir)
|
||||
# also grab the headers from the bfd directory
|
||||
for current_file in glob.glob(join_path(self.build_directory,
|
||||
'bfd', '*.h')):
|
||||
install(current_file, extradir)
|
||||
|
||||
Reference in New Issue
Block a user