added patch to build with new glibc
This commit is contained in:
parent
71eebc8c37
commit
b8dc138edb
40
bogofilter-1.1.5.glibc.patch
Normal file
40
bogofilter-1.1.5.glibc.patch
Normal file
@ -0,0 +1,40 @@
|
||||
--- src/datastore_db.c 2006-07-02 23:38:55.000000000 +0200
|
||||
+++ src/datastore_db.c.new 2007-08-23 12:21:37.000000000 +0200
|
||||
@@ -181,7 +181,7 @@
|
||||
else
|
||||
file = bfp->filename;
|
||||
|
||||
- ret = db->open(db,
|
||||
+ ret = (db->open)(db,
|
||||
#if DB_AT_LEAST(4,1)
|
||||
0, /* TXN handle - we use autocommit instead */
|
||||
#endif
|
||||
--- src/datastore_db_trans.c 2006-05-29 16:28:00.000000000 +0200
|
||||
+++ src/datastore_db_trans.c.new 2007-08-23 12:21:37.000000000 +0200
|
||||
@@ -215,7 +215,7 @@
|
||||
* environment in heap memory, so we don't need to remove it.
|
||||
*/
|
||||
|
||||
- e = dbe->open(dbe, bfp->dirname,
|
||||
+ e = (dbe->open)(dbe, bfp->dirname,
|
||||
dbenv_defflags | local_flags | DB_RECOVER, DS_MODE);
|
||||
if (e != 0) {
|
||||
print_error(__FILE__, __LINE__, "Cannot recover environment \"%s\": %s",
|
||||
@@ -502,7 +502,7 @@
|
||||
|
||||
flags |= DB_CREATE | dbenv_defflags;
|
||||
|
||||
- ret = env->dbe->open(env->dbe, bfp->dirname, flags, DS_MODE);
|
||||
+ ret = (env->dbe->open)(env->dbe, bfp->dirname, flags, DS_MODE);
|
||||
if (ret != 0) {
|
||||
env->dbe->close(env->dbe, 0);
|
||||
print_error(__FILE__, __LINE__, "DB_ENV->open, err: %d, %s", ret, db_strerror(ret));
|
||||
@@ -873,7 +873,7 @@
|
||||
* effort, we'll just check for DB_RUNRECOVERY */
|
||||
|
||||
#if DB_AT_LEAST(3,2)
|
||||
- r = dbe->open(dbe, bfp->dirname, DB_JOINENV, DS_MODE);
|
||||
+ r = (dbe->open)(dbe, bfp->dirname, DB_JOINENV, DS_MODE);
|
||||
#else
|
||||
r = ENOENT;
|
||||
#endif
|
@ -8,6 +8,7 @@ URL: http://bogofilter.sourceforge.net/
|
||||
Source: http://downloads.sourceforge.net/bogofilter/bogofilter-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: flex db4-devel gsl-devel
|
||||
Patch: bogofilter-1.1.5.glibc.patch
|
||||
|
||||
%description
|
||||
Bogofilter is a Bayesian spam filter. In its normal mode of
|
||||
@ -20,6 +21,7 @@ by sites that process a lot of mail.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch
|
||||
|
||||
%build
|
||||
%configure
|
||||
@ -54,6 +56,7 @@ by sites that process a lot of mail.
|
||||
%changelog
|
||||
* Thu Aug 23 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-2
|
||||
- rebuilt
|
||||
- added patch to build with new glibc
|
||||
|
||||
* Wed Mar 07 2007 Adrian Reber <adrian@lisas.de> - 1.1.5-1
|
||||
- updated to 1.1.5
|
||||
|
Loading…
Reference in New Issue
Block a user