[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#815866: bogofilter: FTBFS: ../../../src/tests/outputs/dump.load-2.out



 ./checks.14403.20160225T074548/dump.load-2.txt differ: char 87,
 line 3  
 FAIL: t.dump.load   want: "7.2 6.20030303 10.20030304",
 have:
 "1.2 6.20030303 10.20030304"
Message-Id: <20160417105512.037cd26ff4d994437ad52daa@gmail.com>
In-Reply-To: <1456386816.98074.531389194.0FDA61B6@webmail.messagingengine.com>
Reply-To: Chris Lamb <lamby@debian.org>
X-Mailer: Sylpheed 3.5.0 (GTK+ 2.24.30; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/mixed;
 boundary="Multipart=_Sun__17_Apr_2016_10_55_12_-0300_HrriNLXW0u9bV4=3"


--Multipart=_Sun__17_Apr_2016_10_55_12_-0300_HrriNLXW0u9bV4=3
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, 25 Feb 2016 08:53:36 +0100 Chris Lamb <lamby@debian.org> wrote:
> Source: bogofilter
> Version: 1.2.4+dfsg1-4
> Severity: serious
> Justification: fails to build from source
> User: reproducible-builds@lists.alioth.debian.org
> Usertags: ftbfs
> X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org
>=20
> Dear Maintainer,
>=20
> bogofilter fails to build from source in unstable/amd64:
>=20
>   [..]
>=20
>   /usr/bin/make  check-TESTS
>   make[6]: Entering directory '/home/lamby/temp/cdt.20160225074455.tfh937=
CMkZ/bogofilter-1.2.4+dfsg1/obj-db/src/tests'
>   PASS: t.query.config
>   Aborted (core dumped)
>   PASS: t.abort
>   PASS: t.env
>   PASS: t.ctype
>   PASS: t.bogodir
>   SKIP: t.leakfind
>   PASS: t.u_fpe
>   PASS: t.longoptions
>   PASS: t.ignore_spam_header
>   PASS: t.nullstatsprefix
>   PASS: t.integrity
>   PASS: t.integrity2
>   PASS: t.integrity3
>   PASS: t.passthrough-hb
>   PASS: t.escaped.html
>   PASS: t.escaped.url
>   PASS: t.base64
>   PASS: t.split
>   PASS: t.parsing
>   PASS: t.lexer
>   PASS: t.lexer.mbx
>   PASS: t.lexer.qpcr
>   PASS: t.lexer.eoh
>   PASS: t.spam.header.place
>   PASS: t.block.on.subnets
>   PASS: t.token.count
>   PASS: t.multiple.tokens.head
>   PASS: t.multiple.tokens.body
>   PASS: t.multiple.tokens.min.mul
>   PASS: t.encoding
>   PASS: t.rfc2047_broken
>   PASS: t.rfc2047_folded
>   PASS: t.crash-invalid-base64
>   PASS: t.message_addr
>   PASS: t.message_id
>   PASS: t.queue_id
>   ../../../src/tests/outputs/dump.load-2.out ./checks.14403.20160225T0745=
48/dump.load-2.txt differ: char 87, line 3
>   FAIL: t.dump.load
>   want: "7.2 6.20030303 10.20030304", have: "1.2 6.20030303 10.20030304"
>   FAIL: t.nonascii.replace
>   PASS: t.maint
>   PASS: t.robx
>   PASS: t.regtest

Hi,

I did a patch (3), to add an option to grep ('-a'). And
the package builds now. Attached the three patches in
case someone is in hurry.

As the package is orphan, I will clean some lintians and
update debhelper too.



regards,
--=20
Herbert Parentes Fortes Neto (hpfn)

--Multipart=_Sun__17_Apr_2016_10_55_12_-0300_HrriNLXW0u9bV4=3
Content-Type: text/x-diff;
 name="t_bulkmode-grep+a.patch"
Content-Disposition: attachment;
 filename="t_bulkmode-grep+a.patch"
Content-Transfer-Encoding: quoted-printable

Description: Option '-a' added to grep.
Author: Herbert Parentes Fortes Neto <hpfn@ig.com.br>
Last-Update: 2016-04-16
Index: bogofilter-1.2.4+dfsg1/src/tests/t.bulkmode
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- bogofilter-1.2.4+dfsg1.orig/src/tests/t.bulkmode
+++ bogofilter-1.2.4+dfsg1/src/tests/t.bulkmode
@@ -89,7 +89,7 @@ sort -u < "$TMPDIR"/$NAME.tmp > "$TMPDIR
 NAME=3D"bulk-double-2"
 for f in $pattern ; do
     t=3D"$TMPDIR/$(basename "$f")"
-    $GREP -v "^From " <"$f" > "$t"
+    $GREP -av "^From " <"$f" > "$t"
     map_rc "$BOGOFILTER -c \"$CFG\" -B \"$t\" \"$t\"" | \
 	sed 's@.*/@./inputs/@' >> "$TMPDIR"/$NAME.tmp
 done

--Multipart=_Sun__17_Apr_2016_10_55_12_-0300_HrriNLXW0u9bV4=3
Content-Type: text/x-diff;
 name="t_dump_load-grep+a.patch"
Content-Disposition: attachment;
 filename="t_dump_load-grep+a.patch"
Content-Transfer-Encoding: quoted-printable

Description: Option '-a' added to grep.
Author: Herbert Parentes Fortes Neto <hpfn@ig.com.br>
Last-Update: 2016-04-16
Index: bogofilter-1.2.4+dfsg1/src/tests/t.dump.load
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- bogofilter-1.2.4+dfsg1.orig/src/tests/t.dump.load
+++ bogofilter-1.2.4+dfsg1/src/tests/t.dump.load
@@ -31,13 +31,13 @@ $BOGOUTIL -C $LEN -d "$DATA" -y 20020815
 #update some words, including some old dates
 $BOGOUTIL -C $LEN -l "$DATA" -y 20021215 < "$srcdir"/inputs/$BASE.upd
 #dump database
-$BOGOUTIL -C $LEN -d "$DATA" | grep -v "^.ENCODING" | $SORT > "$TMPDIR"/du=
mp.load-2.txt
+$BOGOUTIL -C $LEN -d "$DATA" | grep -av "^.ENCODING" | $SORT > "$TMPDIR"/d=
ump.load-2.txt
=20
 #confirm that updated words have different counts and dates
 ( diff "$TMPDIR"/dump.load-1.txt "$TMPDIR"/dump.load-2.txt ; echo "" ) | $=
GREP | tee "$TMPDIR"/diff.1.2.txt >> "$OUT"
=20
 #dump wordlist, excluding oldest entries
-$BOGOUTIL -C $LEN -a 20020815 -d "$DATA" | grep -v "^.ENCODING" | $SORT > =
"$TMPDIR"/dump.load-3.txt
+$BOGOUTIL -C $LEN -a 20020815 -d "$DATA" | grep -av "^.ENCODING" | $SORT >=
 "$TMPDIR"/dump.load-3.txt
=20
 #confirm exclusion of oldest entries
 ( diff "$TMPDIR"/dump.load-2.txt "$TMPDIR"/dump.load-3.txt ; echo "" ) | $=
GREP | tee "$TMPDIR"/diff.2.3.txt >> "$OUT"

--Multipart=_Sun__17_Apr_2016_10_55_12_-0300_HrriNLXW0u9bV4=3
Content-Type: text/x-diff;
 name="t_nonascii_replace-grep+a.patch"
Content-Disposition: attachment;
 filename="t_nonascii_replace-grep+a.patch"
Content-Transfer-Encoding: quoted-printable

Description: Option '-a' added to egrep
Author: Herbert Parentes Fortes Neto <hpfn@ig.com.br>
LAst-Update: 2016-04-16
Index: bogofilter-1.2.4+dfsg1/src/tests/t.nonascii.replace
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- bogofilter-1.2.4+dfsg1.orig/src/tests/t.nonascii.replace
+++ bogofilter-1.2.4+dfsg1/src/tests/t.nonascii.replace
@@ -28,9 +28,9 @@ echo  	41 A4 BA B5 B5 20 31     20  30 2
 | ./dehex > "$TMPDIR"/input
=20
 $BOGOUTIL -C -l "$WORDLIST" < "$TMPDIR"/input
-$BOGOUTIL -C -d "$WORDLIST" | egrep -v "^(\.MSG_COUNT|\.ENCODING)" > "$TMP=
DIR"/output.1
+$BOGOUTIL -C -d "$WORDLIST" |  egrep -av "^(\.MSG_COUNT|\.ENCODING)" > "$T=
MPDIR"/output.1
 $BOGOUTIL -C -n -m "$WORDLIST" $UNICODE_NO
-$BOGOUTIL -C -d "$WORDLIST" | egrep -v "^(\.MSG_COUNT|\.ENCODING)" > "$TMP=
DIR"/output.2
+$BOGOUTIL -C -d "$WORDLIST" | egrep -av "^(\.MSG_COUNT|\.ENCODING)" > "$TM=
PDIR"/output.2
=20
 LEN1=3D`wc -l "$TMPDIR"/output.1 | $AWK '{print $1}'`
 LEN2=3D`wc -l "$TMPDIR"/output.2 | $AWK '{print $1}'`

--Multipart=_Sun__17_Apr_2016_10_55_12_-0300_HrriNLXW0u9bV4=3--

Attachment: pgpLtnnQu7SuZ.pgp
Description: PGP signature


Reply to: