On Fri, 2022-05-20 at 09:53 +0800, Changqing Li wrote:
From: Changqing Li <changqing.li@...>
When DISTRO_FEATURES efi-secure-boot and ima is enabled, all the target will depend on help2man-native. During build time,some recipes will run target_binary --help when help2man exist, which may cause run target binary on build host, which will cause error.
diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index a5d727ef5b..f2989ef81d 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf @@ -107,6 +107,7 @@ SSTATE_EXCLUDEDEPS_SYSROOT += "\ .*->texinfo-native \ .*->perlcross-native \ libarchive-native->e2fsprogs-native \ + .*->help2man-native \ " # Nothing needs to depend on libc-initial # base-passwd/shadow-sysroot don't need their dependencies
Thanks, our patches have overlapped and mine added this in a slightly different place so they both "apply" but the effect is the same. Should be a good fix to reduce the number of files in the sysroots!