summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3-numpy/fix_reproducibility.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/python/python3-numpy/fix_reproducibility.patch')
-rw-r--r--meta/recipes-devtools/python/python3-numpy/fix_reproducibility.patch23
1 files changed, 15 insertions, 8 deletions
diff --git a/meta/recipes-devtools/python/python3-numpy/fix_reproducibility.patch b/meta/recipes-devtools/python/python3-numpy/fix_reproducibility.patch
index d952aed00c..8b39b7bcfe 100644
--- a/meta/recipes-devtools/python/python3-numpy/fix_reproducibility.patch
+++ b/meta/recipes-devtools/python/python3-numpy/fix_reproducibility.patch
@@ -1,7 +1,11 @@
1This regex decides whether to use O3 opimisation on numpy or not. 1From 45d76002bc989a9098141f2bfcd2d2fabc5a04d5 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Fri, 29 Sep 2023 22:53:24 +0100
4Subject: [PATCH] This regex decides whether to use O3 opimisation on numpy or
5 not.
2 6
3It includes "od", which happens to be a substring of "reproducible" 7It includes "od", which happens to be a substring of "reproducible"
4but not "qemux86-world". 8but not "qemux86-world".
5 9
6The regex will run against all compiler options including things like: 10The regex will run against all compiler options including things like:
7 11
@@ -17,12 +21,15 @@ reproducible target ran first and won the race to populate sstate.
17 21
18Upstream-Status: Inappropriate [upstream have dropped distutils and switched to meson] 22Upstream-Status: Inappropriate [upstream have dropped distutils and switched to meson]
19Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> 23Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
20 24---
21Index: numpy-1.26.0/numpy/distutils/ccompiler_opt.py 25 numpy/distutils/ccompiler_opt.py | 2 +-
22=================================================================== 26 1 file changed, 1 insertion(+), 1 deletion(-)
23--- numpy-1.26.0.orig/numpy/distutils/ccompiler_opt.py 27
24+++ numpy-1.26.0/numpy/distutils/ccompiler_opt.py 28diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py
25@@ -990,7 +990,7 @@ class _CCompiler: 29index b1a6fa3..7b0302b 100644
30--- a/numpy/distutils/ccompiler_opt.py
31+++ b/numpy/distutils/ccompiler_opt.py
32@@ -991,7 +991,7 @@ def __init__(self):
26 ("cc_is_nocc", "", ""), 33 ("cc_is_nocc", "", ""),
27 ) 34 )
28 detect_args = ( 35 detect_args = (