summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Reber <adrian@fedoraproject.org>2007-08-23 10:40:27 +0000
committerAdrian Reber <adrian@fedoraproject.org>2007-08-23 10:40:27 +0000
commitb8dc138edba3b35232f4fcd720aa04f7f5444217 (patch)
tree70a84a491b11d280e5af50c7404f15cb43568568
parent71eebc8c376c49d164f5510143d63e6bf89b7e52 (diff)
downloadbogofilter_EL6-b8dc138edba3b35232f4fcd720aa04f7f5444217.tar.gz
added patch to build with new glibcbogofilter-1_1_5-2_fc8F-8-startF-8-split
-rw-r--r--bogofilter-1.1.5.glibc.patch40
-rw-r--r--bogofilter.spec3
2 files changed, 43 insertions, 0 deletions
diff --git a/bogofilter-1.1.5.glibc.patch b/bogofilter-1.1.5.glibc.patch
new file mode 100644
index 0000000..f02e2f1
--- /dev/null
+++ b/bogofilter-1.1.5.glibc.patch
@@ -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
diff --git a/bogofilter.spec b/bogofilter.spec
index 7c4fcbb..7c75fb2 100644
--- a/bogofilter.spec
+++ b/bogofilter.spec
@@ -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