diff options
-rw-r--r-- | recipes-extended/cloud-init/cloud-init/0001-setup.py-check-for-install-anywhere-in-args.patch | 6 | ||||
-rw-r--r-- | recipes-extended/cloud-init/cloud-init/0001-setup.py-respect-udevdir-variable.patch | 39 | ||||
-rw-r--r-- | recipes-extended/cloud-init/cloud-init_23.1.bb (renamed from recipes-extended/cloud-init/cloud-init_21.4.bb) | 3 |
3 files changed, 4 insertions, 44 deletions
diff --git a/recipes-extended/cloud-init/cloud-init/0001-setup.py-check-for-install-anywhere-in-args.patch b/recipes-extended/cloud-init/cloud-init/0001-setup.py-check-for-install-anywhere-in-args.patch index c56f7b1d..cc2914c9 100644 --- a/recipes-extended/cloud-init/cloud-init/0001-setup.py-check-for-install-anywhere-in-args.patch +++ b/recipes-extended/cloud-init/cloud-init/0001-setup.py-check-for-install-anywhere-in-args.patch | |||
@@ -22,11 +22,11 @@ Index: git/setup.py | |||
22 | =================================================================== | 22 | =================================================================== |
23 | --- git.orig/setup.py | 23 | --- git.orig/setup.py |
24 | +++ git/setup.py | 24 | +++ git/setup.py |
25 | @@ -87,7 +87,7 @@ | 25 | @@ -98,7 +98,7 @@ |
26 | that files are different outside of the debian directory.""" | ||
26 | 27 | ||
27 | # older versions of tox use bdist (xenial), and then install from there. | ||
28 | # newer versions just use install. | 28 | # newer versions just use install. |
29 | - if not (sys.argv[1] == "install" or sys.argv[1].startswith("bdist*")): | 29 | - if not (sys.argv[1] == "install"): |
30 | + if not ('install' in sys.argv or sys.argv[1].startswith('bdist*')): | 30 | + if not ('install' in sys.argv or sys.argv[1].startswith('bdist*')): |
31 | return template | 31 | return template |
32 | 32 | ||
diff --git a/recipes-extended/cloud-init/cloud-init/0001-setup.py-respect-udevdir-variable.patch b/recipes-extended/cloud-init/cloud-init/0001-setup.py-respect-udevdir-variable.patch deleted file mode 100644 index 96c6766e..00000000 --- a/recipes-extended/cloud-init/cloud-init/0001-setup.py-respect-udevdir-variable.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From d7a6b8f765e9a08a8811331298e76ebd7a0c7076 Mon Sep 17 00:00:00 2001 | ||
2 | From: Martin Jansa <Martin.Jansa@gmail.com> | ||
3 | Date: Sat, 7 Nov 2020 15:55:23 +0000 | ||
4 | Subject: [PATCH] setup.py respect udevdir variable | ||
5 | |||
6 | * with usrmerge cloud-init triggers QA error: | ||
7 | ERROR: cloud-init-20.3-r0 do_package_qa: QA Issue: cloud-init package is not obeying usrmerge distro feature. /lib should be relocated to /usr. [usrmerge] | ||
8 | ERROR: cloud-init-20.3-r0 do_package_qa: QA run found fatal errors. Please consider fixing them. | ||
9 | because of: | ||
10 | /lib/udev/rules.d/66-azure-ephemeral.rules | ||
11 | |||
12 | Upstream-Status: [Pending] | ||
13 | |||
14 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
15 | --- | ||
16 | setup.py | 3 ++- | ||
17 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
18 | |||
19 | Index: git/setup.py | ||
20 | =================================================================== | ||
21 | --- git.orig/setup.py | ||
22 | +++ git/setup.py | ||
23 | @@ -159,6 +159,7 @@ | ||
24 | "sysvinit_deb": "etc/init.d", | ||
25 | "sysvinit_openrc": "etc/init.d", | ||
26 | "sysvinit_suse": "etc/init.d", | ||
27 | + 'udevdir': pkg_config_read('udev', 'udevdir'), | ||
28 | "systemd": pkg_config_read("systemd", "systemdsystemunitdir"), | ||
29 | "systemd.generators": pkg_config_read( | ||
30 | "systemd", "systemdsystemgeneratordir" | ||
31 | @@ -307,7 +308,7 @@ | ||
32 | ["tools/hook-network-manager"], | ||
33 | ), | ||
34 | (ETC + "/dhcp/dhclient-exit-hooks.d/", ["tools/hook-dhclient"]), | ||
35 | - (LIB + "/udev/rules.d", [f for f in glob("udev/*.rules")]), | ||
36 | + ('udevdir' + "/rules.d", [f for f in glob("udev/*.rules")]), | ||
37 | ( | ||
38 | ETC + "/systemd/system/sshd-keygen@.service.d/", | ||
39 | ["systemd/disable-sshd-keygen-if-cloud-init-active.conf"], | ||
diff --git a/recipes-extended/cloud-init/cloud-init_21.4.bb b/recipes-extended/cloud-init/cloud-init_23.1.bb index e5f5b79e..ea9c2730 100644 --- a/recipes-extended/cloud-init/cloud-init_21.4.bb +++ b/recipes-extended/cloud-init/cloud-init_23.1.bb | |||
@@ -7,11 +7,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c6dd79b6ec2130a3364f6fa9d6380408 \ | |||
7 | file://LICENSE-Apache2.0;md5=3b83ef96387f14655fc854ddc3c6bd57 \ | 7 | file://LICENSE-Apache2.0;md5=3b83ef96387f14655fc854ddc3c6bd57 \ |
8 | " | 8 | " |
9 | 9 | ||
10 | SRCREV = "a97fd062f7dbd4b824fd006edd08927ef9dbf24a" | 10 | SRCREV = "e02c4607923af64311c70ae9a06d6794355e9a61" |
11 | SRC_URI = "git://github.com/canonical/cloud-init;branch=main;protocol=https \ | 11 | SRC_URI = "git://github.com/canonical/cloud-init;branch=main;protocol=https \ |
12 | file://cloud-init-source-local-lsb-functions.patch \ | 12 | file://cloud-init-source-local-lsb-functions.patch \ |
13 | file://0001-setup.py-check-for-install-anywhere-in-args.patch \ | 13 | file://0001-setup.py-check-for-install-anywhere-in-args.patch \ |
14 | file://0001-setup.py-respect-udevdir-variable.patch \ | ||
15 | " | 14 | " |
16 | 15 | ||
17 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |