summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRobert Mijakovic <robert.mijakovic@gmail.com>2021-04-09 19:46:48 +0200
committerGitHub <noreply@github.com>2021-04-09 10:46:48 -0700
commit9e6ef0e697228b291812c800061050f45b240199 (patch)
tree705faa26989bf6a93afc16300a13f6cd23d2bbf8 /var
parentca5c2de517ca2c8210d60cbbf72df2700a0c11ef (diff)
downloadspack-9e6ef0e697228b291812c800061050f45b240199.tar.gz
spack-9e6ef0e697228b291812c800061050f45b240199.tar.bz2
spack-9e6ef0e697228b291812c800061050f45b240199.tar.xz
spack-9e6ef0e697228b291812c800061050f45b240199.zip
Flatbuffers: fixes for GCC 10+ (#22829)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/flatbuffers/package.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flatbuffers/package.py b/var/spack/repos/builtin/packages/flatbuffers/package.py
index bee101b3b7..69041f54d1 100644
--- a/var/spack/repos/builtin/packages/flatbuffers/package.py
+++ b/var/spack/repos/builtin/packages/flatbuffers/package.py
@@ -28,6 +28,22 @@ class Flatbuffers(CMakePackage):
depends_on('python@3.6:', when='+python', type=('build', 'run'))
extends('python', when='+python')
+ # Fixes "Class-memaccess" compilation error in test
+ # https://github.com/google/flatbuffers/issues/5930
+ # Possibly affects earlier releases but I haven't tried to apply it.
+ patch('https://raw.githubusercontent.com/Flamefire/easybuild-easyconfigs/'
+ '72ba2a1a0d44fbd96ded9f279373ef804bdf3903/easybuild/easyconfigs/f/'
+ 'flatbuffers/flatbuffers-1.12.0_replace-usage-of-memset.patch',
+ sha256='094a98b5a7debbc2c60c2b235942c79e505ec76f9281f87c95d15e9ad8a97c52',
+ when='@1.12.0:%gcc@10:')
+ # Silences false positive "-Wstringop-overflow" on GCC 10+
+ # https://github.com/google/flatbuffers/issues/5950
+ # Possibly affects earlier releases but I haven't tried to apply it.
+ patch('https://patch-diff.githubusercontent.com/raw/google/flatbuffers/pull/'
+ '6020.patch',
+ sha256='4a9a18abc776407f3f97e02c40f349cfb24fe7ddb41df952271d894777a31c88',
+ when='@1.12.0:%gcc@10:')
+
@run_after('install')
def python_install(self):
if '+python' in self.spec: