]> git.pld-linux.org Git - packages/gdbm.git/commitdiff
fix build with gcc 10
authorJan Palus <atler@pld-linux.org>
Sun, 15 Nov 2020 22:16:24 +0000 (23:16 +0100)
committerJan Palus <atler@pld-linux.org>
Sun, 15 Nov 2020 22:16:24 +0000 (23:16 +0100)
gdbm-gcc10.patch [new file with mode: 0644]
gdbm.spec

diff --git a/gdbm-gcc10.patch b/gdbm-gcc10.patch
new file mode 100644 (file)
index 0000000..518482c
--- /dev/null
@@ -0,0 +1,17 @@
+Author:Filip Januš <fjanus@redhat.com>
+Date: 7.2.2020
+Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1799391
+After upgrade gcc to version gcc version 10.0.1 20200130 (Red Hat 10.0.1-0.7) (GCC) is not possible to build GDBM
+
+diff -ur gdbm-1.18.1/src/parseopt.c gdbm-1.18.1_new/src/parseopt.c
+--- gdbm-1.18.1/src/parseopt.c 2018-05-30 11:39:15.000000000 +0200
++++ gdbm-1.18.1_new/src/parseopt.c     2020-02-07 20:36:37.226390871 +0100
+@@ -255,8 +255,6 @@
+ }
\f
+ 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);
\f
index 1c7258565110c4c7cd42547d206fa81150d08656..2784ef3c5d91a2b2e127b327c374d4e49a4ca1c8 100644 (file)
--- a/gdbm.spec
+++ b/gdbm.spec
@@ -18,6 +18,7 @@ Source0:      http://ftp.gnu.org/gnu/gdbm/%{name}-%{version}.tar.gz
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-link-compat.patch
 Patch2:                %{name}-link.patch
+Patch3:                %{name}-gcc10.patch
 URL:           http://www.gnu.org/software/gdbm/
 BuildRequires: autoconf >= 2.69
 BuildRequires: automake >= 1:1.11
@@ -138,6 +139,7 @@ Biblioteka statyczna gdbm.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 %{__libtoolize}
This page took 0.118041 seconds and 4 git commands to generate.