Bug#1127741: mrpt FTBFS on big endian

Adrian Bunk <[email protected]>
Newsgroups gmane.linux.debian.ports.s390
Message-ID <177090011842.3261139.13790127774008165105.reportbug__12905.9925138549$1770900342$gmane$org@localhost>
Source: mrpt
Version: 1:2.15.8+ds-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: s390x

https://buildd.debian.org/status/fetch.php?pkg=mrpt&arch=s390x&ver=1%3A2.15.8%2Bds-1&stamp=1770889409&raw=0

...
22: ./libs/io/src/CFileGZStreams_unittest.cpp:393: Failure
22: Expected equality of these values:
22:   size_hint
22:     Which is: 3892510720
22:   TEST_DATA_LEN % (1ULL << 32)
22:     Which is: 1000
...
98% tests passed, 1 tests failed out of 52

Total Test time (real) =  43.12 sec

The following tests FAILED:
	 22 - test_mrpt_io_run (Failed)
Errors while running CTest
make[1]: *** [Makefile:94: test] Error 8


The test looks wrong:
    // Gzip stores size as last 4 bytes (modulo 2^32)
    EXPECT_EQ(size_hint, TEST_DATA_LEN % (1ULL << 32));


The gzip file format is little endian, s390x is big endian.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.