Bug#765125: libembperl-perl: FTBFS: Tests failures

Axel Beckert abe at debian.org
Wed Oct 15 23:18:29 UTC 2014


Hi,

gregor herrmann wrote:
> It builds with CGI.pm 3.x from perl core but not if I add
> libcgi-pm-perl as a build dependency.

The line causing the failure is

do { $cgiok = $CGI::VERSION > 2.45 ; @info = sort keys %{$fdat{-upload}} ; $cgiok?"@info":'Content-Disposition Content-Type' }

In both cases $cgiok should be true:

→ perl -MCGI -E 'say $CGI::VERSION'
4.06
→ perl -I/usr/share/perl/5.20.1 -MCGI -E 'say $CGI::VERSION'
3.65

So the difference is the amount of meta data in the $fdat{-upload}
hashref (which is likely generated by CGI.pm).

It seems as if CGI 3.65 outputs the very same values which the
fallback test outputs if no CGI.pm at all is available, while CGI 4.x
seems to have more keys in there, unexpected by the test.

While I think that colon and "<br>" in there look suspicious, I
currently assume that this test failure shows no functionality issues,
just some unexpected but likely non-breaking, i.e. backwards API
expansion -- just the test is not written with that in mind.

I'll do some further testin (checking where the colon and "<br>" come
from), but I expect that this can be fixed by Build-Conflicting with
libcgi-pm-perl, at least for now.

		Regards, Axel
-- 
 ,''`.  |  Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-    |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5



More information about the pkg-perl-maintainers mailing list