]> code.ossystems Code Review - openembedded-core.git/commitdiff
layer.conf: Add libarchive-native e2fsprogs-native exclusion from sysroot
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 Mar 2022 16:32:00 +0000 (16:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 5 Mar 2022 10:44:39 +0000 (10:44 +0000)
Currently, libarchive-native pulls e2fsprogs and all it's dependencies into
the sysroot. Since only headers are needed at buildtime and there is no
runtime dependency, we can avoid this and shrink the native sysroots.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/layer.conf

index 77a765d7cb54ba3e19893b2be83528596bb4a9d9..935c4f6b9b7e3e0074f2fa212cfb9ec60afdf902 100644 (file)
@@ -91,6 +91,7 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
 # (e.g. X -> Y -> binutils-cross -> bison-native) no longer meet the
 # dependency incidentally. This improves determinism and avoids build
 # failures when people switch to external toolchains.
+# libarchive only needs e2fsprogs headers at buildtime
 SSTATE_EXCLUDEDEPS_SYSROOT += "\
     .*->autoconf-native \
     .*->automake-native \
@@ -104,6 +105,7 @@ SSTATE_EXCLUDEDEPS_SYSROOT += "\
     .*->gperf-native \
     .*->gtk-doc-native \
     .*->texinfo-native \
+    libarchive-native->e2fsprogs-native \
 "
 # Nothing needs to depend on libc-initial
 # base-passwd/shadow-sysroot don't need their dependencies