gpiod-sysfs-proxy: update to v0.1.4
cover gpiod-sysfs-proxy: update to v0.1.4
This is an update to gpiod-sysfs-proxy and its ptest script. I've noticed that on some environments the tests fail. I tracked it to a problem with python multiprocess marshalling of functions and fixed it on some environments but not all. I switched to using multiprocess instead of multiprocessing and the problems were gone so I propose to do the same in meta-openembedded. To that end: add a recipe for python3-multiprocess and use it in patch 2/2.
---
Bartosz Golaszewski (2):
python3-multiprocess: new package
gpiod-sysfs-proxy: update to v0.1.4
.../gpiod-sysfs-proxy/gpiod-sysfs-proxy.init.in | 2 +-
.../gpiod-sysfs-proxy/gpiod-sysfs-proxy.service.in | 2 +-
.../{gpiod-sysfs-proxy_0.1.2.bb => gpiod-sysfs-proxy_0.1.4.bb} | 6 +++---
.../recipes-devtools/python/python3-multiprocess_0.70.19.bb | 10 ++++++++++
4 files changed, 15 insertions(+), 5 deletions(-)---
base-commit: 4d60ca97ec2f0a7a22ac35a97f716544b54fbe39
change-id: 20260218-gpiod-sysfs-proxy-update-fabf3422d8dd
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>
PATCH 1/2 python3-multiprocess: new package
Add a recipe for a for of python's multiprocessing package that uses dill for data marshalling.
--- .../recipes-devtools/python/python3-multiprocess_0.70.19.bb | 10 ++++++++++ 1 file changed, 10 insertions(+)
meta-python/recipes-devtools/python/python3-multiprocess_0.70.19.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "Multiprocess extends multiprocessing to provide enhanced serialization, using dill." + +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=4e77a25170a36f151649917fe8d2858e" + +SRC_URI[sha256sum] = "952021e0e6c55a4a9fe4cd787895b86e239a40e76802a789d6305398d3975897" + +inherit pypi python_setuptools_build_meta + +RDEPENDS:${PN} += "python3-dill"
Signature · 1 line
2.47.3
PATCH 2/2 gpiod-sysfs-proxy: update to v0.1.4
In reply to Bartosz GolaszewskiThis update fixes a couple problems with the proxy daemon but also addresses local issues with the recipe: modifies the systemd service to pass attr_timeout=0 for better reliability and updates the test script.
---
.../gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.init.in | 2 +-
.../gpiod-sysfs-proxy/gpiod-sysfs-proxy.service.in | 2 +-
.../{gpiod-sysfs-proxy_0.1.2.bb => gpiod-sysfs-proxy_0.1.4.bb} | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.init.in +1 -1
@@ -40,7 +40,7 @@ do_start() mkdir -p $MOUNTPOINT fi - $PROG $MOUNTPOINT -o nonempty -o allow_other -o default_permissions -o entry_timeout=0 -f | logger -i $NAME & + $PROG $MOUNTPOINT -o nonempty -o allow_other -o default_permissions -o entry_timeout=0 -o attr_timeout=0 -f | logger -i $NAME & echo "done" }
meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.service.in +1 -1
@@ -7,7 +7,7 @@ Description=User-space, libgpiod-based compatibility layer for linux GPIO sysfs [Service] RuntimeDirectory=gpio Type=simple -ExecStart=/usr/bin/gpiod-sysfs-proxy @mountpoint@ -f -o nonempty -o allow_other -o default_permissions -o entry_timeout=0 +ExecStart=/usr/bin/gpiod-sysfs-proxy @mountpoint@ -f -o nonempty -o allow_other -o default_permissions -o entry_timeout=0 -o attr_timeout=0 ExecStop=/bin/umount @mountpoint@ Restart=always
meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.4.bb renamed from meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.2.bb +3 -3
@@ -15,7 +15,7 @@ SRC_URI += " \ file://run-ptest.in \ " -SRC_URI[sha256sum] = "4bdd4b8a7042f63a40507ae0f16b360011e67cbb2f0276289636487a54849530" +SRC_URI[sha256sum] = "bb38e31e4046a7aa0101c53c9e7e2cf319c0cd9620b9ba1641e962fce44a1f3a" # For full backward compatibility with the kernel sysfs interface, this option # must be selected. However, we don't make it the default as - with kernel sysfs
@@ -66,7 +66,7 @@ RDEPENDS:${PN} += " \ python __anonymous() { if d.getVar("PTEST_ENABLED") == "1": d.appendVar("SRC_URI", "git://github.com/brgl/gpio-sysfs-compat-tests;protocol=https;branch=main;destsuffix=tests;name=tests") - d.setVar("SRCREV_tests", "a3c9daa4650dd1e8d7fd8972db68d9c2c204263d") + d.setVar("SRCREV_tests", "2882af358480afcf7eed85584cddd560d6673637") } do_install_ptest() {
@@ -81,5 +81,5 @@ USERADD_PACKAGES = "${PN}-ptest" GROUPADD_PARAM:${PN}-ptest = "--system gpio-test" USERADD_PARAM:${PN}-ptest = "--system -M -s /bin/nologin -g gpio-test gpio-test" -RDEPENDS:${PN}-ptest += "kmod" +RDEPENDS:${PN}-ptest += "kmod python3-multiprocess" RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim kernel-module-configfs"
Signature · 1 line
2.47.3