summaryrefslogtreecommitdiffstats
path: root/meta-oe/dynamic-layers/meta-python/recipes-connectivity
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/dynamic-layers/meta-python/recipes-connectivity')
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb10
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-meson.build-do-not-use-Werror.patch (renamed from meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0002-meson.build-do-not-use-Werror.patch)0
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-meson.build-drop-unnecessary-build-dependencies.patch58
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-networkd.c-define-scope-specific-to-case-statement.patch47
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_1.1.2.bb (renamed from meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_1.0.bb)12
-rw-r--r--meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway_3.7.4.bb (renamed from meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway_3.4.6.bb)10
6 files changed, 15 insertions, 122 deletions
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb
index d348ef8be9..17a1d3c947 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/lirc/lirc_0.10.2.bb
@@ -70,13 +70,13 @@ do_install:append() {
70 70
71 install -m 0755 -d ${D}${sysconfdir} 71 install -m 0755 -d ${D}${sysconfdir}
72 install -m 0755 -d ${D}${sysconfdir}/lirc 72 install -m 0755 -d ${D}${sysconfdir}/lirc
73 install -m 0644 ${WORKDIR}/lircd.conf ${D}${sysconfdir}/lirc/ 73 install -m 0644 ${UNPACKDIR}/lircd.conf ${D}${sysconfdir}/lirc/
74 install -m 0644 ${WORKDIR}/lirc_options.conf ${D}${sysconfdir}/lirc/ 74 install -m 0644 ${UNPACKDIR}/lirc_options.conf ${D}${sysconfdir}/lirc/
75 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then 75 if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then
76 install -m 0755 -d ${D}${systemd_unitdir}/system ${D}${libdir}/tmpfiles.d 76 install -m 0755 -d ${D}${systemd_unitdir}/system ${D}${libdir}/tmpfiles.d
77 install -m 0644 ${WORKDIR}/lircd.service ${D}${systemd_unitdir}/system/ 77 install -m 0644 ${UNPACKDIR}/lircd.service ${D}${systemd_unitdir}/system/
78 install -m 0755 ${WORKDIR}/lircexec.init ${D}${systemd_unitdir}/system/ 78 install -m 0755 ${UNPACKDIR}/lircexec.init ${D}${systemd_unitdir}/system/
79 install -m 0644 ${WORKDIR}/lirc.tmpfiles ${D}${libdir}/tmpfiles.d/lirc.conf 79 install -m 0644 ${UNPACKDIR}/lirc.tmpfiles ${D}${libdir}/tmpfiles.d/lirc.conf
80 else 80 else
81 rm -rf ${D}/lib 81 rm -rf ${D}/lib
82 fi 82 fi
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0002-meson.build-do-not-use-Werror.patch b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-meson.build-do-not-use-Werror.patch
index 663a80ecde..663a80ecde 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0002-meson.build-do-not-use-Werror.patch
+++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-meson.build-do-not-use-Werror.patch
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-meson.build-drop-unnecessary-build-dependencies.patch b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-meson.build-drop-unnecessary-build-dependencies.patch
deleted file mode 100644
index 4f385e917a..0000000000
--- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-meson.build-drop-unnecessary-build-dependencies.patch
+++ /dev/null
@@ -1,58 +0,0 @@
1From d3aa30f5cd7ba375e006a755752acbcfcd619452 Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 6 Mar 2024 19:27:15 +0800
4Subject: [PATCH] meson.build: drop unnecessary build dependencies
5
6The pytest and pycoverage are required by meson test but not for
7building. Mark them as 'required: false' to get rid of unnecessary
8build dependencies.
9
10Upstream-Status: Inappropriate [oe specific]
11
12Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
13---
14 meson.build | 8 ++++++--
15 1 file changed, 6 insertions(+), 2 deletions(-)
16
17diff --git a/meson.build b/meson.build
18index 9556836a..30f33fe2 100644
19--- a/meson.build
20+++ b/meson.build
21@@ -25,8 +25,8 @@ bash_completions_dir = completions.get_variable(pkgconfig: 'completionsdir', def
22 # Order: Fedora/Mageia/openSUSE || Debian/Ubuntu
23 pyflakes = find_program('pyflakes-3', 'pyflakes3', required: false)
24 pycodestyle = find_program('pycodestyle-3', 'pycodestyle', 'pep8', required: false)
25-pytest = find_program('pytest-3', 'pytest3') # also requires the pytest-cov plugin
26-pycoverage = find_program('coverage-3', 'python3-coverage')
27+pytest = find_program('pytest-3', 'pytest3', required: false) # also requires the pytest-cov plugin
28+pycoverage = find_program('coverage-3', 'python3-coverage', required: false)
29 pandoc = find_program('pandoc', required: false)
30 find = find_program('find')
31
32@@ -75,6 +75,7 @@ if get_option('unit_testing')
33 endif
34
35 #FIXME: exclude doc/env/
36+if pyflakes.found() and pycodestyle.found()
37 test('linting',
38 pyflakes,
39 timeout: 100,
40@@ -91,7 +92,9 @@ test('legacy-tests',
41 find_program('tests/cli_legacy.py'),
42 timeout: 600,
43 env: test_env)
44+endif
45 #TODO: split out dbus tests into own test() instance, to run in parallel
46+if pycoverage.found()
47 test('unit-tests',
48 pycoverage,
49 args: ['run', '-a', '-m', 'pytest', '-s', '-v', '--cov-append', meson.current_source_dir()],
50@@ -143,4 +146,5 @@ if get_option('b_coverage')
51 priority: -99, # run last
52 is_parallel: false)
53 endif
54+endif
55
56--
572.25.1
58
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-networkd.c-define-scope-specific-to-case-statement.patch b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-networkd.c-define-scope-specific-to-case-statement.patch
deleted file mode 100644
index 9f01108a20..0000000000
--- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-networkd.c-define-scope-specific-to-case-statement.patch
+++ /dev/null
@@ -1,47 +0,0 @@
1From 6e3dd61bf90a7ca8c36c5b95943cbff7c1ad3c2d Mon Sep 17 00:00:00 2001
2From: Yi Zhao <yi.zhao@windriver.com>
3Date: Wed, 6 Mar 2024 16:12:31 +0800
4Subject: [PATCH] networkd.c: define scope specific to case statement
5
6Per [1], define a scope specific to case statement to fix build with
7clang.
8
9Fixes:
10../git/src/networkd.c:544:13: error: expected expression
11 544 | gchar* first = g_strcmp0(def->id, def->veth_peer_link->id) < 0 ? def->id : def->veth_peer_link->id;
12 | ^
13../git/src/networkd.c:545:17: error: use of undeclared identifier 'first'
14 545 | if (first != def->id) {
15 | ^
16
17[1] https://stackoverflow.com/questions/92396/why-cant-variables-be-declared-in-a-switch-statement
18
19Upstream-Status: Pending
20
21Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
22---
23 src/networkd.c | 2 ++
24 1 file changed, 2 insertions(+)
25
26diff --git a/src/networkd.c b/src/networkd.c
27index 25121c48..5eb9c0fe 100644
28--- a/src/networkd.c
29+++ b/src/networkd.c
30@@ -541,12 +541,14 @@ write_netdev_file(const NetplanNetDefinition* def, const char* rootdir, const ch
31 * and, if the selected name is the name of the netdef being written, we generate
32 * the .netdev file. Otherwise we skip the netdef.
33 */
34+ {
35 gchar* first = g_strcmp0(def->id, def->veth_peer_link->id) < 0 ? def->id : def->veth_peer_link->id;
36 if (first != def->id) {
37 g_string_free(s, TRUE);
38 return;
39 }
40 g_string_append_printf(s, "Kind=veth\n\n[Peer]\nName=%s\n", def->veth_peer_link->id);
41+ }
42 break;
43
44 case NETPLAN_DEF_TYPE_TUNNEL:
45--
462.25.1
47
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_1.0.bb b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_1.1.2.bb
index 229414718c..ef1945b4fe 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_1.0.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan_1.1.2.bb
@@ -14,26 +14,24 @@ inherit meson pkgconfig systemd python3targetconfig features_check
14 14
15REQUIRED_DISTRO_FEATURES = "systemd" 15REQUIRED_DISTRO_FEATURES = "systemd"
16 16
17SRC_URI = "git://github.com/CanonicalLtd/netplan.git;branch=main;protocol=https \ 17SRC_URI = "git://github.com/CanonicalLtd/netplan.git;branch=stable/1.1;protocol=https \
18 file://0001-meson.build-drop-unnecessary-build-dependencies.patch \ 18 file://0001-meson.build-do-not-use-Werror.patch \
19 file://0002-meson.build-do-not-use-Werror.patch \
20 " 19 "
21 20
22SRC_URI:append:libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch" 21SRC_URI:append:libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch"
23SRC_URI:append:toolchain-clang = " file://0001-networkd.c-define-scope-specific-to-case-statement.patch"
24 22
25SRCREV = "45f7cd1569896d9e316c130bf5c60b7ccfc8211d" 23SRCREV = "01045f683b9419beb90119497cd1b2be44e83b8e"
26 24
27S = "${WORKDIR}/git"
28 25
29DEPENDS = "glib-2.0 libyaml util-linux-libuuid \ 26DEPENDS = "glib-2.0 libyaml util-linux-libuuid \
30 systemd python3-cffi-native \ 27 systemd python3-cffi-native \
31 " 28 "
32 29
33EXTRA_OEMESON = "-Dunit_testing=false" 30EXTRA_OEMESON = "-Dtesting=false -Dunit_testing=false"
34 31
35RDEPENDS:${PN} = "python3-core python3-netifaces python3-pyyaml \ 32RDEPENDS:${PN} = "python3-core python3-netifaces python3-pyyaml \
36 python3-dbus python3-rich python3-cffi \ 33 python3-dbus python3-rich python3-cffi \
34 python3-json python3-fcntl \
37 util-linux-libuuid libnetplan \ 35 util-linux-libuuid libnetplan \
38 " 36 "
39 37
diff --git a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway_3.4.6.bb b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway_3.7.4.bb
index 0d0f6fea48..57e162cabd 100644
--- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway_3.4.6.bb
+++ b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway_3.7.4.bb
@@ -7,7 +7,7 @@ HOMEPAGE = "https://thingsboard.io/"
7LICENSE = "Apache-2.0" 7LICENSE = "Apache-2.0"
8LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" 8LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
9 9
10SRC_URI[sha256sum] = "fc24bb674308f05d963a1dbed8d0b38ead77424ad7cf032a2652732af48f1336" 10SRC_URI[sha256sum] = "5811a3c5a2334e41776f249df20c1d6a0def62a6e11e77bf2abeaa02f2725260"
11 11
12inherit pypi setuptools3 12inherit pypi setuptools3
13 13
@@ -55,13 +55,13 @@ do_install:append(){
55 55
56 install -d ${D}${sysconfdir}/thingsboard-gateway/config 56 install -d ${D}${sysconfdir}/thingsboard-gateway/config
57 57
58 for file in $(find ${WORKDIR} -maxdepth 1 -type f -name *.json); do 58 for file in $(find ${UNPACKDIR} -maxdepth 1 -type f -name *.json); do
59 install -m 0644 "$file" ${D}${sysconfdir}/thingsboard-gateway/config 59 install -m 0644 "$file" ${D}${sysconfdir}/thingsboard-gateway/config
60 done 60 done
61 61
62 install -m 0644 ${WORKDIR}/tb_gateway.yaml ${D}${sysconfdir}/thingsboard-gateway/config 62 install -m 0644 ${UNPACKDIR}/tb_gateway.yaml ${D}${sysconfdir}/thingsboard-gateway/config
63 install -m 0644 ${WORKDIR}/logs.conf ${D}${sysconfdir}/thingsboard-gateway/config 63 install -m 0644 ${UNPACKDIR}/logs.conf ${D}${sysconfdir}/thingsboard-gateway/config
64 64
65 install -d ${D}${systemd_unitdir}/system/ 65 install -d ${D}${systemd_unitdir}/system/
66 install -m 0644 ${WORKDIR}/thingsboard-gateway.service ${D}${systemd_system_unitdir}/thingsboard-gateway.service 66 install -m 0644 ${UNPACKDIR}/thingsboard-gateway.service ${D}${systemd_system_unitdir}/thingsboard-gateway.service
67} 67}