diff options
| author | Trevor Gamblin <tgamblin@baylibre.com> | 2024-12-16 10:44:38 -0500 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-12-17 11:41:53 +0000 |
| commit | 48b0c58b34ef24d7a9066c52610da6c4324a890c (patch) | |
| tree | 6d98d0eabc3e58be739919f77fc586790132995e /meta/recipes-devtools/python | |
| parent | 4593b142d5d0dc7c8ef369e2a42e9a4c805b8a51 (diff) | |
| download | poky-48b0c58b34ef24d7a9066c52610da6c4324a890c.tar.gz | |
python3-numpy: upgrade 2.1.3 -> 2.2.0
Patch '0001-numpy-core-Define-RISCV-32-support.patch' is included in
v2.2.0, so remove it from the SRC_URI list:
|tgamblin@megalith ~/workspace/git/pythonsrc/numpy (main)$ git tag --contains 0e2b652a0eff85798584116c905a2d6ad8f25d5f
|v2.2.0
Changelog: https://github.com/numpy/numpy/releases/tag/v2.2.0
Build log:
|BUILDALL-QEMU LOG FOR python3-numpy
|START TIME: 2024-12-13_16:55:19
|HOSTNAME: megalith
|HOST OS: Debian GNU/Linux 12 (bookworm)
|HOST KERNEL: 6.1.0-28-amd64
|===============
|BUILD RESULTS:
|[glibc]
|FAIL: qemuloongarch64
|PASS: qemuriscv32
|PASS: qemuarmv5
|PASS: qemuppc
|PASS: qemumips64
|PASS: qemuriscv64
|PASS: qemuarm64
|PASS: qemuarm
|PASS: qemux86-64
|PASS: qemuppc64
|PASS: qemux86
|PASS: qemumips
|[musl]
|FAIL: qemuloongarch64
|FAIL: qemuriscv32
|PASS: qemuarmv5
|PASS: qemuppc
|PASS: qemumips64
|PASS: qemuriscv64
|PASS: qemuarm64
|PASS: qemuarm
|PASS: qemux86-64
|PASS: qemuppc64
|PASS: qemux86
|PASS: qemumips
|===============
|PASSED: 21
|FAILED: 3
(From OE-Core rev: ff93068be3dd1993675dd016fd6b5e98ccb262bf)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
| -rw-r--r-- | meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch | 58 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-numpy_2.2.0.bb (renamed from meta/recipes-devtools/python/python3-numpy_2.1.3.bb) | 3 |
2 files changed, 1 insertions, 60 deletions
diff --git a/meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch b/meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch deleted file mode 100644 index 6da9047ec5..0000000000 --- a/meta/recipes-devtools/python/python3-numpy/0001-numpy-core-Define-RISCV-32-support.patch +++ /dev/null | |||
| @@ -1,58 +0,0 @@ | |||
| 1 | From 0e2b652a0eff85798584116c905a2d6ad8f25d5f Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Sun, 15 Nov 2020 15:32:39 -0800 | ||
| 4 | Subject: [PATCH] numpy/core: Define RISCV-32 support | ||
| 5 | |||
| 6 | Helps compile on riscv32 | ||
| 7 | |||
| 8 | Upstream-Status: Backport | ||
| 9 | (https://github.com/numpy/numpy/pull/17780/commits/0e2b652a0eff85798584116c905a2d6ad8f25d5f) | ||
| 10 | |||
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 12 | --- | ||
| 13 | numpy/_core/include/numpy/npy_cpu.h | 9 +++++++-- | ||
| 14 | numpy/_core/include/numpy/npy_endian.h | 1 + | ||
| 15 | 2 files changed, 8 insertions(+), 2 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/numpy/_core/include/numpy/npy_cpu.h b/numpy/_core/include/numpy/npy_cpu.h | ||
| 18 | index a19f8e6bbd..15f9f12931 100644 | ||
| 19 | --- a/numpy/_core/include/numpy/npy_cpu.h | ||
| 20 | +++ b/numpy/_core/include/numpy/npy_cpu.h | ||
| 21 | @@ -18,6 +18,7 @@ | ||
| 22 | * NPY_CPU_ARCEL | ||
| 23 | * NPY_CPU_ARCEB | ||
| 24 | * NPY_CPU_RISCV64 | ||
| 25 | + * NPY_CPU_RISCV32 | ||
| 26 | * NPY_CPU_LOONGARCH | ||
| 27 | * NPY_CPU_WASM | ||
| 28 | */ | ||
| 29 | @@ -102,8 +103,12 @@ | ||
| 30 | #define NPY_CPU_ARCEL | ||
| 31 | #elif defined(__arc__) && defined(__BIG_ENDIAN__) | ||
| 32 | #define NPY_CPU_ARCEB | ||
| 33 | -#elif defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64 | ||
| 34 | - #define NPY_CPU_RISCV64 | ||
| 35 | +#elif defined(__riscv) | ||
| 36 | + #if __riscv_xlen == 64 | ||
| 37 | + #define NPY_CPU_RISCV64 | ||
| 38 | + #elif __riscv_xlen == 32 | ||
| 39 | + #define NPY_CPU_RISCV32 | ||
| 40 | + #endif | ||
| 41 | #elif defined(__loongarch__) | ||
| 42 | #define NPY_CPU_LOONGARCH | ||
| 43 | #elif defined(__EMSCRIPTEN__) | ||
| 44 | diff --git a/numpy/_core/include/numpy/npy_endian.h b/numpy/_core/include/numpy/npy_endian.h | ||
| 45 | index 5e58a7f52c..09262120bf 100644 | ||
| 46 | --- a/numpy/_core/include/numpy/npy_endian.h | ||
| 47 | +++ b/numpy/_core/include/numpy/npy_endian.h | ||
| 48 | @@ -49,6 +49,7 @@ | ||
| 49 | || defined(NPY_CPU_PPC64LE) \ | ||
| 50 | || defined(NPY_CPU_ARCEL) \ | ||
| 51 | || defined(NPY_CPU_RISCV64) \ | ||
| 52 | + || defined(NPY_CPU_RISCV32) \ | ||
| 53 | || defined(NPY_CPU_LOONGARCH) \ | ||
| 54 | || defined(NPY_CPU_WASM) | ||
| 55 | #define NPY_BYTE_ORDER NPY_LITTLE_ENDIAN | ||
| 56 | -- | ||
| 57 | 2.39.5 | ||
| 58 | |||
diff --git a/meta/recipes-devtools/python/python3-numpy_2.1.3.bb b/meta/recipes-devtools/python/python3-numpy_2.2.0.bb index 0120bee439..522f9682a5 100644 --- a/meta/recipes-devtools/python/python3-numpy_2.1.3.bb +++ b/meta/recipes-devtools/python/python3-numpy_2.2.0.bb | |||
| @@ -9,11 +9,10 @@ SRCNAME = "numpy" | |||
| 9 | 9 | ||
| 10 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${SRCNAME}-${PV}.tar.gz \ | 10 | SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${SRCNAME}-${PV}.tar.gz \ |
| 11 | file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ | 11 | file://0001-Don-t-search-usr-and-so-on-for-libraries-by-default-.patch \ |
| 12 | file://0001-numpy-core-Define-RISCV-32-support.patch \ | ||
| 13 | file://fix_reproducibility.patch \ | 12 | file://fix_reproducibility.patch \ |
| 14 | file://run-ptest \ | 13 | file://run-ptest \ |
| 15 | " | 14 | " |
| 16 | SRC_URI[sha256sum] = "aa08e04e08aaf974d4458def539dece0d28146d866a39da5639596f4921fd761" | 15 | SRC_URI[sha256sum] = "140dd80ff8981a583a60980be1a655068f8adebf7a45a06a6858c873fcdcd4a0" |
| 17 | 16 | ||
| 18 | GITHUB_BASE_URI = "https://github.com/numpy/numpy/releases" | 17 | GITHUB_BASE_URI = "https://github.com/numpy/numpy/releases" |
| 19 | UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$" | 18 | UPSTREAM_CHECK_REGEX = "releases/tag/v?(?P<pver>\d+(\.\d+)+)$" |
