Re: GerH source distro at hebbut.net: HOW TO compile/compare/merge for Bill et al
"Steve" <[email protected]>
| Newsgroups | gmane.mail.spam.crm114 |
|---|---|
| Message-ID | <[email protected]> |
-------- Original-Nachricht -------- > Datum: Wed, 26 Mar 2008 16:28:59 +0100 > Von: "Ger Hobbelt" <[email protected]> > An: crm114 <[email protected]> > Betreff: [Crm114-general] GerH source distro at hebbut.net: HOW TO compile/compare/merge for Bill et al > Consider this the QUICKREF/HOWTO for when you like to: > [snip] > > Basic 'I want a new crm': > > ./configure && make && make test > > Heureka! I did it! Got now a full working ebuild on Gentoo using your new build system :) Had to patch src/crm114_sysincludes.h and src/crmregex_tre.c in order to get everything working as expected. I did not fiddle long around about the error in regex_t not having a value member. I just removed the (anyway informational) part of the code: --- src/crmregex_tre.c 2008-03-25 17:24:38.000000000 +0100 +++ src/crmregex_tre.c.new 2008-03-26 22:19:25.999327250 +0100 @@ -281,8 +281,8 @@ memcpy(preg, ppreg_temp, rtsize); if (internal_trace) fprintf(stderr, " About to return:\n" - " preg->re_nsub=%d preg->value=%p, i=%d, status=%d\n", - (int)preg->re_nsub, preg->value, i, regex_cache[i].status); + " preg->re_nsub=%d, i=%d, status=%d\n", + (int)preg->re_nsub, i, regex_cache[i].status); return regex_cache[i].status; } #endif //CRM_REGEX_CACHESIZE == 0 The ebuild is still "hackerish" but at least I can build and install :) Thanks for that! I almost forgot! GCC version: Using built-in specs. Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.3.1_pre20080324/work/gcc-4.3.1-20080324/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.1-pre20080324 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.1-pre20080324/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1-pre20080324 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1-pre20080324/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1-pre20080324/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.1-pre20080324/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --disable-multilib --enable-libmudflap --disable-li bssp --disable-libgcj --with-arch=i686 --enable-languages=c,c++,treelang --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.or g/ --with-pkgversion= --enable-linux-futex Thread model: posix gcc version 4.3.1-pre20080324 built 20080326 (Gentoo SVN ebuild) rev. 133534 () glibc version: GNU C Library stable release version 2.7, by Roland McGrath et al. Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.3.1-pre20080324 built 20080326 (Gentoo SVN ebuild) rev. 133534. Compiled on a Linux >>2.6.23-rc6<< system on 2008-03-26. Available extensions: C stubs add-on version 2.1.2 crypt add-on version 2.1 by Michael Glad and others Gentoo patchset 1.7 GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al Support for some architectures added on, not maintained in glibc core. BIND-8.2.3-T5B For bug reporting instructions, please see: <http://www.gnu.org/software/libc/bugs.html>. Because of the gcc version I had as well to patch normalizemime in order to be able to compile it with gcc 4.3.1: --- normalizemime.cc 2007-03-20 06:46:18.000000000 +0100 +++ normalizemime.cc.new 2008-03-24 14:56:09.820275709 +0100 @@ -58,6 +58,8 @@ #include <map> #include <string> +#include <sys/types.h> + #include <regex.h> #include <assert.h> #include <ctype.h> @@ -1490,6 +1492,8 @@ { "X-Spam-", // Added by SpamAssasin for example "X-CRM114-", // Added by CRM114 + "X-OSBF-Lua", // Added by OSBF-Lua + "X-DSPAM-", // Added by DSPAM "X-Virus-", // Added by ClamAV "X-UID:", // added by Pine mail user agent "Status:", // added by Pine mail user agent @@ -1584,9 +1588,12 @@ \n\ These are the headers that are removed from the messages:\n\ X-Spam-*\n\ -X-CRM114-Status:\n\ -X-CRM114-Version:\n\ -Status: \n\ +X-CRM114-*\n\ +X-OSBF-Lua-*\n\ +X-DSPAM-*\n\ +X-Virus-*\n\ +X-UID:\n\ +Status:\n\ X-Status:\n\ X-Keywords:\n\ \n\ > NOTE: I have NOT tested 'make install' as I consider that a security > issue: I run an *experimental* crm-filter setup and development on a > single box, so I got to be careful there. Sorry. > I did quickly. On my Gentoo box 'make install' is violating the sandbox by trying to write to /usr/share/emacs/site-lisp/crm114-mode.el even if I told make install to use DESTDIR=.... > And when you want to generate a distro an' all or changed something > autocomfy and influential or just feel like you need a break: > > ./bootstrap && ./configure && make distclean && ./configure && make > && make test && make distribution > > and enjoy the backlog fireworks in your console window. > > > I like it. > > > DREAM: CUnit or other automated test harness for crm114 PLUS > mailfilter/mailreaver operational testing. Ahhhh... a man can dream. > How many interns would it take to get me this? Get me Lewinsky! > > -- > Met vriendelijke groeten / Best regards, > > Ger Hobbelt > // Steve -- Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! http://games.entertainment.gmx.net/de/entertainment/games/free ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace