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

Bug#788926: lintian: regex deprecation warnings with perl 5.22



Hi,

On Tue, Jun 16, 2015 at 12:38 PM, Dominic Hargreaves <dom@earth.li> wrote:
> Source: lintian
> Version: 2.5.31
> Severity: important
> User: debian-perl@lists.debian.org
> Usertags: perl-5.22-transition
>
> The following failure was seen in the gdebi build logs with perl 5.22,
> resulting from a number of new warnings when running lintian scripts.
> Setting the severity to important as this causes other packages to
> FTBFS.
>
> FAIL: test_lintian (tests.test_gdebi_gtk_lintian.GDebiGtkTestCase)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3.4/unittest/mock.py", line 1136, in patched
>     return func(*args, **keywargs)
>   File "/«BUILDDIR»/gdebi-0.9.5.5+nmu1/tests/test_gdebi_gtk_lintian.py", line 61, in test_lintian
>     self.assertMultiLineEqual(lintian_output.strip(), EXPECTED_LINTIAN_OUTPUT)
> AssertionError: 'Unescaped left brace in regex is deprecat[3423 chars]us 1' != 'E: error-package: changelog-file-missing-[575 chars]us 1'
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\url{ <-- HERE [^}]*?}/ at /usr/share/lintian/checks/cruft.pm line 1097.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\emph{ <-- HERE / at /usr/share/lintian/checks/cruft.pm line 1098.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\href{ <-- HERE [^}]*?}
> -                      {([^}]*?)}/ at /usr/share/lintian/checks/cruft.pm line 1100.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\href{[^}]*?}
> -                      { <-- HERE ([^}]*?)}/ at /usr/share/lintian/checks/cruft.pm line 1100.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\hyperlink
> -                  { <-- HERE [^}]*?}{([^}]*?)}/ at /usr/share/lintian/checks/cruft.pm line 1102.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\hyperlink
> -                  {[^}]*?}{ <-- HERE ([^}]*?)}/ at /usr/share/lintian/checks/cruft.pm line 1102.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\@sansserif{ <-- HERE / at /usr/share/lintian/checks/cruft.pm line 1116.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\@slanted{ <-- HERE / at /usr/share/lintian/checks/cruft.pm line 1117.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\@var{ <-- HERE / at /usr/share/lintian/checks/cruft.pm line 1118.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE COMPRESS_EXT}/ at /usr/share/lintian/checks/files.pm line 119.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE LEADIN}/ at /usr/share/lintian/checks/scripts.pm line 101.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\s*(?:\${ <-- HERE ?[\w:=-]+}?)*\s*
> -                                 # options without arguments
> -                               --(?:add|quiet|remove|rename|test|local
> -                                 # options with arguments
> -                                 |(?:admindir|divert|package) \s+ \S+)
> -                               \s*/ at /usr/share/lintian/checks/scripts.pm line 922.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\\\$\\{ <-- HERE \w+.*?\\}/ at /usr/share/lintian/checks/scripts.pm line 953.
> - Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE Source-Version}/ at /usr/share/lintian/checks/version-substvars.pm line 64.
>
>
> This bug will become release critical nearer the time of the perl 5.22
> migration.
>
> Cheers,
> Dominic.
I have fixed the one in this report but could you run lintian
testsuite with newer perl and report error


Reply to: