[med-svn] [Git][med-team/pydicom][master] d/rules: fix s390x autopkgtest issue.

Karsten Schöke (@karso) gitlab at salsa.debian.org
Mon Oct 19 08:07:17 BST 2026



Karsten Schöke pushed to branch master at Debian Med / pydicom


Commits:
d2f91a75 by Karsten Schöke at 2026-10-19T08:42:51+02:00
d/rules: fix s390x autopkgtest issue.

- - - - -


2 changed files:

- debian/changelog
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+pydicom (3.0.2-8) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * d/rules: fix s390x autopkgtest issue.
+
+ -- Karsten Schöke <karsten.schoeke at geobasis-bb.de>  Mon, 19 Oct 2026 08:42:22 +0200
+
 pydicom (3.0.2-7) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/rules
=====================================
@@ -4,6 +4,20 @@
 #export DH_VERBOSE=1
 export PYBUILD_NAME=pydicom
 
+# pydicom byte-order bugs on big-endian (s390x): set_pixel_data / pixel_array
+# and waveform generate_multiplex/multiplex_array don't byte-swap, so the
+# round-trip values are byte-swapped. Fine on little-endian -> deselect there
+# only. Upstream fix should make this block removable.
+DEB_HOST_ARCH_ENDIAN ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_ENDIAN)
+ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
+export PYBUILD_TEST_PYTEST_ARGS := \
+    --deselect=tests/pixels/test_utils.py::TestSetPixelData::test_grayscale_16bit_signed \
+    --deselect=tests/test_waveform.py::TestHandlerGenerateMultiplex::test_as_raw \
+    --deselect=tests/test_waveform.py::TestHandlerGenerateMultiplex::test_not_as_raw \
+    --deselect=tests/test_waveform.py::TestHandlerMultiplexArray::test_as_raw \
+    --deselect=tests/test_waveform.py::TestHandlerMultiplexArray::test_not_as_raw
+endif
+
 export PYBUILD_AFTER_INSTALL=rm -fr {destdir}/usr/lib/python3*/dist-packages/${PYBUILD_NAME}/data/charset_files/FileInfo.txt; \
                      find {destdir}/usr/lib/python3*/dist-packages/${PYBUILD_NAME} -name 'README*' -delete
 



View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/commit/d2f91a75cbd1ececa8ab3e03325126d74408527d

-- 
View it on GitLab: https://salsa.debian.org/med-team/pydicom/-/commit/d2f91a75cbd1ececa8ab3e03325126d74408527d
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261019/50a7e4b5/attachment-0001.htm>


More information about the debian-med-commit mailing list