[packages/gdbm] fix build with gcc 10

atler atler at pld-linux.org
Sun Nov 15 23:17:13 CET 2020


commit 06a94a25ee1b4257604c98598c0eebdc7ae6359c
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Nov 15 23:16:24 2020 +0100

    fix build with gcc 10

 gdbm-gcc10.patch | 17 +++++++++++++++++
 gdbm.spec        |  2 ++
 2 files changed, 19 insertions(+)
---
diff --git a/gdbm.spec b/gdbm.spec
index 1c72585..2784ef3 100644
--- 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}
diff --git a/gdbm-gcc10.patch b/gdbm-gcc10.patch
new file mode 100644
index 0000000..518482c
--- /dev/null
+++ b/gdbm-gcc10.patch
@@ -0,0 +1,17 @@
+Author:Filip Januš <fjanus at 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 @@
+ }
+ 

+ 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);
+ 

================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gdbm.git/commitdiff/06a94a25ee1b4257604c98598c0eebdc7ae6359c



More information about the pld-cvs-commit mailing list