Re: [PATCH] layer.conf: Avoid indirect help2man-native dependencies

Richard Purdie

On Fri, 2022-05-20 at 09:53 +0800, Changqing Li wrote:
From: 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.

Signed-off-by: Changqing Li <>
meta/conf/layer.conf | 1 +
1 file changed, 1 insertion(+)

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!



Join { to automatically receive all group messages.