petsc: explicitly disable X11 (#2533)

otherwise petsc may pickup libX11 on login nodes during config/build,
but libX11 may not be available on computation nodes.
This commit is contained in:
Denis Davydov 2016-12-09 17:43:38 +01:00 committed by Todd Gamblin
parent 3f8613ae42
commit 4d0ea423fb

View File

@ -70,7 +70,7 @@ class Petsc(Package):
# Virtual dependencies # Virtual dependencies
# Git repository needs sowing to build Fortran interface # Git repository needs sowing to build Fortran interface
depends_on('sowing', when='@develop') depends_on('sowing', when='@develop')
depends_on('blas') depends_on('blas')
depends_on('lapack') depends_on('lapack')
depends_on('mpi', when='+mpi') depends_on('mpi', when='+mpi')
@ -130,8 +130,9 @@ def mpi_dependent_options(self):
def install(self, spec, prefix): def install(self, spec, prefix):
options = ['--with-ssl=0', options = ['--with-ssl=0',
'--with-x=0',
'--download-c2html=0', '--download-c2html=0',
'--download-sowing=0', '--download-sowing=0',
'--download-hwloc=0'] '--download-hwloc=0']
options.extend(self.mpi_dependent_options()) options.extend(self.mpi_dependent_options())
options.extend([ options.extend([