Bug#1092264: python-shapely FTBFS on hppa due to signalling NaN
Helge Deller
deller at gmx.de
Mon Jan 6 16:06:44 GMT 2025
Package: python-shapely
Version: 1:2.098-3
Tags: ftbfs patch
Usertags: hppa mips64el mipsel
The testcase of python-shapely fails on hppa in the same way as
the testcase fails on mips platforms:
______________________________ test_point_z_empty ______________________________
@pytest.mark.xfail(
def test_point_z_empty():
g = wkt.loads("POINT Z EMPTY")
> assert g.wkb_hex == hostorder(
"BIddd", "0101000080000000000000F87F000000000000F87F000000000000F87F"
)
E AssertionError: assert '00800000017F...7FFFFFFFFFFFF' == '00800000017F...8000000000000'
E
E - 00800000017FF80000000000007FF80000000000007FF8000000000000
E + 00800000017FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF7FF7FFFFFFFFFFFF
I assume the problem arises, because MIPS and HPPA PA-RISC CPUs
have the same signalling NaN behaviour.
See: https://en.wikipedia.org/wiki/NaN
"In NaNs generated by the PA-RISC and old MIPS processors, the signaling/quiet bit is zero if the NaN is
quiet, and non-zero if the NaN is signaling."
Therefore, can you please disable the tests for hppa the same way as
it's already done for mips:
diff -up ./debian/rules.org ./debian/rules
--- ./debian/rules.org 2025-01-06 15:47:29.833380466 +0000
+++ ./debian/rules 2025-01-06 15:47:40.109320389 +0000
@@ -23,7 +23,7 @@ include /usr/share/dpkg/architecture.mk
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-ifneq (,$(filter $(DEB_BUILD_ARCH),mips64el mipsel))
+ifneq (,$(filter $(DEB_BUILD_ARCH),mips64el mipsel hppa))
dh_auto_test || echo "Ignoring test failures"
else
dh_auto_test
Thanks!
Helge
More information about the Pkg-grass-devel
mailing list