summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Bergen <bergen@lanl.gov>2020-04-30 11:16:00 -0600
committerGitHub <noreply@github.com>2020-04-30 11:16:00 -0600
commit6d7daf0def6b8c432b5e79d48c96f29faf3d2db9 (patch)
treedb06be2b07c571ebd130a97342b90957165cb334
parentb55b7d5707cc61eea5c0c8425b62bc6175f4dbbb (diff)
downloadspack-6d7daf0def6b8c432b5e79d48c96f29faf3d2db9.tar.gz
spack-6d7daf0def6b8c432b5e79d48c96f29faf3d2db9.tar.bz2
spack-6d7daf0def6b8c432b5e79d48c96f29faf3d2db9.tar.xz
spack-6d7daf0def6b8c432b5e79d48c96f29faf3d2db9.zip
Resolves: https://github.com/spack/spack/issues/16394 (#16395)
Build problem with gcc 10.x
-rw-r--r--var/spack/repos/builtin/packages/gdbm/gdbm_gcc_10.patch11
-rw-r--r--var/spack/repos/builtin/packages/gdbm/package.py1
2 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/gdbm/gdbm_gcc_10.patch b/var/spack/repos/builtin/packages/gdbm/gdbm_gcc_10.patch
new file mode 100644
index 0000000000..6f04bfcb32
--- /dev/null
+++ b/var/spack/repos/builtin/packages/gdbm/gdbm_gcc_10.patch
@@ -0,0 +1,11 @@
+--- gdbm-1.18.1/src/parseopt.c 2018-05-30 03:39:15.000000000 -0600
++++ gdbm-1.18.1_new/src/parseopt.c 2020-04-30 10:29:52.869582500 -0600
+@@ -255,8 +255,6 @@
+ }
+
+ char *parseopt_program_name;
+-char *parseopt_program_doc;
+-char *parseopt_program_args;
+ const char *program_bug_address = "<" PACKAGE_BUGREPORT ">";
+ void (*parseopt_help_hook) (FILE *stream);
+
diff --git a/var/spack/repos/builtin/packages/gdbm/package.py b/var/spack/repos/builtin/packages/gdbm/package.py
index 8469cc4fb5..ae89387f24 100644
--- a/var/spack/repos/builtin/packages/gdbm/package.py
+++ b/var/spack/repos/builtin/packages/gdbm/package.py
@@ -26,6 +26,7 @@ class Gdbm(AutotoolsPackage, GNUMirrorPackage):
version('1.9', sha256='f85324d7de3777db167581fd5d3493d2daa3e85e195a8ae9afc05b34551b6e57')
depends_on("readline")
+ patch('gdbm_gcc_10.patch', when='%gcc@10:')
def configure_args(self):