bucky: fix compile errors with newer gccs (#30314)
This commit is contained in:
parent
d5fc859f46
commit
739f040fa8
@ -14,14 +14,13 @@ class Bucky(MakefilePackage):
|
|||||||
|
|
||||||
homepage = "https://www.stat.wisc.edu/~ane/bucky/index.html"
|
homepage = "https://www.stat.wisc.edu/~ane/bucky/index.html"
|
||||||
url = "http://dstats.net/download/http://www.stat.wisc.edu/~ane/bucky/v1.4/bucky-1.4.4.tgz"
|
url = "http://dstats.net/download/http://www.stat.wisc.edu/~ane/bucky/v1.4/bucky-1.4.4.tgz"
|
||||||
|
maintainers = ['snehring']
|
||||||
|
|
||||||
version('1.4.4', sha256='1621fee0d42314d9aa45d0082b358d4531e7d1d1a0089c807c1b21fbdc4e4592')
|
version('1.4.4', sha256='1621fee0d42314d9aa45d0082b358d4531e7d1d1a0089c807c1b21fbdc4e4592')
|
||||||
|
|
||||||
# Compilation requires gcc
|
# Compilation requires gcc
|
||||||
conflicts('%cce')
|
conflicts('%cce')
|
||||||
conflicts('%apple-clang')
|
conflicts('%apple-clang')
|
||||||
conflicts('%clang')
|
|
||||||
conflicts('%intel')
|
|
||||||
conflicts('%nag')
|
conflicts('%nag')
|
||||||
conflicts('%pgi')
|
conflicts('%pgi')
|
||||||
conflicts('%xl')
|
conflicts('%xl')
|
||||||
@ -29,6 +28,10 @@ class Bucky(MakefilePackage):
|
|||||||
|
|
||||||
build_directory = 'src'
|
build_directory = 'src'
|
||||||
|
|
||||||
|
def edit(self, spec, prefix):
|
||||||
|
with working_dir(self.build_directory):
|
||||||
|
filter_file('g++', spack_cxx, 'makefile', string=True)
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
with working_dir('src'):
|
with working_dir('src'):
|
||||||
mkdirp(prefix.bin)
|
mkdirp(prefix.bin)
|
||||||
@ -37,3 +40,8 @@ def install(self, spec, prefix):
|
|||||||
install_tree('data', prefix.data)
|
install_tree('data', prefix.data)
|
||||||
install_tree('doc', prefix.doc)
|
install_tree('doc', prefix.doc)
|
||||||
install_tree('scripts', prefix.scripts)
|
install_tree('scripts', prefix.scripts)
|
||||||
|
|
||||||
|
def flag_handler(self, name, flags):
|
||||||
|
if self.spec.satisfies('%gcc@5:') and name.lower() == 'cxxflags':
|
||||||
|
flags.append(self.compiler.cxx98_flag)
|
||||||
|
return (flags, None, None)
|
||||||
|
Loading…
Reference in New Issue
Block a user