Source: spamassassin
Version: 3.4.1-1
Severity: wishlist
Tags: patch

Please consider applying the attached patch to run the upstream
test suite during build.

libberkeleydb-perl is required for t/bayesbdb.t
netbase is required for t/dnsbl_sc_meta.t (needs /etc/protocols)

The patch also fixes a bug that the build-indep-stamp target is run
twice during the build.

Thanks,
Felix
diff -Nru spamassassin-3.4.1/debian/control spamassassin-3.4.1/debian/control
--- spamassassin-3.4.1/debian/control	2014-11-29 22:50:20.000000000 +0100
+++ spamassassin-3.4.1/debian/control	2015-05-02 10:31:46.000000000 +0200
@@ -4,7 +4,7 @@
 Maintainer: Noah Meyerhans <no...@debian.org>
 Build-Depends: debhelper (>= 7), perl, libssl-dev,
  libhtml-parser-perl (>= 3.24), libnet-dns-perl (>= 0.34), libnetaddr-ip-perl,
- dh-systemd
+ dh-systemd, libberkeleydb-perl, netbase
 Standards-Version: 3.9.6
 Homepage: http://www.spamassassin.org/
 Vcs-Svn: svn://svn.debian.org/svn/collab-maint/deb-maint/spamassassin/trunk
diff -Nru spamassassin-3.4.1/debian/rules spamassassin-3.4.1/debian/rules
--- spamassassin-3.4.1/debian/rules	2014-11-29 22:50:20.000000000 +0100
+++ spamassassin-3.4.1/debian/rules	2015-05-02 10:59:05.000000000 +0200
@@ -64,11 +64,14 @@
 
 build-indep: build-indep-stamp
 #build-indep-stamp: configure debian/po/templates.pot
-build-indep-stamp: configure
+build-indep-stamp: configure-stamp
 
 	dh_testdir
 
 	$(MAKE) CFOPTIMIZE="$(CFLAGS)" CFCCFLAGS="" CFLIBS="" CFLDFLAGS="$(LDFLAGS)"
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	$(MAKE) test
+endif
 
 	pod2man sa-awl.raw sa-awl.1p
 	pod2man sa-check_spamd.raw sa-check_spamd.1p

Reply via email to