Package: xen-tools Version: 4.6.1-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu ubuntu-patch xenial
The "functionality" autopkgtest is currently failing on Ubuntu because of this: adt-run [10:56:20]: test functionality: - - - - - - - - - - stderr - - - - - - - - - - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\$CONFIG{ <-- HERE [ \t'"]+(.*)[ \t'"]+}/ at t/plugin-checks.t line 86. The following patch cleans this up, and is harmless with earlier versions of Perl. * Escape braces in regex to avoid a warning on stderr from Perl 5.22, which breaks the autopkgtest. diff -Nru xen-tools-4.6.1/debian/patches/escape-regex-braces.patch xen-tools-4.6.1/debian/patches/escape-regex-braces.patch --- xen-tools-4.6.1/debian/patches/escape-regex-braces.patch 1970-01-01 01:00:00.000000000 +0100 +++ xen-tools-4.6.1/debian/patches/escape-regex-braces.patch 2015-12-28 14:11:02.000000000 +0000 @@ -0,0 +1,18 @@ +Description: Escape braces in regex for Perl 5.22 +Author: Colin Watson <cjwat...@ubuntu.com> +Forwarded: no +Last-Update: 2015-12-28 + +Index: b/t/plugin-checks.t +=================================================================== +--- a/t/plugin-checks.t ++++ b/t/plugin-checks.t +@@ -83,7 +83,7 @@ + + foreach my $line ( <FILY> ) + { +- if ( $line =~ /\$CONFIG{[ \t'"]+(.*)[ \t'"]+}/ ) ++ if ( $line =~ /\$CONFIG\{[ \t'"]+(.*)[ \t'"]+\}/ ) + { + close( FILY ); + return $line; diff -Nru xen-tools-4.6.1/debian/patches/series xen-tools-4.6.1/debian/patches/series --- xen-tools-4.6.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ xen-tools-4.6.1/debian/patches/series 2015-12-28 14:10:29.000000000 +0000 @@ -0,0 +1 @@ +escape-regex-braces.patch Thanks, -- Colin Watson [cjwat...@ubuntu.com]