Bug#737318: wheezy-pu: package libhtml-formhandler-perl/0.40013-1+deb7u1
Package: release.debian.org
Severity: normal
Tags: wheezy
User: release.debian.org@packages.debian.org
Usertags: pu
Hi Release Team
libthml-formhandler-perl FTBFS also in stable, due the testsuite
depending on a 2008 + 5 years timespan for the test previously. This
is #735051 and fixed in unstable with 0.40050-2.
I would like to fix this FTBFS also for wheezy. Attached is proposed
debdiff.
The test is adjusted to not depend on 2008 but on the current year
when running the test.
Can I upload this for this (or the next) wheezy point release?
Regards,
Salvatore
diff -Nru libhtml-formhandler-perl-0.40013/debian/changelog libhtml-formhandler-perl-0.40013/debian/changelog
--- libhtml-formhandler-perl-0.40013/debian/changelog 2012-06-26 17:51:49.000000000 +0200
+++ libhtml-formhandler-perl-0.40013/debian/changelog 2014-02-01 17:44:55.000000000 +0100
@@ -1,3 +1,12 @@
+libhtml-formhandler-perl (0.40013-1+deb7u1) wheezy; urgency=low
+
+ * Team upload.
+ * Add 735051-fix-FTBFS.patch.
+ Fix test case which was dependent on a 2008+5 years time span.
+ (Closes: #735051)
+
+ -- Salvatore Bonaccorso <carnil@debian.org> Sat, 01 Feb 2014 17:44:03 +0100
+
libhtml-formhandler-perl (0.40013-1) unstable; urgency=low
* Imported Upstream version 0.40013
diff -Nru libhtml-formhandler-perl-0.40013/debian/patches/735051-fix-FTBFS.patch libhtml-formhandler-perl-0.40013/debian/patches/735051-fix-FTBFS.patch
--- libhtml-formhandler-perl-0.40013/debian/patches/735051-fix-FTBFS.patch 1970-01-01 01:00:00.000000000 +0100
+++ libhtml-formhandler-perl-0.40013/debian/patches/735051-fix-FTBFS.patch 2014-02-01 17:44:55.000000000 +0100
@@ -0,0 +1,26 @@
+Description: Fix test case which was dependent on a 2008+5 years time span
+Origin: upstream, https://github.com/gshank/html-formhandler/commit/555f460645d6fd52c5fd8fd386d0dc4bf6f5daa6
+Bug: https://rt.cpan.org/Public/Bug/Display.html?id=91793
+Bug-Debian: http://bugs.debian.org/735051
+Forwarded: not-needed
+Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
+Last-Update: 2014-01-30
+Applied-Upstream: 0.40055
+
+--- a/t/compound/basic.t
++++ b/t/compound/basic.t
+@@ -73,11 +73,12 @@
+
+ my $dtform = Form::Start->new;
+ ok( $dtform, 'datetime form' );
++my $year = (localtime)[5] + 1900;
+ $params = { name => 'DT_testing', 'start_date.month' => '10',
+- 'start_date.day' => '2', 'start_date.year' => '2008' };
++ 'start_date.day' => '2', 'start_date.year' => $year };
+ $dtform->process( params => $params );
+ ok( $dtform->validated, 'form validated' );
+-is( $dtform->field('start_date')->value->mdy, '10-02-2008', 'datetime value');
++is( $dtform->field('start_date')->value->mdy, "10-02-$year", 'datetime value');
+ $params->{'start_date.month'} = 8;
+ $dtform->process( params => $params );
+ ok( !$dtform->validated, 'form did not validate' );
diff -Nru libhtml-formhandler-perl-0.40013/debian/patches/series libhtml-formhandler-perl-0.40013/debian/patches/series
--- libhtml-formhandler-perl-0.40013/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ libhtml-formhandler-perl-0.40013/debian/patches/series 2014-02-01 17:44:55.000000000 +0100
@@ -0,0 +1 @@
+735051-fix-FTBFS.patch
Reply to: