Bug#591182: dpkg: FTBFS: 5 test failures on mips

2010-08-01 Thread Raphael Hertzog
Hi,

On Sat, 31 Jul 2010, Jonathan Nieder wrote:
> Philipp Kern wrote:
> > Your package failed to build from source when scheduled as a binNMU.  Is it
> > possible that it cannot cope with that fact and the + in the testcase 
> > harness
> > is actually messing things up?
> 
> Makes sense to me.

Confirmed, tested your patch and commited it to the sid branch, thanks.

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer ◈ [Flattr=20693]

Follow my Debian News ▶ http://RaphaelHertzog.com (English)
  ▶ http://RaphaelHertzog.fr (Français)



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#591182: dpkg: FTBFS: 5 test failures on mips

2010-07-31 Thread Jonathan Nieder
tags 591182 + patch
quit

Philipp Kern wrote:

> Your package failed to build from source when scheduled as a binNMU.  Is it
> possible that it cannot cope with that fact and the + in the testcase harness
> is actually messing things up?

Makese sense to me.

Untested.

Signed-off-by: Jonathan Nieder 
---
diff --git a/src/t/100_dpkg_divert.t b/src/t/100_dpkg_divert.t
index 8d7b58d..4f0fb41 100644
--- a/src/t/100_dpkg_divert.t
+++ b/src/t/100_dpkg_divert.t
@@ -236,7 +236,7 @@ install_diversions('');
 
 system("touch $testdir/foo");
 call_divert(['--rename', '--add', "$testdir/foo"],
-expect_stdout_like => 
qr,Adding.*local.*diversion.*$testdir/foo.*$testdir/foo.distrib,,
+expect_stdout_like => 
qr,Adding.*local.*diversion.*\Q$testdir\E/foo.*\Q$testdir\E/foo.distrib,,
 expect_stderr => '');
 ok(-e "$testdir/foo.distrib", "foo diverted");
 ok(!-e "$testdir/foo", "foo diverted");
@@ -250,7 +250,7 @@ install_diversions('');
 
 system("touch $testdir/foo");
 call_divert(['--add', "$testdir/foo"],
-expect_stdout_like => 
qr,Adding.*local.*diversion.*$testdir/foo.*$testdir/foo.distrib,,
+expect_stdout_like => 
qr,Adding.*local.*diversion.*\Q$testdir\E/foo.*\Q$testdir\E/foo.distrib,,
 expect_stderr => '');
 ok(!-e "$testdir/foo.distrib", "foo diverted");
 ok(-e "$testdir/foo", "foo diverted");
@@ -408,7 +408,7 @@ call_divert(["--package", "baz", "--divert", 
"$testdir/foo.my", "--remove", "$te
 expect_failure => 1, expect_stderr_like =>qr/mismatch on 
(package|divert-to)/);
 
 call_divert(["--divert", "$testdir/foo.distrib", "--remove", "$testdir/foo"],
-expect_stdout_like => qr,Removing.*$testdir/foo,);
+expect_stdout_like => qr,Removing.*\Q$testdir\E/foo,);
 diversions_eq(< qr,Removing.*$testdir/bar,);
+expect_stdout_like => qr,Removing.*\Q$testdir\E/bar,);
 diversions_eq(< qr,Removing.*$testdir/foo,, expect_stderr => 
'');
+expect_stdout_like => qr,Removing.*\Q$testdir\E/foo,, 
expect_stderr => '');
 ok(-e "$testdir/foo.distrib");
 ok(!-e "$testdir/foo");
 diversions_eq($diversions_added_foo_local);
-- 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#591182: dpkg: FTBFS: 5 test failures on mips

2010-07-31 Thread Philipp Kern
Source: dpkg
Version: 1.15.8.2
Severity: serious

Your package failed to build from source when scheduled as a binNMU.  Is it
possible that it cannot cope with that fact and the + in the testcase harness
is actually messing things up?  From a quick glance it looks like it, because
it should match otherwise.

> PATH="../src:../scripts:../utils:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/usr/games"
>  \
> LC_ALL=C \
>  \
> srcdir=../../src builddir=. \
> PERL5LIB=../../scripts PERL_DL_NONLAZY=1 \
> PERL5OPT= \
> /usr/bin/perl -I../../scripts \
>   -MExtUtils::Command::MM -e "test_harness(0, '.')" \
>   ../../src/t/100_dpkg_divert.t
> 
> #   Failed test '--rename --add 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo
>  stdout'
> #   at ../../src/t/100_dpkg_divert.t line 71.
> #   'Adding 'local diversion of 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo
>  to 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.distrib'
> # '
> # doesn't match 
> '(?-xism:Adding.*local.*diversion.*/build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.*/build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.distrib)'
> 
> #   Failed test '--add 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo
>  stdout'
> #   at ../../src/t/100_dpkg_divert.t line 71.
> #   'Adding 'local diversion of 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo
>  to 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.distrib'
> # '
> # doesn't match 
> '(?-xism:Adding.*local.*diversion.*/build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.*/build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.distrib)'
> 
> #   Failed test '--divert 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.distrib
>  --remove 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo
>  stdout'
> #   at ../../src/t/100_dpkg_divert.t line 71.
> #   'Removing 'local diversion of 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo
>  to 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.distrib'
> # '
> # doesn't match 
> '(?-xism:Removing.*/build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo)'
> 
> #   Failed test '--remove 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/bar
>  stdout'
> #   at ../../src/t/100_dpkg_divert.t line 71.
> #   'Removing 'local diversion of 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/bar
>  to 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/bar.distrib'
> # '
> # doesn't match 
> '(?-xism:Removing.*/build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/bar)'
> 
> #   Failed test '--test --rename --remove 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo
>  stdout'
> #   at ../../src/t/100_dpkg_divert.t line 71.
> #   'Removing 'local diversion of 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo
>  to 
> /build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo.distrib'
> # '
> # doesn't match 
> '(?-xism:Removing.*/build/buildd-dpkg_1.15.8.2+b1-mips-k7dKwO/dpkg-1.15.8.2+b1/build-tree/src/t.tmp/950_dpkg_divert/testdir/foo)'
> # Looks like you failed 5 tests of 235.
> ../../src/t/100_dpkg_divert.t .. 
> Dubious, test returned 5 (wstat 1280, 0x500)
> Failed 5/235 subtests 
>   (less 17 skipped subtests: 213 okay)
> 
> Test Summary Report
> ---
> ../../src/t/100_dpkg_divert.t (Wstat: 1280 Tests: 235 Failed: 5)
>   Failed tests:  97, 103, 183, 189, 200
>   Non-zero exit status: 5
> Files=1, Tests=235,  6 wallclock secs ( 0.42 usr  0.04 sys +  1.56 cusr  3.80 
> csys =  5.82 CPU)
> Result: FAIL
> Failed 1/1 test programs. 5/235 subtests failed.
> make[3]: *** [check-local] Erro