[med-svn] [Git][med-team/pymia][master] 5 commits: Fix build with NumPy 2. Closes: #1118759.

Santiago Vila (@sanvila) gitlab at salsa.debian.org
Sat Oct 25 16:59:44 BST 2025



Santiago Vila pushed to branch master at Debian Med / pymia


Commits:
634735c9 by Santiago Vila at 2025-10-25T17:41:00+02:00
Fix build with NumPy 2. Closes: #1118759.

- - - - -
6e84f828 by Santiago Vila at 2025-10-25T17:42:00+02:00
Fix clean target. Closes: #1048409.

- - - - -
5a8c9030 by Santiago Vila at 2025-10-25T17:43:00+02:00
d/control: Drop "Rules-Requires-Root: no" (default).

- - - - -
e809cecb by Santiago Vila at 2025-10-25T17:44:00+02:00
d/control: Update standards-version.

- - - - -
12f846ca by Santiago Vila at 2025-10-25T17:45:00+02:00
Upload for unstable as 0.1.9-3

- - - - -


5 changed files:

- debian/changelog
- + debian/clean
- debian/control
- + debian/patches/fix-build-with-numpy-2.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,12 +1,18 @@
 pymia (0.1.9-3) unstable; urgency=medium
 
-  * Team Upload
-  * Switch to DebHelper 13
-  * Set Rules-Requires-Root: no
-  * Use dh-sequence-python3
-  * Replace obsolete pkg-config with pkgconf
+  * Team upload.
 
- -- Alexandre Detiste <tchet at debian.org>  Sun, 17 Nov 2024 19:24:54 +0100
+  [ Alexandre Detiste ]
+  * Switch to debhelper 13.
+  * Use dh-sequence-python3.
+  * Replace obsolete pkg-config with pkgconf.
+
+  [ Santiago Vila ]
+  * Fix build with NumPy 2. Closes: #1118759.
+  * Fix clean target. Closes: #1048409.
+  * Update standards-version.
+
+ -- Santiago Vila <sanvila at debian.org>  Sat, 25 Oct 2025 17:45:00 +0200
 
 pymia (0.1.9-2.1) unstable; urgency=medium
 


=====================================
debian/clean
=====================================
@@ -0,0 +1 @@
+pymia.egg-info/


=====================================
debian/control
=====================================
@@ -10,8 +10,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-numpy,
                python3-setuptools,
                libmia-2.4-dev
-Rules-Requires-Root: no
-Standards-Version: 4.1.4
+Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/med-team/pymia
 Vcs-Git: https://salsa.debian.org/med-team/pymia.git
 Homepage: http://mia.sourceforge.net


=====================================
debian/patches/fix-build-with-numpy-2.patch
=====================================
@@ -0,0 +1,24 @@
+From: Santiago Vila <sanvila at debian.org>
+Subject: Fix build with NumPy 2
+Bug-Debian: https://bugs.debian.org/1118759
+
+--- a/src/mia_conversions.hh
++++ b/src/mia_conversions.hh
+@@ -115,7 +115,7 @@
+ 			throw runtime_error("Unable to iterate over input array"); 
+ 		
+ 		auto innerstride = NpyIter_GetInnerStrideArray(iter)[0];
+-		auto itemsize = NpyIter_GetDescrArray(iter)[0]->elsize;
++		auto itemsize = PyDataType_ELSIZE(NpyIter_GetDescrArray(iter)[0]);
+ 		auto innersizeptr = NpyIter_GetInnerLoopSizePtr(iter);
+ 		auto dataptrarray = NpyIter_GetDataPtrArray(iter);
+ 
+@@ -183,7 +183,7 @@
+ 			throw runtime_error("Unable to iterate over input array"); 
+ 		
+ 		auto innerstride = NpyIter_GetInnerStrideArray(iter)[0];
+-		auto itemsize = NpyIter_GetDescrArray(iter)[0]->elsize;
++		auto itemsize = PyDataType_ELSIZE(NpyIter_GetDescrArray(iter)[0]);
+ 		auto innersizeptr = NpyIter_GetInnerLoopSizePtr(iter);
+ 		auto dataptrarray = NpyIter_GetDataPtrArray(iter);
+ 		


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+fix-build-with-numpy-2.patch



View it on GitLab: https://salsa.debian.org/med-team/pymia/-/compare/13134dc70eb435839e7bb1dc05a7790494e8b97c...12f846ca01a8a45e062cae529c9e31da43f35182

-- 
View it on GitLab: https://salsa.debian.org/med-team/pymia/-/compare/13134dc70eb435839e7bb1dc05a7790494e8b97c...12f846ca01a8a45e062cae529c9e31da43f35182
You're receiving this email because of your account on salsa.debian.org.


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


More information about the debian-med-commit mailing list