summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-gpiod_2.4.2.bb
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>2026-04-09 14:32:52 +0200
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-04-10 07:59:58 -0700
commit7e24f2b5a868989719a1afde14258b323c7a3a56 (patch)
treeaf00bafe42595c1a9cc3f99ebf6b6de01a0bcbdb /meta-python/recipes-devtools/python/python3-gpiod_2.4.2.bb
parentf2c5f3fadc68922d6b5dcb8967fd5de9f785c3ec (diff)
downloadmeta-openembedded-7e24f2b5a868989719a1afde14258b323c7a3a56.tar.gz
python3-gpiod: update to v2.4.2
Bug-fix release addressing a buffer overflow bug discovered during an AI-augmented security audit as well as another minor issue with unnecessarily duplicated code. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-gpiod_2.4.2.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-gpiod_2.4.2.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-gpiod_2.4.2.bb b/meta-python/recipes-devtools/python/python3-gpiod_2.4.2.bb
new file mode 100644
index 0000000000..87765c2482
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-gpiod_2.4.2.bb
@@ -0,0 +1,43 @@
1SUMMARY = "Python bindings for libgpiod."
2
3LICENSE = "LGPL-2.1-or-later"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=4b54a1fd55a448865a0b32d41598759d"
5
6SRC_URI += "file://run-ptest"
7
8SRC_URI[sha256sum] = "602aae17ff365bb8e2a30ce65c6bbf2d8e7a7e64bf016e82e4fd4c730ef69ab7"
9
10inherit python_setuptools_build_meta python_pep517 ptest pypi
11
12DEPENDS += " \
13 libgpiod \
14 python3-setuptools-native \
15"
16RDEPENDS:${PN} += " \
17 libgpiod (>= 2.1) \
18 python3-datetime \
19 python3-profile \
20"
21RDEPENDS:${PN}-ptest += " \
22 libgpiod-gpiosim \
23 python3-setuptools \
24"
25
26export LINK_SYSTEM_LIBGPIOD = "1"
27
28do_compile_ptest() {
29 setup_target_config
30 nativepython3 build_tests.py
31}
32
33do_install_ptest() {
34 install -d ${D}${PTEST_PATH}/gpiod-test/gpiosim
35 install -d ${D}${PTEST_PATH}/gpiod-test/system
36 install -m 0644 ${S}/tests/*.py ${D}${PTEST_PATH}/gpiod-test/
37 install -m 0644 ${B}/tests/gpiosim/_ext* ${D}${PTEST_PATH}/gpiod-test/gpiosim
38 install -m 0644 ${S}/tests/gpiosim/*.py ${D}${PTEST_PATH}/gpiod-test/gpiosim
39 install -m 0644 ${B}/tests/system/_ext* ${D}${PTEST_PATH}/gpiod-test/system
40 install -m 0644 ${S}/tests/system/*.py ${D}${PTEST_PATH}/gpiod-test/system
41}
42
43INSANE_SKIP:${PN}-ptest += "buildpaths"