summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnehring <snehring@users.noreply.github.com>2021-12-21 11:39:26 -0600
committerGitHub <noreply@github.com>2021-12-21 18:39:26 +0100
commit389beaef97e8aac59680c83d084fd7c07336f577 (patch)
tree770c3996a47142219b19183c69efbdbf3dc92404
parent8ebad6963b04e406acd1ce4bd8fb247157d5bf1f (diff)
downloadspack-389beaef97e8aac59680c83d084fd7c07336f577.tar.gz
spack-389beaef97e8aac59680c83d084fd7c07336f577.tar.bz2
spack-389beaef97e8aac59680c83d084fd7c07336f577.tar.xz
spack-389beaef97e8aac59680c83d084fd7c07336f577.zip
structure: fixing build errors with gcc10+ removing unused dep (#28097)
-rw-r--r--var/spack/repos/builtin/packages/structure/package.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/structure/package.py b/var/spack/repos/builtin/packages/structure/package.py
index a5880171eb..5c8f1f8a9d 100644
--- a/var/spack/repos/builtin/packages/structure/package.py
+++ b/var/spack/repos/builtin/packages/structure/package.py
@@ -15,12 +15,14 @@ class Structure(MakefilePackage):
version('2.3.4', sha256='f2b72b9189a514f53e921bbdc1aa3dbaca7ac34a8467af1f972c7e4fc9c0bb37')
- depends_on('jdk', type=('build', 'run'))
-
def url_for_version(self, version):
url = "http://web.stanford.edu/group/pritchardlab/structure_software/release_versions/v{0}/structure_kernel_source.tar.gz"
return url.format(version)
+ @when('%gcc@10:')
+ def edit(self, spec, prefix):
+ filter_file(r'(CFLAGS =.*$)', '\\1 -fcommon', 'Makefile')
+
def install(self, spec, prefix):
mkdirp(prefix.bin)
install('structure', prefix.bin)