Remove python dependency from packagegroup-selinux-minimal 51/28751/7
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Tue, 2 May 2023 14:23:22 +0000 (23:23 +0900)
committerNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Mon, 8 May 2023 23:13:10 +0000 (08:13 +0900)
A meta-selinux has issue for force install many packages.
A packagegroup-selinux-minimal may support desktop and server
runtime use case, may not match AGL (embedded) runtime use case.
One of the big issue, that force install unnecessarily python
runtime to image.  It's caused by backward compatibility for
policycoreutils package, maybe.

This patch fix this issue temporally.
Shall fix at meta-agl layer at SPEC-4778.

Bug-AGL: SPEC-4777

Change-Id: I2b844cd928448b024e4a6830ea98e7dc76f0832b
Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
meta-agl-ic-container/conf/layer.conf
meta-agl-ic-container/dynamic-layers/meta-selinux/recipes-security/selinux/policycoreutils_%.bbappend [new file with mode: 0644]

index 7b4552a..9c13ee3 100644 (file)
@@ -14,6 +14,8 @@ BBFILES_DYNAMIC += " \
     rcar-gen3:${LAYERDIR}/dynamic-layers/meta-rcar-gen3/*/*/*.bbappend \
     raspberrypi:${LAYERDIR}/dynamic-layers/meta-raspberrypi/*/*/*.bb \
     raspberrypi:${LAYERDIR}/dynamic-layers/meta-raspberrypi/*/*/*.bbappend \
+    selinux:${LAYERDIR}/dynamic-layers/meta-selinux/*/*/*.bb \
+    selinux:${LAYERDIR}/dynamic-layers/meta-selinux/*/*/*.bbappend \
 "
 
 LAYERSERIES_COMPAT_aglcontainermc = "kirkstone"
diff --git a/meta-agl-ic-container/dynamic-layers/meta-selinux/recipes-security/selinux/policycoreutils_%.bbappend b/meta-agl-ic-container/dynamic-layers/meta-selinux/recipes-security/selinux/policycoreutils_%.bbappend
new file mode 100644 (file)
index 0000000..778e496
--- /dev/null
@@ -0,0 +1,3 @@
+# Remove selinux-python dependency from policycoreutils to fix force install python runtime issue.
+
+RDEPENDS:${BPN}:remove = "selinux-python"