[postgis-tickets] [PostGIS] #3426: Patch to fix test_wkb_out_point failure on hppa & mips.

PostGIS trac at osgeo.org
Tue Jan 12 14:40:38 PST 2016


#3426: Patch to fix test_wkb_out_point failure on hppa & mips.
----------------------+---------------------------
 Reporter:  sebastic  |      Owner:  pramsey
     Type:  defect    |     Status:  new
 Priority:  medium    |  Milestone:  PostGIS 2.2.2
Component:  postgis   |    Version:  2.2.x
 Keywords:            |
----------------------+---------------------------
 As reported in [https://bugs.debian.org/810859 Debian Bug #810859]:
 > 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).

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3426>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list