1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-01 06:45:55 +02:00

gnu: python-numpy: Update to 1.26.4 and fix build with gcc-14.

* gnu/packages/patches/python-numpy-gcc-14.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/python-xyz.scm (python-numpy): Update to 1.26.4 and use it.
[arguments]: Add phase "relax-gcc-14-strictness".  In phase "check", disable
more tests.
[native-inputs]: Add gcc-14 before gfortran so that gfortran's fenv.h include
doesn't win and break the build.

Change-Id: I9c8053c66f21521371a85107ef1864a1c0d19ad4
This commit is contained in:
Janneke Nieuwenhuizen
2024-12-11 21:36:22 +01:00
committed by Andreas Enge
parent d4f2e2ae37
commit 6c6a442ff6
3 changed files with 51 additions and 10 deletions
@@ -0,0 +1,14 @@
Upstream status: Not presented upstream.
--- numpy-1.26.4/numpy/core/src/common/half_private.hpp.orig 2024-12-11 22:32:59.883085553 +0100
+++ numpy-1.26.4/numpy/core/src/common/half_private.hpp 2024-12-11 22:33:05.291112742 +0100
@@ -1,6 +1,9 @@
#ifndef NUMPY_CORE_SRC_COMMON_HALF_PRIVATE_HPP
#define NUMPY_CORE_SRC_COMMON_HALF_PRIVATE_HPP
+int fetestexcept (int);
+int feclearexcept (int);
+int feraiseexcept (int);
#include "npstd.hpp"
#include "float_status.hpp"