Re: [cvs] bogofilter NEWS,1.527,1.528 Makefile.am,1.173,1.174

Matthias Andree <[email protected]> Wed, 28 Dec 2005 21:56:25 +0100
Newsgroups gmane.mail.bogofilter.devel
Message-ID <[email protected]>
David Relson <[email protected]> writes:

> Al has such systems available.  I wonder if we can enlist him to build
> bogofilter-sqlite-static rpms for us.

Well, the problem is the systems that Al offered (RHL7.1, RHL9.0) are
past their end-of-life and haven't seen Errata (how Red Hat call their
security and other important) fixes in years.

Nobody should be running any such system any more, and I'm not going to
support (either way) such a system.

Find attached my current Makefile.am diff vs. CVS HEAD.

-- 
Matthias Andree

_______________________________________________
Bogofilter-dev mailing list
[email protected]
http://www.bogofilter.org/mailman/listinfo/bogofilter-dev
Makefile.am-rpm.patch (text/x-patch, 1.2 KB)
Index: Makefile.am
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/Makefile.am,v
retrieving revision 1.175
diff -u -r1.175 Makefile.am
--- Makefile.am	27 Dec 2005 23:59:16 -0000	1.175
+++ Makefile.am	28 Dec 2005 20:55:54 -0000
@@ -23,14 +23,16 @@
 		GETTING.STARTED \
 		NEWS.0 \
 		README.cvs \
-		RELEASE.NOTES
+		RELEASE.NOTES \
+		install-staticdblibs.h
 
 .PHONY:	check
 
 rpm:	dist
-	@echo "This target requires that Berkeley DB and SQLite3 are installed."
-	$(RPMBUILD) --define 'bogostatic 1' --sign -ta $(distdir).tar.gz
-	$(RPMBUILD) --define 'with_sqlite 1' --sign -tb $(distdir).tar.gz
+	@if test ! -f /opt/db-4.2-lean/lib/libdb.a || test ! -f /opt/sqlite-3-lean/lib/libsqlite3.a ; then \
+	  echo >&2 "Please run the install-staticdblibs.sh script first." ; exit 1 ; fi
+	LDFLAGS="-Wl,--as-needed" CPPFLAGS="-D__NO_CTYPE -I/opt/db-4.2-lean/include" LIBS="/opt/db-4.2-lean/lib/libdb.a" $(RPMBUILD) --sign -ta $(distdir).tar.gz
+	LDFLAGS="-Wl,--as-needed" CPPFLAGS="-D__NO_CTYPE -I/opt/sqlite-3-lean" LIBS="/opt/sqlite-3-lean/lib/libsqlite3.a" $(RPMBUILD) --define 'with_sqlite 1' --sign -tb $(distdir).tar.gz
 
 cvs-check:
 	rm -rf $(PACKAGE)-$(VERSION)-export