diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2025-02-16 08:23:23 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2025-02-16 08:10:20 -0800 |
commit | 54030f5611e2d4038729197f3a6b47136d87c1b0 (patch) | |
tree | 992ca7a7ff42c8cf7fa3ae356c9a55725b46a964 /meta-filesystems/dynamic-layers/meta-python | |
parent | 3564ec12de4b5ed470e75a9e045adc6bec83c74d (diff) | |
download | meta-openembedded-54030f5611e2d4038729197f3a6b47136d87c1b0.tar.gz |
gpiod-sysfs-proxy: Fix deprecation warning
Replace `\/` sequences to fix:
gpiod-sysfs-proxy_0.1.2.bb: Var <MOUNTPOINT>:1: DeprecationWarning: invalid escape sequence \/
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-filesystems/dynamic-layers/meta-python')
-rw-r--r-- | meta-filesystems/dynamic-layers/meta-python/recipes-support/gpiod-sysfs-proxy/gpiod-sysfs-proxy_0.1.2.bb | 8 |
1 files changed, 4 insertions, 4 deletions
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.2.bb index fef2589106..07208d1b77 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.2.bb | |||
@@ -24,7 +24,7 @@ SRC_URI[sha256sum] = "4bdd4b8a7042f63a40507ae0f16b360011e67cbb2f0276289636487a54 | |||
24 | # non-standard behavior so make sure the user actually wants it. | 24 | # non-standard behavior so make sure the user actually wants it. |
25 | PACKAGECONFIG[sys-class-mount] = "" | 25 | PACKAGECONFIG[sys-class-mount] = "" |
26 | 26 | ||
27 | export MOUNTPOINT="${@bb.utils.contains('PACKAGECONFIG', 'sys-class-mount', '\/sys\/class\/gpio', '\/run\/gpio', d)}" | 27 | export MOUNTPOINT="${@bb.utils.contains('PACKAGECONFIG', 'sys-class-mount', '/sys/class/gpio', '/run/gpio', d)}" |
28 | 28 | ||
29 | do_install:append() { | 29 | do_install:append() { |
30 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 30 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
@@ -41,11 +41,11 @@ do_install:append() { | |||
41 | ln -sf ../sys-class.mount ${D}${systemd_system_unitdir}/sysinit.target.wants/sys-class.mount | 41 | ln -sf ../sys-class.mount ${D}${systemd_system_unitdir}/sysinit.target.wants/sys-class.mount |
42 | fi | 42 | fi |
43 | 43 | ||
44 | sed -i "s/@mountpoint@/$MOUNTPOINT/g" ${D}${systemd_system_unitdir}/gpiod-sysfs-proxy.service | 44 | sed -i "s:@mountpoint@:$MOUNTPOINT:g" ${D}${systemd_system_unitdir}/gpiod-sysfs-proxy.service |
45 | elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 45 | elif ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
46 | install -d ${D}${sysconfdir}/init.d | 46 | install -d ${D}${sysconfdir}/init.d |
47 | install -m 0755 ${UNPACKDIR}/gpiod-sysfs-proxy.init.in ${D}${sysconfdir}/init.d/gpiod-sysfs-proxy | 47 | install -m 0755 ${UNPACKDIR}/gpiod-sysfs-proxy.init.in ${D}${sysconfdir}/init.d/gpiod-sysfs-proxy |
48 | sed -i "s/@mountpoint@/$MOUNTPOINT/g" ${D}${sysconfdir}/init.d/gpiod-sysfs-proxy | 48 | sed -i "s:@mountpoint@:$MOUNTPOINT:g" ${D}${sysconfdir}/init.d/gpiod-sysfs-proxy |
49 | fi | 49 | fi |
50 | } | 50 | } |
51 | 51 | ||
@@ -72,7 +72,7 @@ python __anonymous() { | |||
72 | do_install_ptest() { | 72 | do_install_ptest() { |
73 | install -d ${D}${PTEST_PATH}/tests/ | 73 | install -d ${D}${PTEST_PATH}/tests/ |
74 | install -m 0755 ${UNPACKDIR}/run-ptest.in ${D}${PTEST_PATH}/run-ptest | 74 | install -m 0755 ${UNPACKDIR}/run-ptest.in ${D}${PTEST_PATH}/run-ptest |
75 | sed -i "s/@mountpoint@/$MOUNTPOINT/g" ${D}${PTEST_PATH}/run-ptest | 75 | sed -i "s:@mountpoint@:$MOUNTPOINT:g" ${D}${PTEST_PATH}/run-ptest |
76 | install -m 0755 ${UNPACKDIR}/tests/gpio-sysfs-compat-tests ${D}${PTEST_PATH}/tests/gpio-sysfs-compat-tests | 76 | install -m 0755 ${UNPACKDIR}/tests/gpio-sysfs-compat-tests ${D}${PTEST_PATH}/tests/gpio-sysfs-compat-tests |
77 | } | 77 | } |
78 | 78 | ||