FreeBSD Bugzilla – Attachment 54324 Details for
Bug 82208
[MAINTAINER] mail/bogofilter: update to 0.94.14
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 3.69 KB, created by
Matthias Andree
on 2005-06-13 21:40:11 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Matthias Andree
Created:
2005-06-13 21:40:11 UTC
Size:
3.69 KB
patch
obsolete
>diff -ruN --exclude=CVS /usr/ports/mail/bogofilter/Makefile /usr/home/emma/ports/mail/bogofilter/Makefile >--- /usr/ports/mail/bogofilter/Makefile Sun Jun 5 23:15:08 2005 >+++ /usr/home/emma/ports/mail/bogofilter/Makefile Mon Jun 13 21:51:01 2005 >@@ -6,8 +6,8 @@ > # > > PORTNAME= bogofilter >-PORTVERSION= 0.94.13 >-PORTREVISION?= 1 >+PORTVERSION= 0.94.14 >+PORTREVISION?= 0 > CATEGORIES?= mail > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR= ${PORTNAME} >diff -ruN --exclude=CVS /usr/ports/mail/bogofilter/distinfo /usr/home/emma/ports/mail/bogofilter/distinfo >--- /usr/ports/mail/bogofilter/distinfo Tue May 31 16:14:44 2005 >+++ /usr/home/emma/ports/mail/bogofilter/distinfo Mon Jun 13 21:53:00 2005 >@@ -1,2 +1,2 @@ >-MD5 (bogofilter-0.94.13.tar.bz2) = 1b3c6f192a361f0825a3decaa7f65e6b >-SIZE (bogofilter-0.94.13.tar.bz2) = 724255 >+MD5 (bogofilter-0.94.14.tar.bz2) = 59fa3eefc510458f786c893de271b819 >+SIZE (bogofilter-0.94.14.tar.bz2) = 723279 >diff -ruN --exclude=CVS /usr/ports/mail/bogofilter/files/patch-alignment /usr/home/emma/ports/mail/bogofilter/files/patch-alignment >--- a/ports/mail/bogofilter/files/patch-alignment Thu Jan 1 01:00:00 1970 >+++ b/ports/mail/bogofilter/files/patch-alignment Mon Jun 13 21:50:25 2005 >@@ -0,0 +1,42 @@ >+--- a/src/datastore_tdb.c 31 May 2005 15:04:05 -0000 1.51.22.1 >++++ b/src/datastore_tdb.c 10 Jun 2005 08:19:30 -0000 1.51.22.2 >+@@ -268,20 +268,34 @@ >+ dbv_t dbv_key, dbv_data; >+ userdata_t *hookdata = userdata; >+ >+- /* Question: Is there a way to avoid using malloc/free? */ >+- >+- /* switch to "dbv_t *" variables */ >++ /* TDB happily returns data from odd addresses, so we need to >++ * memcpy() everything to properly aligned storage (malloc() is >++ * fine) if our callee wishes to perform word-sized access - without >++ * memcpy(), the callee will die with SIGBUS (SPARC, m68k) or get >++ * extremely slow (i386). */ >++ >++ /* XXX FIXME: Possible optimization if this function is only used by >++ * one caller at a time (i. e. no threads): allocate buffers >++ * statically and reuse them as long as they are of sufficient size >++ * and reallocate otherwise. */ >++ >++ /* copy key */ >++ /* XXX FIXME: do we really need to use C-string compatible keys? >++ * Looks wasteful. */ >+ dbv_key.leng = key.dsize; >+ dbv_key.data = xmalloc(dbv_key.leng+1); >+ memcpy(dbv_key.data, key.dptr, dbv_key.leng); >+ ((char *)dbv_key.data)[dbv_key.leng] = '\0'; >+ >+- dbv_data.data = data.dptr; >+- dbv_data.leng = data.dsize; /* read count */ >++ /* copy data */ >++ dbv_data.leng = data.dsize; >++ dbv_data.data = xmalloc(dbv_data.leng); >++ memcpy(dbv_data.data, data.dptr, dbv_data.leng); >+ >+ /* call user function */ >+ rc = hookdata->hook(&dbv_key, &dbv_data, hookdata->userdata); >+ >++ xfree(dbv_data.data); >+ xfree(dbv_key.data); >+ >+ return rc; >diff -ruN --exclude=CVS /usr/ports/mail/bogofilter/files/patch-fdleak /usr/home/emma/ports/mail/bogofilter/files/patch-fdleak >--- a/ports/mail/bogofilter/files/patch-fdleak Thu Jan 1 01:00:00 1970 >+++ b/ports/mail/bogofilter/files/patch-fdleak Mon Jun 13 21:50:04 2005 >@@ -0,0 +1,14 @@ >+--- a/src/datastore_db_trans.c 8 Jun 2005 12:18:59 -0000 1.31.4.1 >++++ b/src/datastore_db_trans.c 9 Jun 2005 07:54:35 -0000 1.31.4.2 >+@@ -943,8 +943,10 @@ >+ #else >+ r = ENOENT; >+ #endif >+- if (r == DB_RUNRECOVERY) >++ if (r == DB_RUNRECOVERY) { >++ dbe->close(dbe, 0); >+ return T_ENABLED; >++ } >+ >+ if (r == ENOENT) { >+ struct stat st; >--- a/ports/mail/bogofilter-qdbm/Makefile Wed Jun 8 22:34:33 2005 >+++ b/ports/mail/bogofilter-qdbm/Makefile Mon Jun 13 21:51:25 2005 >@@ -6,7 +6,7 @@ > # > > PORTNAME= bogofilter >-PORTREVISION= 1 >+PORTREVISION= 0 > CATEGORIES= mail > PKGNAMESUFFIX= -qdbm
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 82208
: 54324