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

Bug#826667: biber: breaks with perl 5.20.2-3+deb8u5



Source: biber
Version: 1.9-3
Severity: serious
Justification: FTBFS in stable
X-Debbugs-Cc: perl@packages.debian.org

Unfortunately the update of perl in the last point release includes some
changes which unexpectedly broke a small number of packages using perl.

The biber breakage is:

Test Summary Report
-------------------
t/dm-dateformats.t  (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: Bad plan.  You planned 33 tests but ran 0.
Files=42, Tests=948, 135 wallclock secs ( 0.47 usr  0.37 sys + 125.12 cusr  8.43 csys = 134.39 CPU)
Result: FAIL

This appears to be related to this:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=796944#62

Right now, I can't spot which change in 5.20.2-3+deb8u5 caused the
problem, but applying the change reference in that bug report, attached,
fixes the FTBFS.

I have prepared a stable update for a similar breaking issue in
libdevel-declare-perl (see #826622); let me know if you'd like me to
prepare a similar NMU for biber or whether you'd like to handle it.

Apologies for the breakage.

Regards,
Dominic.
diff -Nru biber-1.9/debian/changelog biber-1.9/debian/changelog
--- biber-1.9/debian/changelog	2014-12-24 23:45:26.000000000 +0000
+++ biber-1.9/debian/changelog	2016-06-07 16:56:37.000000000 +0100
@@ -1,3 +1,10 @@
+biber (1.9-3+deb8u1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix breakage triggered by point release update of perl
+
+ -- Dominic Hargreaves <dom@earth.li>  Tue, 07 Jun 2016 16:56:10 +0100
+
 biber (1.9-3) unstable; urgency=medium
 
   * cherry pick upstream fix for hyphenation fixes (Closes: #773872)
diff -Nru biber-1.9/debian/patches/fix-5.20.3 biber-1.9/debian/patches/fix-5.20.3
--- biber-1.9/debian/patches/fix-5.20.3	1970-01-01 01:00:00.000000000 +0100
+++ biber-1.9/debian/patches/fix-5.20.3	2016-06-07 16:55:50.000000000 +0100
@@ -0,0 +1,14 @@
+diff -urN biber-1.9/lib/Biber/Input/file/bibtex.pm biber-1.9.new/lib/Biber/Input/file/bibtex.pm
+--- biber-1.9/lib/Biber/Input/file/bibtex.pm	2016-06-07 16:55:35.000000000 +0100
++++ biber-1.9.new/lib/Biber/Input/file/bibtex.pm	2016-06-07 16:55:13.402781198 +0100
+@@ -1214,8 +1214,8 @@
+ 
+ sub _hack_month {
+   my $in_month = shift;
+-  if ($in_month =~ m/\A\s*((?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*)\s*\z/i) {
+-    return $months{lc(Unicode::GCString->new($1)->substr(0,3)->as_string)};
++  if (my ($m) = $in_month =~ m/\A\s*((?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*)\s*\z/i) {
++    return $months{lc(Unicode::GCString->new($m)->substr(0,3)->as_string)};
+   }
+   else {
+     return $in_month;
diff -Nru biber-1.9/debian/patches/series biber-1.9/debian/patches/series
--- biber-1.9/debian/patches/series	2014-12-24 23:45:26.000000000 +0000
+++ biber-1.9/debian/patches/series	2016-06-07 16:56:02.000000000 +0100
@@ -5,3 +5,4 @@
 fix-slurp-unknown
 fix-perl-warning
 biber-fix-hyphenation
+fix-5.20.3

Reply to: