Bug#1094373: pyferret: FTBFS with numpy 2.x

Stuart Prescott stuart at debian.org
Tue Feb 4 14:25:40 GMT 2025


Control: tags -1 + patch


The build system is looking at the old (numpy 1.x) location for the 
include files. The attached patch asks numpy directly where its include 
file is located and so is portable across versions and installation 
methods. An alternative is to use `/usr/bin/numpy-config --cflags` or 
the pkgconf numpy.pc that is shipped in python3-numpy; these won't work 
with older numpy that don't carry the relevant machinery.

With that, there are other build failures due to a missing include and a 
change in the numpy 2.x API - additional patches for them attached.

(these are not tested beyond "it builds" and the superficial autopkgtest 
test)

enjoy
Stuart



-- 
Stuart Prescott   http://www.nanonanonano.net/ stuart at nanonanonano.net
Debian Developer  http://www.debian.org/       stuart at debian.org
GPG fingerprint   90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-numpy-include-directory-in-build.patch
Type: text/x-patch
Size: 2132 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20250205/89b13c01/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-missing-include-of-setjmp.h.patch
Type: text/x-patch
Size: 1012 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20250205/89b13c01/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Add-patch-to-update-for-numpy-2-API.patch
Type: text/x-patch
Size: 1755 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20250205/89b13c01/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Update-changelog.patch
Type: text/x-patch
Size: 861 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20250205/89b13c01/attachment-0003.bin>


More information about the debian-science-maintainers mailing list