diff options
Diffstat (limited to 'meta-oe/dynamic-layers/meta-python/recipes-connectivity')
-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.patch | 58 | ||||
-rw-r--r-- | meta-oe/dynamic-layers/meta-python/recipes-connectivity/netplan/netplan/0001-networkd.c-define-scope-specific-to-case-statement.patch | 47 | ||||
-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.5.bb) | 2 |
5 files changed, 6 insertions, 113 deletions
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 @@ | |||
1 | From d3aa30f5cd7ba375e006a755752acbcfcd619452 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Wed, 6 Mar 2024 19:27:15 +0800 | ||
4 | Subject: [PATCH] meson.build: drop unnecessary build dependencies | ||
5 | |||
6 | The pytest and pycoverage are required by meson test but not for | ||
7 | building. Mark them as 'required: false' to get rid of unnecessary | ||
8 | build dependencies. | ||
9 | |||
10 | Upstream-Status: Inappropriate [oe specific] | ||
11 | |||
12 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
13 | --- | ||
14 | meson.build | 8 ++++++-- | ||
15 | 1 file changed, 6 insertions(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/meson.build b/meson.build | ||
18 | index 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 | -- | ||
57 | 2.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 @@ | |||
1 | From 6e3dd61bf90a7ca8c36c5b95943cbff7c1ad3c2d Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Wed, 6 Mar 2024 16:12:31 +0800 | ||
4 | Subject: [PATCH] networkd.c: define scope specific to case statement | ||
5 | |||
6 | Per [1], define a scope specific to case statement to fix build with | ||
7 | clang. | ||
8 | |||
9 | Fixes: | ||
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 | |||
19 | Upstream-Status: Pending | ||
20 | |||
21 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
22 | --- | ||
23 | src/networkd.c | 2 ++ | ||
24 | 1 file changed, 2 insertions(+) | ||
25 | |||
26 | diff --git a/src/networkd.c b/src/networkd.c | ||
27 | index 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 | -- | ||
46 | 2.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 | ||
15 | REQUIRED_DISTRO_FEATURES = "systemd" | 15 | REQUIRED_DISTRO_FEATURES = "systemd" |
16 | 16 | ||
17 | SRC_URI = "git://github.com/CanonicalLtd/netplan.git;branch=main;protocol=https \ | 17 | SRC_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 | ||
22 | SRC_URI:append:libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch" | 21 | SRC_URI:append:libc-musl = " file://0001-don-t-fail-if-GLOB_BRACE-is-not-defined.patch" |
23 | SRC_URI:append:toolchain-clang = " file://0001-networkd.c-define-scope-specific-to-case-statement.patch" | ||
24 | 22 | ||
25 | SRCREV = "45f7cd1569896d9e316c130bf5c60b7ccfc8211d" | 23 | SRCREV = "01045f683b9419beb90119497cd1b2be44e83b8e" |
26 | 24 | ||
27 | S = "${WORKDIR}/git" | ||
28 | 25 | ||
29 | DEPENDS = "glib-2.0 libyaml util-linux-libuuid \ | 26 | DEPENDS = "glib-2.0 libyaml util-linux-libuuid \ |
30 | systemd python3-cffi-native \ | 27 | systemd python3-cffi-native \ |
31 | " | 28 | " |
32 | 29 | ||
33 | EXTRA_OEMESON = "-Dunit_testing=false" | 30 | EXTRA_OEMESON = "-Dtesting=false -Dunit_testing=false" |
34 | 31 | ||
35 | RDEPENDS:${PN} = "python3-core python3-netifaces python3-pyyaml \ | 32 | RDEPENDS:${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.5.bb b/meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway_3.7.4.bb index 2c749eeba7..57e162cabd 100644 --- a/meta-oe/dynamic-layers/meta-python/recipes-connectivity/thingsboard-gateway/thingsboard-gateway_3.5.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/" | |||
7 | LICENSE = "Apache-2.0" | 7 | LICENSE = "Apache-2.0" |
8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" | 8 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
9 | 9 | ||
10 | SRC_URI[sha256sum] = "6505d94d3173e2469950b03d5b99dac4210af7b659a3a1a3b58da35b2a984da6" | 10 | SRC_URI[sha256sum] = "5811a3c5a2334e41776f249df20c1d6a0def62a6e11e77bf2abeaa02f2725260" |
11 | 11 | ||
12 | inherit pypi setuptools3 | 12 | inherit pypi setuptools3 |
13 | 13 | ||