Bug#810859: postgis FTBFS on hppa and mips architectures (with patch)

Helge Deller deller at gmx.de
Tue Jan 12 21:52:20 UTC 2016


Package: postgis
Version: 2.2.0+dfsg-3
Tags: patch

postgis fails to build because the testcases fail, e.g.:
https://buildd.debian.org/status/fetch.php?pkg=postgis&arch=hppa&ver=2.2.0%2Bdfsg-3&stamp=1451249930

specifically this test fails:
Suite: wkb_output
  Test: test_wkb_out_point ...FAILED
    1. cu_out_wkb.c:78  - CU_ASSERT_STRING_EQUAL(s,"00000000017FF80000000000007FF8000000000000")
    2. cu_out_wkb.c:81  - CU_ASSERT_STRING_EQUAL(s,"0020000001000010E67FF80000000000007FF8000000000000")
    3. cu_out_wkb.c:84  - CU_ASSERT_STRING_EQUAL(s,"00800000017FF80000000000007FF80000000000007FF8000000000000")
    4. cu_out_wkb.c:87  - CU_ASSERT_STRING_EQUAL(s,"00400000017FF80000000000007FF80000000000007FF8000000000000")
    5. cu_out_wkb.c:90  - CU_ASSERT_STRING_EQUAL(s,"00C00000017FF80000000000007FF80000000000007FF80000000000007FF8000000000000")

The reason why this fails is, because parisc/hppa and mips have different floating point representations for NAN (not-a-number).
The attached patch fixes it for hppa (tested!) and most likely for mips as well (untested).
Can you apply this patch for the next upload and/or push it upstream ?

Thanks,
Helge

PS: For hppa postgis will probably still fail to build, but that's most likely a problem in postgres not postgis (still working on it).
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: postgis.hppa.diff
Type: text/x-patch
Size: 2209 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grass-devel/attachments/20160112/b4e0efc8/attachment.bin>


More information about the Pkg-grass-devel mailing list