r61939 - in /trunk/libdbd-sqlite3-perl/debian: changelog patches/0001-Don-t-clean-temporary-files-in-child-processes.patch patches/series

carnil-guest at users.alioth.debian.org carnil-guest at users.alioth.debian.org
Mon Aug 23 08:17:34 UTC 2010


Author: carnil-guest
Date: Mon Aug 23 08:17:20 2010
New Revision: 61939

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=61939
Log:
Add 0001-Don-t-clean-temporary-files-in-child-processes.patch patch:
Fixes FTBFS due failure in tests. Thanks to Niko Tyni for the
investigation and patch (Closes: #591111).

Added:
    trunk/libdbd-sqlite3-perl/debian/patches/0001-Don-t-clean-temporary-files-in-child-processes.patch
Modified:
    trunk/libdbd-sqlite3-perl/debian/changelog
    trunk/libdbd-sqlite3-perl/debian/patches/series

Modified: trunk/libdbd-sqlite3-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-sqlite3-perl/debian/changelog?rev=61939&op=diff
==============================================================================
--- trunk/libdbd-sqlite3-perl/debian/changelog (original)
+++ trunk/libdbd-sqlite3-perl/debian/changelog Mon Aug 23 08:17:20 2010
@@ -1,11 +1,17 @@
 libdbd-sqlite3-perl (1.29-3) UNRELEASED; urgency=low
 
+  [ Ansgar Burchardt ]
   * Use perl_dbi addon for dh.
     * Bump build-dependency on libdbi-perl to >= 1.612.
   * No longer run release tests.
     * Remove build-dep on libpod-simple-perl, libperl-minimumversion-perl,
       libtest-cpan-meta-perl, libtest-minimumversion-perl, libtest-pod-perl.
   * Bump Standards-Version to 3.9.0 (no changes).
+
+  [ Salvatore Bonaccorso ]
+  * Add 0001-Don-t-clean-temporary-files-in-child-processes.patch patch:
+    Fixes FTBFS due failure in tests. Thanks to Niko Tyni for the
+    investigation and patch (Closes: #591111).
 
  -- Ansgar Burchardt <ansgar at 43-1.org>  Mon, 19 Jul 2010 12:18:45 +0900
 

Added: trunk/libdbd-sqlite3-perl/debian/patches/0001-Don-t-clean-temporary-files-in-child-processes.patch
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-sqlite3-perl/debian/patches/0001-Don-t-clean-temporary-files-in-child-processes.patch?rev=61939&op=file
==============================================================================
--- trunk/libdbd-sqlite3-perl/debian/patches/0001-Don-t-clean-temporary-files-in-child-processes.patch (added)
+++ trunk/libdbd-sqlite3-perl/debian/patches/0001-Don-t-clean-temporary-files-in-child-processes.patch Mon Aug 23 08:17:20 2010
@@ -1,0 +1,49 @@
+From 89c8a661e61bbf0fb1d1e5050262390649e13f2a Mon Sep 17 00:00:00 2001
+From: Niko Tyni <ntyni at debian.org>
+Date: Mon, 23 Aug 2010 08:15:15 +0300
+Subject: [PATCH] Don't clean temporary files in child processes
+
+As of SQLite 3.7.0, write locks try to stat() the database
+file and fail with a 'Disk I/O error' if it is missing. This
+breaks those tests that fork child processes (namely 08_busy.t
+and t/28_schemachange.t) because the child process removes
+the database file in the END block.
+
+The fix is to disable the clean() function for child processes.
+
+See <http://bugs.debian.org/591111>
+---
+ t/lib/Test.pm |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/t/lib/Test.pm b/t/lib/Test.pm
+index 80e50ce..8d1be25 100644
+--- a/t/lib/Test.pm
++++ b/t/lib/Test.pm
+@@ -7,6 +7,7 @@ use Exporter   ();
+ use File::Spec ();
+ use Test::More ();
+ 
++my $parent;
+ use vars qw{$VERSION @ISA @EXPORT @CALL_FUNCS};
+ BEGIN {
+ 	$VERSION = '1.29';
+@@ -15,6 +16,7 @@ BEGIN {
+ 
+ 	# Allow tests to load modules bundled in /inc
+ 	unshift @INC, 'inc';
++	$parent = $$;
+ }
+ 
+ # Always load the DBI module
+@@ -22,6 +24,7 @@ use DBI ();
+ 
+ # Delete temporary files
+ sub clean {
++	return if $$ != $parent;
+ 	unlink( 'foo'         );
+ 	unlink( 'foo-journal' );
+ }
+-- 
+1.7.1
+

Modified: trunk/libdbd-sqlite3-perl/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdbd-sqlite3-perl/debian/patches/series?rev=61939&op=diff
==============================================================================
--- trunk/libdbd-sqlite3-perl/debian/patches/series (original)
+++ trunk/libdbd-sqlite3-perl/debian/patches/series Mon Aug 23 08:17:20 2010
@@ -1,2 +1,3 @@
 fix-pod-spelling.patch
 use_system_sqlite
+0001-Don-t-clean-temporary-files-in-child-processes.patch




More information about the Pkg-perl-cvs-commits mailing list