[Debian-med-packaging] Bug#1052241: dipy: Skip little-endian test in big-endian compiler
Nathan Pratta Teodosio
nathan.teodosio at canonical.com
Tue Sep 19 12:28:30 BST 2023
Source: dipy
Version: 1.6.0-1build1
Severity: normal
Tags: ftbfs patch
X-Debbugs-Cc: nathan.teodosio at canonical.com
Dear Maintainer,
Would you consider disabling the offending test for s390x and re-enabling
the architecture? Upstream is already aware of it[1].
The attached debdiff was sufficient for getting the package to build, at
least in Ubuntu[2].
Best regards,
Nathan Teodósio
[1] https://github.com/dipy/dipy/issues/2886
[2] https://launchpad.net/~nteodosio/+archive/ubuntu/rebuilds/+build/26679459
-------------- next part --------------
diff -Nru dipy-1.7.0/debian/changelog dipy-1.7.0/debian/changelog
--- dipy-1.7.0/debian/changelog 2023-08-18 15:45:57.000000000 +0200
+++ dipy-1.7.0/debian/changelog 2023-09-04 11:48:43.000000000 +0200
@@ -1,3 +1,10 @@
+dipy (1.7.0-3) unstable; urgency=medium
+
+ * skip-streamwarp-test-in-big-endian.patch: skip streamwarp tests in
+ big endian architectures (closes #1050037).
+
+ -- Nathan Pratta Teodosio <nathan.teodosio at canonical.com> Mon, 04 Sep 2023 11:48:43 +0200
+
dipy (1.7.0-2) unstable; urgency=medium
* skip-stringent-test.patch: new: skip a failing test.
diff -Nru dipy-1.7.0/debian/patches/series dipy-1.7.0/debian/patches/series
--- dipy-1.7.0/debian/patches/series 2023-08-18 15:45:57.000000000 +0200
+++ dipy-1.7.0/debian/patches/series 2023-09-04 11:48:43.000000000 +0200
@@ -7,3 +7,4 @@
fix-invalid-version.patch
no-network.patch
skip-stringent-test.patch
+skip-streamwarp-test-in-big-endian.patch
diff -Nru dipy-1.7.0/debian/patches/skip-streamwarp-test-in-big-endian.patch dipy-1.7.0/debian/patches/skip-streamwarp-test-in-big-endian.patch
--- dipy-1.7.0/debian/patches/skip-streamwarp-test-in-big-endian.patch 1970-01-01 01:00:00.000000000 +0100
+++ dipy-1.7.0/debian/patches/skip-streamwarp-test-in-big-endian.patch 2023-09-04 11:48:43.000000000 +0200
@@ -0,0 +1,37 @@
+Description: Do not run build-time tests for little-endian machines in
+ big-endian ones.
+Author: Nathan Pratta Teodosio <nathan.teodosio at canonical.com>
+Forwarded: https://github.com/dipy/dipy/issues/2886
+
+--- dipy-1.7.0.orig/dipy/align/tests/test_streamwarp.py
++++ dipy-1.7.0/dipy/align/tests/test_streamwarp.py
+@@ -6,7 +6,11 @@ import pytest
+ from dipy.data import two_cingulum_bundles
+ from dipy.tracking.streamline import set_number_of_points, Streamlines
+
++import sys
++is_big_endian = 'big' in sys.byteorder.lower()
+
++ at pytest.mark.skipif(is_big_endian,
++ reason="Little Endian architecture required")
+ def test_bundlewarp():
+
+ cingulum_bundles = two_cingulum_bundles()
+@@ -30,6 +33,8 @@ def test_bundlewarp():
+ assert_equal(len(cb2), len(warp))
+
+
++ at pytest.mark.skipif(is_big_endian,
++ reason="Little Endian architecture required")
+ def test_bundlewarp_vector_filed():
+
+ cingulum_bundles = two_cingulum_bundles()
+@@ -54,6 +59,8 @@ def test_bundlewarp_vector_filed():
+ assert_equal(len(colors), len(deformed_bundle.get_data()))
+
+
++ at pytest.mark.skipif(is_big_endian,
++ reason="Little Endian architecture required")
+ def test_bundle_shape_profile():
+
+ cingulum_bundles = two_cingulum_bundles()
More information about the Debian-med-packaging
mailing list