diff options
author | Marius Bakke <marius@gnu.org> | 2020-12-15 23:10:29 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2020-12-17 00:15:48 +0100 |
commit | 420ddd0a91d50b3d37003638af8dc19bbef02c01 (patch) | |
tree | 7495bc48541928cd6745dea1a5c066b379e18a6a /gnu/packages/patches/gdbm-gcc-compat.patch | |
parent | 04496dc5743d54134405c604ca863ce913283a0e (diff) | |
download | guix-420ddd0a91d50b3d37003638af8dc19bbef02c01.tar.gz guix-420ddd0a91d50b3d37003638af8dc19bbef02c01.zip |
gnu: gdbm: Fix build with GCC 10.
* gnu/packages/patches/gdbm-gcc-compat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/dbm.scm (gdbm)[source](patches): New field.
Diffstat (limited to 'gnu/packages/patches/gdbm-gcc-compat.patch')
-rw-r--r-- | gnu/packages/patches/gdbm-gcc-compat.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/patches/gdbm-gcc-compat.patch b/gnu/packages/patches/gdbm-gcc-compat.patch new file mode 100644 index 0000000000..c2e187834a --- /dev/null +++ b/gnu/packages/patches/gdbm-gcc-compat.patch @@ -0,0 +1,16 @@ +Fix build failure with GCC 10 due to duplicate definitions. It can be +reproduced on older compilers with -fno-common. + +Fix taken from Gentoo: https://bugs.gentoo.org/705898 + +--- a/src/parseopt.c ++++ b/src/parseopt.c +@@ -255,8 +255,6 @@ print_option_descr (const char *descr, size_t lmargin, size_t rmargin) + } + + 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); + |