Your message dated Thu, 21 Jan 2016 23:02:42 +0000
with message-id <[email protected]>
and subject line Bug#810859: fixed in postgis 2.2.1+dfsg-2
has caused the Debian Bug report #810859,
regarding postgis FTBFS on hppa and mips architectures (with patch)
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
810859: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=810859
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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).
diff -up ./liblwgeom/cunit/cu_out_wkb.c.org ./liblwgeom/cunit/cu_out_wkb.c
--- ./liblwgeom/cunit/cu_out_wkb.c.org 2016-01-11 13:46:30.384180275 +0100
+++ ./liblwgeom/cunit/cu_out_wkb.c 2016-01-11 14:30:35.928732134 +0100
@@ -66,6 +66,13 @@ static void cu_wkb(char *wkt)
}
+/* parisc and mips (at least some processors) have a different nan representation from other arches. */
+#if !defined(__hppa__) && !defined(__mips__)
+# define nan_val( v1, v2) v1
+#else
+# define nan_val( v1, v2) v2
+#endif
+
static void test_wkb_out_point(void)
{
cu_wkb("POINT(0 0 0 0)");
@@ -75,19 +82,24 @@ static void test_wkb_out_point(void)
CU_ASSERT_STRING_EQUAL(s,"0060000001000000043FF00000000000003FF00000000000003FF0000000000000");
cu_wkb("POINT EMPTY");
- CU_ASSERT_STRING_EQUAL(s,"00000000017FF80000000000007FF8000000000000");
+ CU_ASSERT_STRING_EQUAL(s, nan_val("00000000017FF80000000000007FF8000000000000",
+ "00000000017FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF"));
cu_wkb("SRID=4326;POINT EMPTY");
- CU_ASSERT_STRING_EQUAL(s,"0020000001000010E67FF80000000000007FF8000000000000");
+ CU_ASSERT_STRING_EQUAL(s, nan_val("0020000001000010E67FF80000000000007FF8000000000000",
+ "0020000001000010E67FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF"));
cu_wkb("POINT Z EMPTY");
- CU_ASSERT_STRING_EQUAL(s,"00800000017FF80000000000007FF80000000000007FF8000000000000");
+ CU_ASSERT_STRING_EQUAL(s, nan_val("00800000017FF80000000000007FF80000000000007FF8000000000000",
+ "00800000017FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF"));
cu_wkb("POINT M EMPTY");
- CU_ASSERT_STRING_EQUAL(s,"00400000017FF80000000000007FF80000000000007FF8000000000000");
+ CU_ASSERT_STRING_EQUAL(s, nan_val("00400000017FF80000000000007FF80000000000007FF8000000000000",
+ "00400000017FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF"));
cu_wkb("POINT ZM EMPTY");
- CU_ASSERT_STRING_EQUAL(s,"00C00000017FF80000000000007FF80000000000007FF80000000000007FF8000000000000");
+ CU_ASSERT_STRING_EQUAL(s, nan_val("00C00000017FF80000000000007FF80000000000007FF80000000000007FF8000000000000",
+ "00C00000017FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF"));
}
static void test_wkb_out_linestring(void)
--- End Message ---
--- Begin Message ---
Source: postgis
Source-Version: 2.2.1+dfsg-2
We believe that the bug you reported is fixed in the latest version of
postgis, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Bas Couwenberg <[email protected]> (supplier of updated postgis package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Thu, 21 Jan 2016 23:16:46 +0100
Source: postgis
Binary: postgis postgis-doc liblwgeom-2.2-5 liblwgeom-dev
postgresql-9.5-postgis-2.2 postgresql-9.5-postgis-scripts
Architecture: source amd64 all
Version: 2.2.1+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian GIS Project <[email protected]>
Changed-By: Bas Couwenberg <[email protected]>
Description:
liblwgeom-2.2-5 - PostGIS "Lightweight Geometry" library
liblwgeom-dev - PostGIS "Lightweight Geometry" library - Development files
postgis - Geographic objects support for PostgreSQL
postgis-doc - Geographic objects support for PostgreSQL -- documentation
postgresql-9.5-postgis-2.2 - Geographic objects support for PostgreSQL 9.5
postgresql-9.5-postgis-scripts - Geographic objects support for PostgreSQL 9.5
-- scripts
Closes: 810859
Changes:
postgis (2.2.1+dfsg-2) unstable; urgency=medium
.
[ Bas Couwenberg ]
* Add patch by Helge Deller to fix wkb_output test failure on hppa & mips.
(closes: #810859)
* Add patch by Sandro Santilli to fix test failure on various architectures.
* Re-enable tests on arm64, powerpc, ppc64el & s390x.
* Skip tests on kfreebsd-i386 & mips64el, not release architectures.
.
[ Markus Wanner ]
* Add patch relax-test-timing-constraints.patch to increase chances of
tests passing on the pgapt infrastructure.
Checksums-Sha1:
71b482bc39f19f55ae8d5d578c73b2f2453ecb77 2839 postgis_2.2.1+dfsg-2.dsc
e9f25e5d94b99b407c2039c837435b58850e88f0 37516
postgis_2.2.1+dfsg-2.debian.tar.xz
2a0925e5db859e7c6506fc4e2f7ed915b90121a9 471486
liblwgeom-2.2-5-dbgsym_2.2.1+dfsg-2_amd64.deb
e67d47a9826eeae9bd1c91229d98a0e9f6069702 596426
liblwgeom-2.2-5_2.2.1+dfsg-2_amd64.deb
c5d2657ac9ee52bf64415d91f1c860c373f5cb1c 630572
liblwgeom-dev_2.2.1+dfsg-2_amd64.deb
5f9d13a734f6bc11a41fab49ff5a583d79bb7371 403068
postgis-dbgsym_2.2.1+dfsg-2_amd64.deb
ba487fdbbf35ebab430ce7413d42a36d77ed3654 3226806
postgis-doc_2.2.1+dfsg-2_all.deb
8a05f53937048a96f4abc726f905b8c31a158b7f 544540 postgis_2.2.1+dfsg-2_amd64.deb
260784d9500ac0a1c6ce2ba2c746e92d52530cc4 1124550
postgresql-9.5-postgis-2.2-dbgsym_2.2.1+dfsg-2_amd64.deb
c93ca7f95ff52d08c5f102e7d67eabd8095f7313 921880
postgresql-9.5-postgis-2.2_2.2.1+dfsg-2_amd64.deb
78320ba5d9ca292aafcbe22de1705b7cb2299104 971432
postgresql-9.5-postgis-scripts_2.2.1+dfsg-2_all.deb
Checksums-Sha256:
ee56598c0a30b62d62afad21c658e4738f4208233974fad535fe220f15903e23 2839
postgis_2.2.1+dfsg-2.dsc
ac101dda965ab791d4d091e527be1576a59a9a17793c89a9ef3cd0a8c562b3a1 37516
postgis_2.2.1+dfsg-2.debian.tar.xz
b7e465d8991e25463bd4b7383785cff1389bb38fbc3d4a2ed510ca0ca0afcad5 471486
liblwgeom-2.2-5-dbgsym_2.2.1+dfsg-2_amd64.deb
c213c3583f345b1ee6cec78baa21fd403dc897476abaa10d0e6e3c3217786041 596426
liblwgeom-2.2-5_2.2.1+dfsg-2_amd64.deb
c04de02b0f417043ef291528a55c9843ad5968ebe0f8a7f4402b66d4b2d4d895 630572
liblwgeom-dev_2.2.1+dfsg-2_amd64.deb
6b2d3050dc71ef1729fecb0936c203af02444129732f9747da001ac64efdeb06 403068
postgis-dbgsym_2.2.1+dfsg-2_amd64.deb
eeebb79be66a667f719745c5a8da4bbe509b67bcc83b609f262b83ca83744042 3226806
postgis-doc_2.2.1+dfsg-2_all.deb
379ea526aabcdcfe131c38e037a00e8ac99f7a5c426d0f9b00d4636caddbf7cb 544540
postgis_2.2.1+dfsg-2_amd64.deb
b890f34a96e9fd73e75d4d3753c47e0bce94f5cb86bc58d4c7fc505b0b0924c6 1124550
postgresql-9.5-postgis-2.2-dbgsym_2.2.1+dfsg-2_amd64.deb
b025e86a9384cf6a1e6ee144838fa4ace718ab54b5ea39def0fa4851eca1784b 921880
postgresql-9.5-postgis-2.2_2.2.1+dfsg-2_amd64.deb
a60f51dfc14749b16d18fe97ce5984bc287f34a182c889b8c4e6ddcb871a7294 971432
postgresql-9.5-postgis-scripts_2.2.1+dfsg-2_all.deb
Files:
fddd0137fd73fbebb25a06af7f03c867 2839 misc optional postgis_2.2.1+dfsg-2.dsc
baf56e5934fc4ecbcc56bef8baf7e171 37516 misc optional
postgis_2.2.1+dfsg-2.debian.tar.xz
4172f35f984b72d614b25d88975e2ddd 471486 debug extra
liblwgeom-2.2-5-dbgsym_2.2.1+dfsg-2_amd64.deb
9a4a0fe9186e9dd352c8a9752868d3a3 596426 libs optional
liblwgeom-2.2-5_2.2.1+dfsg-2_amd64.deb
3fde2ba22654595fe33d646b643a1ee8 630572 libdevel optional
liblwgeom-dev_2.2.1+dfsg-2_amd64.deb
421b5d2cb1a569ce07511527c9f718b5 403068 debug extra
postgis-dbgsym_2.2.1+dfsg-2_amd64.deb
834e9b7048c0f023775e818d8c14d88d 3226806 doc optional
postgis-doc_2.2.1+dfsg-2_all.deb
e1f66dd9fa30308956345f341dab8098 544540 misc optional
postgis_2.2.1+dfsg-2_amd64.deb
ef23f379a716ea6329c78758566f6f14 1124550 debug extra
postgresql-9.5-postgis-2.2-dbgsym_2.2.1+dfsg-2_amd64.deb
efbb9ed9eba1edf87214f7e98668832d 921880 misc optional
postgresql-9.5-postgis-2.2_2.2.1+dfsg-2_amd64.deb
d3a1c38a053b27f3303ac63bbf5db5e2 971432 misc optional
postgresql-9.5-postgis-scripts_2.2.1+dfsg-2_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJWoV3QAAoJEGdQ8QrojUrxE+sP/2h9xHhq1jpend1IBdjmEhDX
HmMH2fuJ5up0Rw4TLbwQgOrdO+LnQ58eEn5K/mxgoguek2HcSLTSrY+dysc226Nm
3ZOM+VS5aUYLoc+4XeDnK6wMPHGwGk3FtxEZwJKxO2Dg4oslv5PRV17v9x4U1PQz
wUqQK1PjeBtS0Yz6OxM3ZhYnhBmL4t/V7NLQeSP4cF07r104VwR0UrzR/N48s4wV
vtSy+aBWZwImCluI0A9tnB4VldYIKn2aUGr6jbamoLKHZOQ6J+08qF3f1/Qwpjiu
5IeDhQo4dQdfCBoHfcm/kqBGMyZEku+JwzEp2cAnkIghH1xI8NpKB0W7cDvs8LSQ
TPP2ZVM0Xh4eEJk1fmVUF1avyjlm3n6LUHu5ND5WfKajxGJudE6qpqY0PBW+XHPK
jP4D5PhedaTRfHcX+3V3fATQmEwVkCeQ34sgH4sLkGvhoq/DAPch1++GbMotOPpS
6cAcHjlXe3U8PC5GLI1PFKBwQmUhnJ24f9zgGMj6xTM34KYOwTrxLAWdalTvNTzl
B/96pV8y47cVi0ukt9D0a/w5rl1/a8df6nXdQ2YFe42F4qkNYvpGJQc03tukKMzC
zYl5s+Zlv2e8tkKQ/VANTgtRX8FjWrQ0BDEWxUCzLT1JpEx7sEB9E08QNzUFHKeL
qveHtM44QLj/l05TNlC0
=n/SO
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel