python3-h5py: backport fixes for incompatible-pointer-types issues

Needed in scarthgap for native build on hosts with gcc-14 and newer.

It was in master since:
https://git.openembedded.org/meta-openembedded/diff/meta-python/recipes-devtools/python/python3-h5py_3.11.0.bb?id=f0c767407d033e3f39ceeccc2f7e03a1ca7a6443
and then removed as fixed in 3.11.0 by:
https://git.openembedded.org/meta-openembedded/commit/?id=4b990b6dbabaeb65df5bf46546a873c69032a040
but scarthgap has older 3.10.0, backport necessary changes.

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Martin Jansa
2025-07-08 18:09:09 +02:00
committed by Armin Kuster
parent 3d03058fe2
commit bf0a439694
3 changed files with 56 additions and 2 deletions

View File

@@ -6,8 +6,12 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=113251d71fb0384712c719b567261c5c"
SRC_URI[sha256sum] = "d93adc48ceeb33347eb24a634fb787efc7ae4644e6ea4ba733d099605045c049"
SRC_URI += "file://0001-setup_build.py-avoid-absolute-path.patch \
file://0001-Fix-Cython-3-compatibility.patch"
SRC_URI += " \
file://0001-setup_build.py-avoid-absolute-path.patch \
file://0001-Fix-Cython-3-compatibility.patch \
file://0001-Properly-cast-arguments-to-H5Lunpack_elink_val.patch \
file://0002-Use-libc.stdint-instead-of-numpy.patch \
"
inherit pkgconfig pypi setuptools3