Bug#803178: libmongodb-perl: FTBFS on various architectures

Niko Tyni ntyni at debian.org
Tue Oct 27 20:53:08 UTC 2015


On Tue, Oct 27, 2015 at 06:48:59PM +0100, gregor herrmann wrote:
> Package: libmongodb-perl
> Version: 1.0.2-1
> Severity: serious
> Justification: fails to build from source (but built successfully in the past)
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Yesterday's 1.0.2-1 upload failed to build on mips, powerpc, and
> s390x (plus hppa and ppc64):
> 
> https://buildd.debian.org/status/package.php?p=libmongodb-perl
> https://buildd.debian.org/status/logs.php?pkg=libmongodb-perl&ver=1.0.2-1
> 
> The failing tests seem to be the same on all architectures, and they
> are new in this release.

It's clearly an endianness issue. All the failing platforms are big
endian and this looks pretty clear:

    #   Failed test 'encode_one( HASH )'
    #   at t/bson_codec/containers.t line 201.
    #          got: '\x{10}\x{00}\x{00}\x{00}\x{01}a\x{00}\x{ae}G\x{e1}z\x{14}\x{ae}\x{f3}?\x{00}'
    #     expected: '\x{10}\x{00}\x{00}\x{00}\x{01}a\x{00}?\x{f3}\x{ae}\x{14}z\x{e1}G\x{ae}\x{00}'

Adding some diagnostics indicates the actual data encoding is stable
between the platforms, but the test suite expectations depend on the
endianness. The attached patch seems to fix this on at least s390x,
but perhaps we should have a test run with it before pushing it upstream.
-- 
Niko Tyni   ntyni at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Expect-BSON-encoded-doubles-in-little-endian-order.patch
Type: text/x-diff
Size: 792 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20151027/689195c7/attachment.patch>


More information about the pkg-perl-maintainers mailing list