summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnehring <snehring@users.noreply.github.com>2022-04-27 03:11:02 -0500
committerGitHub <noreply@github.com>2022-04-27 02:11:02 -0600
commit739f040fa8ce8c934c8d65b053b4a37d3796f8f9 (patch)
tree3fcddaf60668a2a18fc6de205fa7a99c656b16c8
parentd5fc859f46627f55ff178d1ce9a0f6fe8b42d4c6 (diff)
downloadspack-739f040fa8ce8c934c8d65b053b4a37d3796f8f9.tar.gz
spack-739f040fa8ce8c934c8d65b053b4a37d3796f8f9.tar.bz2
spack-739f040fa8ce8c934c8d65b053b4a37d3796f8f9.tar.xz
spack-739f040fa8ce8c934c8d65b053b4a37d3796f8f9.zip
bucky: fix compile errors with newer gccs (#30314)
-rw-r--r--var/spack/repos/builtin/packages/bucky/package.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/bucky/package.py b/var/spack/repos/builtin/packages/bucky/package.py
index 000235e7f1..015cf0257f 100644
--- a/var/spack/repos/builtin/packages/bucky/package.py
+++ b/var/spack/repos/builtin/packages/bucky/package.py
@@ -14,14 +14,13 @@ class Bucky(MakefilePackage):
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"
+ maintainers = ['snehring']
version('1.4.4', sha256='1621fee0d42314d9aa45d0082b358d4531e7d1d1a0089c807c1b21fbdc4e4592')
# Compilation requires gcc
conflicts('%cce')
conflicts('%apple-clang')
- conflicts('%clang')
- conflicts('%intel')
conflicts('%nag')
conflicts('%pgi')
conflicts('%xl')
@@ -29,6 +28,10 @@ class Bucky(MakefilePackage):
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):
with working_dir('src'):
mkdirp(prefix.bin)
@@ -37,3 +40,8 @@ class Bucky(MakefilePackage):
install_tree('data', prefix.data)
install_tree('doc', prefix.doc)
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)