diff --git a/gdbm-1.8.3-filestruct.patch b/gdbm-1.8.3-filestruct.patch new file mode 100644 index 0000000..3e27db8 --- /dev/null +++ b/gdbm-1.8.3-filestruct.patch @@ -0,0 +1,12 @@ +diff -up gdbm-1.8.3/gdbm.proto.filestruct gdbm-1.8.3/gdbm.proto +--- gdbm-1.8.3/gdbm.proto.filestruct 2011-01-13 09:54:03.004907454 +0100 ++++ gdbm-1.8.3/gdbm.proto 2011-01-13 09:54:24.881714834 +0100 +@@ -60,7 +60,7 @@ typedef struct { + + + /* The file information header. This is good enough for most applications. */ +-typedef struct {int dummy[10];} *GDBM_FILE; ++typedef struct __GDBM_FILE_STRUC {int dummy[10];} *GDBM_FILE; + + /* Determine if the C(++) compiler requires complete function prototype */ + #ifndef __P diff --git a/gdbm.spec b/gdbm.spec index 36f0096..fafc0cd 100644 --- a/gdbm.spec +++ b/gdbm.spec @@ -1,7 +1,7 @@ Summary: A GNU set of database routines which use extensible hashing Name: gdbm Version: 1.8.3 -Release: 7%{?dist} +Release: 8%{?dist} Source: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz # Prevent gdbm from storing uninitialized memory content # to database files. @@ -23,6 +23,9 @@ Patch2: gdbm-1.8.3-shortread.patch # ndbm did not use to lock files, see dbm_clearerr(3p)) # * locks are degrading performance a lot on NFS shares Patch3: gdbm-1.8.3-ndbmlock.patch +# Prevent compilation of c++ files that use gdbm from warnings. +# g++ compilator complained about the use of anonymous class +Patch4: gdbm-1.8.3-filestruct.patch License: GPLv2+ URL: http://www.gnu.org/software/gdbm/ Group: System Environment/Libraries @@ -60,6 +63,7 @@ gdbm database library. You'll also need to install the gdbm package. %patch1 -p1 -b .fhs %patch2 -p1 -b .shortread %patch3 -p1 -b .ndbmlock +%patch4 -p1 -b .filestruct libtoolize --force --copy aclocal @@ -114,6 +118,9 @@ fi %{_mandir}/man3/* %changelog +* Thu Jan 13 2011 Jan Horak - 1.8.3-8 +- Added filestruct patch (#668178) + * Mon Jan 03 2011 Karel Klic - 1.8.3-7 - Removed BuildRoot tag - Removed %%clean section