This 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.
Signed-off-by: Bartosz Golaszewski <[email protected]> --- .../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(-) diff --git a/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.init.in b/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.init.in index a9cf5e4075450e41ab00794e24e9fb0c5794e5fb..cba731c9fd915ffe654eb01687060d6729afe67b 100644 --- a/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.init.in +++ b/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.init.in @@ -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" } diff --git a/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.service.in b/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.service.in index 313523268cae4d823585c67ae815aa39a7ed3006..5f8c4f4834cc0d06ee2e802f0e14086039b0b1c5 100644 --- a/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.service.in +++ b/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy/gpiod-sysfs-proxy.service.in @@ -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 diff --git a/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.2.bb b/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.4.bb similarity index 94% rename from meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.2.bb rename to meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.4.bb index 3e68a52b09d08ebc7bd9367cfba927d5899a2146..52b73f3ff4260f2a0727583fd0679e3e4a38cd2f 100644 --- a/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.2.bb +++ b/meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.4.bb @@ -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" -- 2.47.3
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#124485): https://lists.openembedded.org/g/openembedded-devel/message/124485 Mute This Topic: https://lists.openembedded.org/mt/117876284/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
