Skip to contentSkip to conversation

layer.conf: Filter docs dependencies for efficiency

PATCH New Richard Purdie 1 participant 1 message Mar 5, 2022

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 layer.conf: Filter docs dependencies for efficiency

Where a recipe has depends on native docs tools, in most cases we don't need recipes that depend on that recipe to also install these things into the sysroot. We can rely on recipes wanting these tools to have direct dependencies instead.

This massively reduced dependency creep in simple recipes (e.g. an allarch one) and reduced the size of builds with the api-documentation feature substancially.

gperf-native is also included since that would normally have a direct dependency in a recipe which needs it too.

For gtk-doc-native, we do need the xmlto-native dependency.

---
 meta/conf/layer.conf | 4 ++++
 1 file changed, 4 insertions(+)
meta/conf/layer.conf +4 -0
index bdeb8a47589..77a765d7cb5 100644
@@ -100,6 +100,10 @@ SSTATE_EXCLUDEDEPS_SYSROOT += "\
     .*->patch-native \
     .*->pkgconfig-native \
     .*->quilt-native \
+    ^(?!gtk-doc-native).*->xmlto-native \
+    .*->gperf-native \
+    .*->gtk-doc-native \
+    .*->texinfo-native \
 "
 # Nothing needs to depend on libc-initial
 # base-passwd/shadow-sysroot don't need their dependencies
Signature · 1 line
2.32.0