[cvs] bogofilter NEWS,1.527,1.528 Makefile.am,1.173,1.174
David Relson
relson at osagesoftware.com
Wed Dec 28 05:15:22 CET 2005
On Wed, 28 Dec 2005 01:00:10 +0100
Matthias Andree wrote:
> David Relson <relson at users.sourceforge.net> writes:
>
> > - "Version 3*") rpm $(adddef) --sign $(buildopt) $(distdir).tar.gz ;; \
> > - *) rpmbuild $(adddef) --sign $(buildopt) $(distdir).tar.gz ;; \
> > + "Version 3*") rpm --define 'bogostatic 1' --sign -ta $(distdir).tar.gz ; \
> > + rpm --define 'with_sqlite 1' --sign -ta $(distdir).tar.gz ;; \
> > + *) rpmbuild --define 'bogostatic 1' --sign -ta $(distdir).tar.gz ; \
> > + rpmbuild --define 'with_sqlite 1' --sign -ta $(distdir).tar.gz ;; \
> > esac
>
> Regarding the with_sqlite... -ta change, I don't believe we need to
> build the source RPM twice, they should have identical contents, and the
> with_sqlite builds should use -tb rather than -ta.
>
> Unpack both .src.rpm files with
>
> rpm2cpio bogofilter-whatever.src.rpm \
> | (mkdir /tar/get && cd /tar/get && cpio -div)
>
> and compare the output directories.
>
> Another thing, on SUSE all of the database libraries (libdb.a and
> libsqlite3.a) require -lpthread for the static link (we don't have
> autoconf support for that). I'll try to get autoconf support for that.
Since the default build is for BerkeleyDB, having "with_sqlite 1" is
useful for producing bogofilter-sqlite. Perhaps we should rename the
default binary rpm as "bogofilter-db4" and the static binary to
"bogofilter-db4-static"?
More information about the bogofilter-dev
mailing list