diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2020-11-07 17:24:37 +0100 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-11-09 23:03:55 -0500 |
commit | 8afc0b32daf089a002a4673914cc21b4638d01c0 (patch) | |
tree | e62d64fced6126264773caff16e762dc830272fd | |
parent | 19c3d8bab401e5b17605de359914419b6c65d8d6 (diff) | |
download | meta-virtualization-8afc0b32daf089a002a4673914cc21b4638d01c0.tar.gz |
cloud-init: fix usrmerge QA error:
* respect udevdir variable
* with usrmerge cloud-init triggers QA error:
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]
ERROR: cloud-init-20.3-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
because of:
/lib/udev/rules.d/66-azure-ephemeral.rules
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r-- | recipes-extended/cloud-init/cloud-init/0001-setup.py-respect-udevdir-variable.patch | 42 | ||||
-rw-r--r-- | recipes-extended/cloud-init/cloud-init_20.3.bb | 7 |
2 files changed, 46 insertions, 3 deletions
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 new file mode 100644 index 00000000..94ec98ac --- /dev/null +++ b/recipes-extended/cloud-init/cloud-init/0001-setup.py-respect-udevdir-variable.patch | |||
@@ -0,0 +1,42 @@ | |||
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 | diff --git a/setup.py b/setup.py | ||
20 | index cbacf48e..5e137a6d 100755 | ||
21 | --- a/setup.py | ||
22 | +++ b/setup.py | ||
23 | @@ -142,6 +142,7 @@ INITSYS_ROOTS = { | ||
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('systemd', | ||
30 | 'systemdsystemgeneratordir'), | ||
31 | @@ -264,7 +265,7 @@ if not platform.system().endswith('BSD'): | ||
32 | (ETC + '/NetworkManager/dispatcher.d/', | ||
33 | ['tools/hook-network-manager']), | ||
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 | # Use a subclass for install that handles | ||
39 | # adding on the right init system configuration files | ||
40 | -- | ||
41 | 2.27.0 | ||
42 | |||
diff --git a/recipes-extended/cloud-init/cloud-init_20.3.bb b/recipes-extended/cloud-init/cloud-init_20.3.bb index 53d71a6d..b9efb31f 100644 --- a/recipes-extended/cloud-init/cloud-init_20.3.bb +++ b/recipes-extended/cloud-init/cloud-init_20.3.bb | |||
@@ -6,9 +6,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c6dd79b6ec2130a3364f6fa9d6380408" | |||
6 | 6 | ||
7 | SRCREV = "1431c8a1bddaabf85e1bbb32bf316a3aef20036e" | 7 | SRCREV = "1431c8a1bddaabf85e1bbb32bf316a3aef20036e" |
8 | SRC_URI = "git://github.com/canonical/cloud-init \ | 8 | SRC_URI = "git://github.com/canonical/cloud-init \ |
9 | file://cloud-init-source-local-lsb-functions.patch \ | 9 | file://cloud-init-source-local-lsb-functions.patch \ |
10 | file://0001-setup.py-check-for-install-anywhere-in-args.patch \ | 10 | file://0001-setup.py-check-for-install-anywhere-in-args.patch \ |
11 | " | 11 | file://0001-setup.py-respect-udevdir-variable.patch \ |
12 | " | ||
12 | 13 | ||
13 | S = "${WORKDIR}/git" | 14 | S = "${WORKDIR}/git" |
14 | 15 | ||