Summary: | spamprobe (new ebuild) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | zhcnmccmzhdvfevooo |
Component: | New packages | Assignee: | Net-Mail Packages <net-mail+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | cummings, rizzo, robbat2 |
Priority: | High | Keywords: | EBUILD |
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | All | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
spamprobe ebuild
Updated ebuild and a patch to configure.in to allow db4 to work in the 0.9h version. actual ebuild modified (only a bit) patch from Matthew P. Cummings Updated Patch Updated Ebuild Updated Patch (again) newest ebuild newest patch |
Description
zhcnmccmzhdvfevooo
2003-04-12 05:19:19 UTC
Created attachment 10542 [details]
spamprobe ebuild
Created attachment 26133 [details]
Updated ebuild and a patch to configure.in to allow db4 to work in the 0.9h version.
I haven't tested this ebuild extensively, it's a modifed version of the one
posted earler, but it should compile with db4 now. Others who know more about
autoconf can check out how I did the testing for db4 and improve on it.
Any progress on getting this into the stable tree? no reaction from an real gentoo developer over a year.... not interested to get this into portage? its realy a good program and Matthew P. Cummings makes a real good update to the ebuild to make it db4 compatible Yes, please add this ebuild in stable tree. I use SpamProbe on several email servers, and an "official" ebuild would be very interesting. The ebuild work correctly with db 3.2 (not tested with 4.0, nor 4.1.) Could you please attach each file separately? I'll have a look at this, it looks interesting. Sorry for late response by the way. Here are coming my actual ebuild and the modified (only a bit) patch from Matthew P. Cummings. Created attachment 38889 [details]
actual ebuild
Created attachment 38890 [details, diff]
modified (only a bit) patch from Matthew P. Cummings
Hm, I get this output during final linking, no matter if the patch gets applied or not: g++ -march=pentium4 -Os -pipe -fomit-frame-pointer -funroll-loops -falign-functions=4 -o spamprobe spamprobe.o LockFile.o File.o FrequencyDB.o FrequencyDBImpl_bdb.o FrequencyDBImpl_dbm.o FrequencyDBImpl_cache.o FrequencyDBImpl_dual.o Message.o MessageFactory.o SpamFilter.o MimeHeader.o MimeLineReader.o MimeMessageReader.o Tokenizer.o util.o RegularExpression.o md5.o LockFD.o FrequencyDBImpl_hash.o FrequencyDBImpl_split.o hash.o WordArray.o MD5Digester.o FrequencyDBImpl_pbl.o -ldb-4.1 FrequencyDBImpl_bdb.o(.text+0x275): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)': : undefined reference to `db_create_4002' FrequencyDBImpl_bdb.o(.text+0x2b6): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)': : undefined reference to `db_strerror_4002' FrequencyDBImpl_bdb.o(.text+0x3c1): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)': : undefined reference to `db_strerror_4002' FrequencyDBImpl_bdb.o(.text+0x4f5): In function `FrequencyDBImpl_bdb::closeCursor()': : undefined reference to `db_strerror_4002' FrequencyDBImpl_bdb.o(.text+0x5be): In function `FrequencyDBImpl_bdb::closeDatabase()': : undefined reference to `db_strerror_4002' FrequencyDBImpl_bdb.o(.text+0x66e): In function `FrequencyDBImpl_bdb::closeDatabase()': : undefined reference to `db_strerror_4002' FrequencyDBImpl_bdb.o(.text+0x79c): more undefined references to `db_strerror_4002' follow collect2: ld returned 1 exit status make: *** [spamprobe] Error 1 My sys-libs/db is 4.2.52_p2 Created attachment 39137 [details, diff]
Updated Patch
Should now work with db-4.2.
But I only tested it with db-4.1 and db-4.2. Can anyone test it for the other?
Again, linking error when using db-4.0: g++ -march=pentium4 -Os -pipe -fomit-frame-pointer -funroll-loops -falign-functions=4 -o spamprobe spamprobe.o LockFile.o File.o FrequencyDB.o FrequencyDBImpl_bdb.o FrequencyDBImpl_dbm.o FrequencyDBImpl_cache.o FrequencyDBImpl_dual.o Message.o MessageFactory.o SpamFilter.o MimeHeader.o MimeLineReader.o MimeMessageReader.o Tokenizer.o util.o RegularExpression.o md5.o LockFD.o FrequencyDBImpl_hash.o FrequencyDBImpl_split.o hash.o WordArray.o MD5Digester.o FrequencyDBImpl_pbl.o -ldb-3 FrequencyDBImpl_bdb.o(.text+0x275): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)': : undefined reference to `db_create_4000' FrequencyDBImpl_bdb.o(.text+0x2b6): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)': : undefined reference to `db_strerror_4000' FrequencyDBImpl_bdb.o(.text+0x3bf): In function `FrequencyDBImpl_bdb::openDatabase(File const&, bool, int)': : undefined reference to `db_strerror_4000' FrequencyDBImpl_bdb.o(.text+0x4f5): In function `FrequencyDBImpl_bdb::closeCursor()': : undefined reference to `db_strerror_4000' FrequencyDBImpl_bdb.o(.text+0x5be): In function `FrequencyDBImpl_bdb::closeDatabase()': : undefined reference to `db_strerror_4000' FrequencyDBImpl_bdb.o(.text+0x66e): In function `FrequencyDBImpl_bdb::closeDatabase()': : undefined reference to `db_strerror_4000' FrequencyDBImpl_bdb.o(.text+0x79c): more undefined references to `db_strerror_4000' follow collect2: ld returned 1 exit status make: *** [spamprobe] Error 1 Actually, it tries to use db-3.2, as it doesn't even look for db-4.0 (according to configure output). Created attachment 39203 [details]
Updated Ebuild
The new ebuild is required for the new patch i wrote
Created attachment 39204 [details, diff]
Updated Patch (again)
Completly new patch from me, which is now using some makros from ac-archive, to
test installed db version.
I tested it now lokaly with this db versions:
sys-libs/db-4.2.52_p2
sys-libs/db-4.1.25_p1-r3
sys-libs/db-4.0.14-r3
sys-libs/db-3.2.9-r10
I hope it works also on other Systems well.
This is getting more and more fun: # emerge spamprobe Calculating dependencies ...done! >>> emerge (1 of 1) mail-filter/spamprobe-0.9h to / >>> md5 src_uri ;-) spamprobe-0.9h.tar.gz >>> Unpacking source... >>> Unpacking spamprobe-0.9h.tar.gz to /var/tmp/portage/spamprobe-0.9h/work >>> Source unpacked. >>> Unpacking spamprobe-0.9h.tar.gz to /var/tmp/portage/spamprobe-0.9h/work/spamprobe-0.9h * Applying spamprobe-0.9h-db4.patch... [ ok ] configure.in:124: warning: AC_ARG_PROGRAM invoked multiple times configure.in:8: error: possibly undefined macro: AC_DEFINE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:9: error: possibly undefined macro: AC_MSG_ERROR configure.in:46: error: possibly undefined macro: AC_TRY_LINK_FUNC The above happens when I use the patch from your latest attachment (attachment 39204 [details, diff]). I'm using autoconf 2.59 for this (when using 2.13, it bails out with "FATAL ERROR: Autoconf version 2.52 or higher is required for this script") Created attachment 39571 [details]
newest ebuild
Created attachment 39572 [details, diff]
newest patch
As problems have been resolved by private email and ebuild is now fully functional, I have committed spamprobe to CVS. Should hit your local mirror in few hours. Thanks a lot for work on the patch, Alexander! Btw, I've included spamprobe into my spamfighting toolchain, we'll see how well it performs over time. :) |