layer.conf: Avoid indirect help2man-native dependencies

Message ID 20220520015315.3139735-1-changqing.li@windriver.com
State New
Headers show
Series layer.conf: Avoid indirect help2man-native dependencies | expand

Commit Message

Changqing Li May 20, 2022, 1:53 a.m. UTC
From: Changqing Li <changqing.li@windriver.com>

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 <changqing.li@windriver.com>
---
 meta/conf/layer.conf | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Purdie May 23, 2022, 8:34 a.m. UTC | #1
On Fri, 2022-05-20 at 09:53 +0800, Changqing Li wrote:
> From: Changqing Li <changqing.li@windriver.com>
> 
> 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 <changqing.li@windriver.com>
> ---
>  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!

Cheers,

Richard

Patch

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