Bug#598940: libkinosearch-perl: FTBFS on armel: testfailures

Colin Watson cjwatson at ubuntu.com
Tue Sep 6 11:23:22 UTC 2011


tags 598940 patch
user ubuntu-devel at lists.ubuntu.com
usertags 598940 ubuntu-patch oneiric
thanks

On Sun, Oct 03, 2010 at 01:34:34PM +0200, Cyril Brulebois wrote:
> your package FTBFS on armel due to test failures. Since there are many
> of them, I'm just pointing to the full build logs:
>   https://buildd.debian.org/status/package.php?p=libkinosearch-perl

This is because armel is too slow to create enough threads in time.
It's easily worked around:

  * Slow down lock_free_registry test to let armel keep up (closes:
    #598940).

diff -Nru libkinosearch-perl-0.313/debian/patches/series libkinosearch-perl-0.313/debian/patches/series
--- libkinosearch-perl-0.313/debian/patches/series	2010-05-06 15:55:20.000000000 +0100
+++ libkinosearch-perl-0.313/debian/patches/series	2011-09-06 12:18:54.000000000 +0100
@@ -1 +1,2 @@
 fix-pod-spelling.patch
+slow-thread-creation.patch
diff -Nru libkinosearch-perl-0.313/debian/patches/slow-thread-creation.patch libkinosearch-perl-0.313/debian/patches/slow-thread-creation.patch
--- libkinosearch-perl-0.313/debian/patches/slow-thread-creation.patch	1970-01-01 01:00:00.000000000 +0100
+++ libkinosearch-perl-0.313/debian/patches/slow-thread-creation.patch	2011-09-06 12:20:56.000000000 +0100
@@ -0,0 +1,22 @@
+Description: Slow down lock_free_registry test to let armel keep up
+ Test runs on armel don't manage to create all the threads before the target
+ time.  Add a couple of seconds so that this architecture can keep up.
+Author: Colin Watson <cjwatson at ubuntu.com>
+Bug-Debian: http://bugs.debian.org/598940
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/791240
+Forwarded: no
+Last-Update: 2011-09-06
+
+Index: b/t/binding/038-lock_free_registry.t
+===================================================================
+--- a/t/binding/038-lock_free_registry.t
++++ b/t/binding/038-lock_free_registry.t
+@@ -41,7 +41,7 @@
+ 
+ my @threads;
+ 
+-my $target_time = time() + .5;
++my $target_time = time() + 2.5;
+ my @num_sets = map { [ shuffle( 1 .. 10000 ) ] } 1 .. 5;
+ for my $num ( 1 .. 5 ) {
+     my $delay = $target_time - time();

Thanks,

-- 
Colin Watson                                       [cjwatson at ubuntu.com]





More information about the pkg-perl-maintainers mailing list