From f2ad449ebb4ae479e9a104a5850967dff0d7850a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Janu=C5=A1?= Date: Fri, 7 Feb 2020 21:25:45 +0100 Subject: [PATCH] After upgrade GCC to version gcc version 10.0.1 20200130 (Red Hat 10.0.1-0.7) (GCC) in Fedora 32 build fails due to extern variables Patch gdbm_gcc_10.patch was added Resolves:https://bugzilla.redhat.com/show_bug.cgi?id=1799391 --- gdbm.spec | 12 +++++++++++- gdbm_gcc_10.patch | 17 +++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 gdbm_gcc_10.patch diff --git a/gdbm.spec b/gdbm.spec index 775e7a8..4df186d 100644 --- a/gdbm.spec +++ b/gdbm.spec @@ -3,7 +3,7 @@ Summary: A GNU set of database routines which use extensible hashing Name: gdbm Version: 1.18.1 -Release: 2%{?dist} +Release: 3%{?dist} Epoch: 1 License: GPLv3+ URL: http://www.gnu.org/software/gdbm/ @@ -15,6 +15,9 @@ BuildRequires: libtool BuildRequires: gettext BuildRequires: readline-devel + +Patch0:gdbm_gcc_10.patch + # when -libs subpkg was introduced Obsoletes: gdbm < 1:1.14.1-4 @@ -56,6 +59,8 @@ gdbm database library. You'll also need to install the gdbm package. %prep %setup -q +%patch0 -p1 + %build %configure \ --disable-static \ @@ -111,6 +116,11 @@ make check %{_mandir}/man3/* %changelog +* Fri Feb 7 2020 Filip Januš - 1.18.1-3 +- Resolves: #1799391 +- After upgrade GCC to version gcc version 10.0.1 build fails +- Patch gdbm_gcc_10.patch was added + * Tue Jan 28 2020 Fedora Release Engineering - 1:1.18.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/gdbm_gcc_10.patch b/gdbm_gcc_10.patch new file mode 100644 index 0000000..518482c --- /dev/null +++ b/gdbm_gcc_10.patch @@ -0,0 +1,17 @@ +Author:Filip Januš +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); +